@wavemaker/angular-codegen 12.0.0-next.45191 → 12.0.0-next.45196

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,7 +36,7 @@
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/"
@@ -41,25 +45,25 @@
41
45
  "node_modules/@wavemaker/custom-widgets-m3/"
42
46
  ],
43
47
  "@wm/components/base": [
44
- "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
48
+ "node_modules/@wavemaker/app-ng-runtime/components/base"
45
49
  ],
46
50
  "@wm/components/basic": [
47
- "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
51
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
48
52
  ],
49
53
  "@wm/components/input": [
50
- "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
54
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default"
51
55
  ],
52
56
  "@wm/components/page": [
53
- "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
57
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default"
54
58
  ],
55
59
  "@wm/mobile/components/basic": [
56
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
60
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
57
61
  ],
58
62
  "@wm/mobile/components/page": [
59
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
63
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
60
64
  ],
61
65
  "@wm/components/dialogs": [
62
- "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
66
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
63
67
  ],
64
68
  "@wm/mobile/components/*": [
65
69
  "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
@@ -68,67 +72,53 @@
68
72
  "node_modules/@wavemaker/app-ng-runtime/components/*"
69
73
  ],
70
74
  "@wm/transpiler": [
71
- "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
75
+ "node_modules/@wavemaker/app-ng-runtime/transpiler"
72
76
  ],
73
77
  "@wm/security": [
74
- "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
78
+ "node_modules/@wavemaker/app-ng-runtime/security"
75
79
  ],
76
80
  "@swipey": [
77
- "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
81
+ "node_modules/@wavemaker/app-ng-runtime/swipey"
78
82
  ],
79
83
  "@wm/http": [
80
- "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
84
+ "node_modules/@wavemaker/app-ng-runtime/http"
81
85
  ],
82
86
  "@wm/oAuth": [
83
- "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
87
+ "node_modules/@wavemaker/app-ng-runtime/oAuth"
84
88
  ],
85
89
  "@wm/variables": [
86
- "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
90
+ "node_modules/@wavemaker/app-ng-runtime/variables"
87
91
  ],
88
92
  "@wm/mobile/core": [
89
- "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
93
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core"
90
94
  ],
91
95
  "@wm/mobile/components": [
92
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
96
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components"
93
97
  ],
94
98
  "@wm/mobile/offline": [
95
- "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
99
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
96
100
  ],
97
101
  "@wm/mobile/variables": [
98
- "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
102
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
99
103
  ],
100
104
  "@wm/runtime/base": [
101
- "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
105
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base"
102
106
  ],
103
107
  "@wm/runtime/dynamic": [
104
- "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
108
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
105
109
  ],
106
110
  "@wm/mobile/runtime": [
107
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
111
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
108
112
  ],
109
113
  "@wm/mobile/runtime/dynamic": [
110
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
114
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
111
115
  ]
112
116
  },
113
- "lib": [
114
- "es2020",
115
- "dom"
116
- ],
117
- "useDefineForClassFields": false,
118
- "resolveJsonModule": true
117
+ "useDefineForClassFields": false
119
118
  },
120
119
  "angularCompilerOptions": {
121
120
  "compilationMode": "full",
122
121
  "strictMetadataEmit": false,
123
- "fullTemplateTypeCheck": false,
124
- "extendedDiagnostics": {
125
- "checks": {
126
- "optionalChainNotNullable": "suppress"
127
- }
128
- },
129
- "enableI18nLegacyMessageIdFormat": false,
130
- "strictInjectionParameters": false,
131
- "strictInputAccessModifiers": false,
132
- "trace": true
122
+ "fullTemplateTypeCheck": false
133
123
  }
134
124
  }
@@ -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
  }
@@ -90925,7 +90925,7 @@ register('wm-accordion', () => {
90925
90925
  // generating unique Id for the accordion
90926
90926
  const counter = idGen$m.nextUid();
90927
90927
  shared.set('accordion_ref', counter);
90928
- return `<${tagName$1k} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
90928
+ return `<${tagName$1k} wmAccordion #${counter}="wmAccordion" ${getAttrMarkup(attrs)}>`;
90929
90929
  },
90930
90930
  post: () => `</${tagName$1k}>`,
90931
90931
  template: (node, shared) => {
@@ -90964,7 +90964,7 @@ register('wm-accordionpane', () => {
90964
90964
  return {
90965
90965
  pre: (attrs) => {
90966
90966
  const counter = idGen$l.nextUid();
90967
- return `<${tagName$1j} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
90967
+ return `<${tagName$1j} #${counter}="wmAccordionPane" wmAccordionPane partialContainer wm-navigable-element="true" ${getAttrMarkup(attrs)}>`;
90968
90968
  },
90969
90969
  post: () => `</${tagName$1j}>`
90970
90970
  };
@@ -91186,7 +91186,7 @@ var tile_build$1 = /*#__PURE__*/Object.freeze({
91186
91186
  const tagName$18 = 'div';
91187
91187
  register('wm-wizard', () => {
91188
91188
  return {
91189
- pre: attrs => `<${tagName$18} wmWizard role="tablist" ${getAttrMarkup(attrs)}>`,
91189
+ pre: attrs => `<${tagName$18} wmWizard ${getAttrMarkup(attrs)}>`,
91190
91190
  post: () => `</${tagName$18}>`
91191
91191
  };
91192
91192
  });
@@ -91593,8 +91593,8 @@ const registerFormField = (isFormField) => {
91593
91593
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
91594
91594
  required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
91595
91595
  <div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
91596
- <label class="form-control-static app-label"
91597
- [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
91596
+ <span class="form-control-static app-label"
91597
+ [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></span>
91598
91598
  ${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
91599
91599
  <span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
91600
91600
  <p *ngIf="!(${counter}._control?.invalid && ${counter}._control?.touched) && ${pCounter}.isUpdateMode"
@@ -91815,7 +91815,7 @@ var calendar_build$1 = /*#__PURE__*/Object.freeze({
91815
91815
  const tagName$V = 'ul';
91816
91816
  register('wm-chips', () => {
91817
91817
  return {
91818
- pre: attrs => `<${tagName$V} wmChips role="listbox" ${getAttrMarkup(attrs)} ${getNgModelAttr(attrs)}>`,
91818
+ pre: attrs => `<${tagName$V} wmChips ${getAttrMarkup(attrs)} ${getNgModelAttr(attrs)}>`,
91819
91819
  post: () => `</${tagName$V}>`
91820
91820
  };
91821
91821
  });
@@ -92070,7 +92070,7 @@ register('wm-fileupload', () => {
92070
92070
  const onDeleteBinding = getDataSource(attrs.get('delete.event'));
92071
92071
  attrs.set('deletedatasource.bind', onDeleteBinding);
92072
92072
  }
92073
- return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
92073
+ return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)}>`;
92074
92074
  },
92075
92075
  post: () => `</${tagName$E}>`
92076
92076
  };
@@ -102116,7 +102116,7 @@ register('wm-accordion', () => {
102116
102116
  // generating unique Id for the accordion
102117
102117
  const counter = idGen$m.nextUid();
102118
102118
  shared.set('accordion_ref', counter);
102119
- return `<${tagName$1k} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
102119
+ return `<${tagName$1k} wmAccordion #${counter}="wmAccordion" ${getAttrMarkup(attrs)}>`;
102120
102120
  },
102121
102121
  post: () => `</${tagName$1k}>`,
102122
102122
  template: (node, shared) => {
@@ -102155,7 +102155,7 @@ register('wm-accordionpane', () => {
102155
102155
  return {
102156
102156
  pre: (attrs) => {
102157
102157
  const counter = idGen$l.nextUid();
102158
- return `<${tagName$1j} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
102158
+ return `<${tagName$1j} #${counter}="wmAccordionPane" wmAccordionPane partialContainer wm-navigable-element="true" ${getAttrMarkup(attrs)}>`;
102159
102159
  },
102160
102160
  post: () => `</${tagName$1j}>`
102161
102161
  };
@@ -102377,7 +102377,7 @@ var tile_build$1 = /*#__PURE__*/Object.freeze({
102377
102377
  const tagName$18 = 'div';
102378
102378
  register('wm-wizard', () => {
102379
102379
  return {
102380
- pre: attrs => `<${tagName$18} wmWizard role="tablist" ${getAttrMarkup(attrs)}>`,
102380
+ pre: attrs => `<${tagName$18} wmWizard ${getAttrMarkup(attrs)}>`,
102381
102381
  post: () => `</${tagName$18}>`
102382
102382
  };
102383
102383
  });
@@ -102784,8 +102784,8 @@ const registerFormField = (isFormField) => {
102784
102784
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
102785
102785
  required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
102786
102786
  <div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
102787
- <label class="form-control-static app-label"
102788
- [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
102787
+ <span class="form-control-static app-label"
102788
+ [hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></span>
102789
102789
  ${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
102790
102790
  <span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
102791
102791
  <p *ngIf="!(${counter}._control?.invalid && ${counter}._control?.touched) && ${pCounter}.isUpdateMode"
@@ -103006,7 +103006,7 @@ var calendar_build$1 = /*#__PURE__*/Object.freeze({
103006
103006
  const tagName$V = 'ul';
103007
103007
  register('wm-chips', () => {
103008
103008
  return {
103009
- pre: attrs => `<${tagName$V} wmChips role="listbox" ${getAttrMarkup(attrs)} ${getNgModelAttr(attrs)}>`,
103009
+ pre: attrs => `<${tagName$V} wmChips ${getAttrMarkup(attrs)} ${getNgModelAttr(attrs)}>`,
103010
103010
  post: () => `</${tagName$V}>`
103011
103011
  };
103012
103012
  });
@@ -103261,7 +103261,7 @@ register('wm-fileupload', () => {
103261
103261
  const onDeleteBinding = getDataSource(attrs.get('delete.event'));
103262
103262
  attrs.set('deletedatasource.bind', onDeleteBinding);
103263
103263
  }
103264
- return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
103264
+ return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)}>`;
103265
103265
  },
103266
103266
  post: () => `</${tagName$E}>`
103267
103267
  };