@wavemaker/angular-codegen 12.0.0-next.141140 → 12.0.0-next.141142

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.
@@ -2,19 +2,23 @@
2
2
  "compileOnSave": false,
3
3
  "compilerOptions": {
4
4
  "baseUrl": "./",
5
- "outDir": "./dist/out-tsc",
6
5
  "downlevelIteration": true,
7
- "declaration": false,
6
+ "outDir": "./dist/out-tsc",
8
7
  "sourceMap": true,
8
+ "declaration": false,
9
+ "target": "es2022",
10
+ "module": "es2020",
11
+ "moduleResolution": "node",
12
+ "esModuleInterop": true,
9
13
  "emitDecoratorMetadata": true,
10
14
  "experimentalDecorators": true,
11
- "esModuleInterop": true,
12
- "moduleResolution": "node",
13
- "target": "ES2022",
14
- "module": "ES2022",
15
15
  "typeRoots": [
16
16
  "node_modules/@types"
17
17
  ],
18
+ "lib": [
19
+ "es2018",
20
+ "dom"
21
+ ],
18
22
  "paths": {
19
23
  "rxjs/observable/throw": [
20
24
  "node_modules/rxjs-compat/_esm2015/observable/throw"
@@ -32,31 +36,31 @@
32
36
  "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
33
37
  ],
34
38
  "@wm/core": [
35
- "node_modules/@wavemaker/app-ng-runtime/core/index.d.ts"
39
+ "node_modules/@wavemaker/app-ng-runtime/core"
36
40
  ],
37
41
  "@wavemaker/variables": [
38
42
  "node_modules/@wavemaker/variables/"
39
43
  ],
40
44
  "@wm/components/base": [
41
- "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
45
+ "node_modules/@wavemaker/app-ng-runtime/components/base"
42
46
  ],
43
47
  "@wm/components/basic": [
44
- "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
48
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
45
49
  ],
46
50
  "@wm/components/input": [
47
- "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
51
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default"
48
52
  ],
49
53
  "@wm/components/page": [
50
- "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
54
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default"
51
55
  ],
52
56
  "@wm/mobile/components/basic": [
53
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
57
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
54
58
  ],
55
59
  "@wm/mobile/components/page": [
56
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
60
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
57
61
  ],
58
62
  "@wm/components/dialogs": [
59
- "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
63
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
60
64
  ],
61
65
  "@wm/mobile/components/*": [
62
66
  "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
@@ -65,67 +69,53 @@
65
69
  "node_modules/@wavemaker/app-ng-runtime/components/*"
66
70
  ],
67
71
  "@wm/transpiler": [
68
- "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
72
+ "node_modules/@wavemaker/app-ng-runtime/transpiler"
69
73
  ],
70
74
  "@wm/security": [
71
- "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
75
+ "node_modules/@wavemaker/app-ng-runtime/security"
72
76
  ],
73
77
  "@swipey": [
74
- "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
78
+ "node_modules/@wavemaker/app-ng-runtime/swipey"
75
79
  ],
76
80
  "@wm/http": [
77
- "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
81
+ "node_modules/@wavemaker/app-ng-runtime/http"
78
82
  ],
79
83
  "@wm/oAuth": [
80
- "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
84
+ "node_modules/@wavemaker/app-ng-runtime/oAuth"
81
85
  ],
82
86
  "@wm/variables": [
83
- "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
87
+ "node_modules/@wavemaker/app-ng-runtime/variables"
84
88
  ],
85
89
  "@wm/mobile/core": [
86
- "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
90
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core"
87
91
  ],
88
92
  "@wm/mobile/components": [
89
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
93
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components"
90
94
  ],
91
95
  "@wm/mobile/offline": [
92
- "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
96
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
93
97
  ],
94
98
  "@wm/mobile/variables": [
95
- "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
99
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
96
100
  ],
97
101
  "@wm/runtime/base": [
98
- "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
102
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base"
99
103
  ],
100
104
  "@wm/runtime/dynamic": [
101
- "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
105
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
102
106
  ],
103
107
  "@wm/mobile/runtime": [
104
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
108
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
105
109
  ],
106
110
  "@wm/mobile/runtime/dynamic": [
107
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
111
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
108
112
  ]
109
113
  },
110
- "lib": [
111
- "es2020",
112
- "dom"
113
- ],
114
- "useDefineForClassFields": false,
115
- "resolveJsonModule": true
114
+ "useDefineForClassFields": false
116
115
  },
117
116
  "angularCompilerOptions": {
118
117
  "compilationMode": "full",
119
118
  "strictMetadataEmit": false,
120
- "fullTemplateTypeCheck": false,
121
- "extendedDiagnostics": {
122
- "checks": {
123
- "optionalChainNotNullable": "suppress"
124
- }
125
- },
126
- "enableI18nLegacyMessageIdFormat": false,
127
- "strictInjectionParameters": false,
128
- "strictInputAccessModifiers": false,
129
- "trace": true
119
+ "fullTemplateTypeCheck": false
130
120
  }
131
121
  }
@@ -14,7 +14,8 @@
14
14
  */
15
15
  const fs = require('fs');
16
16
  const { downloadNPMPackage } = require('./download-packages');
17
-
17
+ const archiver = require('archiver');
18
+ const path = require("path");
18
19
  const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require('./build-util');
19
20
 
20
21
  /**
@@ -73,7 +74,29 @@ const buildAngularApp = (args) => {
73
74
  executeSyncCmd('cd ' + args.appTarget + ' && node ./build-scripts/build.js ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
74
75
  }
75
76
 
77
+ const generateUiZip = async( sourceDir ) => {
78
+ return new Promise((resolve, reject) => {
79
+ const distDir = path.resolve(sourceDir + '/target/ui-build/output-files');
80
+ const zipFile = path.resolve(sourceDir + '/target/ui-artifact.zip');
81
+
82
+ const output = fs.createWriteStream(zipFile);
83
+ const archive = archiver('zip', {
84
+ zlib: {level: 9}
85
+ });
86
+ output.on('close', () => {
87
+ console.log(`✅ ui-artifact.zip created successfully: ${zipFile}`);
88
+ resolve();
89
+ });
90
+ archive.on('error', (err) => {
91
+ reject(err);
92
+ });
93
+ archive.pipe(output);
94
+ archive.directory(distDir, false);
95
+ archive.finalize();
96
+ });
97
+ }
76
98
 
77
99
  module.exports = {
78
- buildAngularApp
100
+ buildAngularApp,
101
+ generateUiZip
79
102
  }
@@ -91441,8 +91441,8 @@ const registerFormField = (isFormField) => {
91441
91441
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
91442
91442
  required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
91443
91443
  <div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
91444
- <label class="form-control-static app-label"
91445
- [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
91444
+ <span class="form-control-static app-label"
91445
+ [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></span>
91446
91446
  ${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
91447
91447
  <span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
91448
91448
  <p *ngIf="!(${counter}._control?.invalid && ${counter}._control?.touched) && ${pCounter}.isUpdateMode"
@@ -102632,8 +102632,8 @@ const registerFormField = (isFormField) => {
102632
102632
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
102633
102633
  required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
102634
102634
  <div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
102635
- <label class="form-control-static app-label"
102636
- [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
102635
+ <span class="form-control-static app-label"
102636
+ [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></span>
102637
102637
  ${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
102638
102638
  <span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
102639
102639
  <p *ngIf="!(${counter}._control?.invalid && ${counter}._control?.touched) && ${pCounter}.isUpdateMode"