@wavemaker/angular-app 11.12.1-rc.221 → 11.13.0-rc.222

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.
package/angular.json CHANGED
@@ -13,16 +13,6 @@
13
13
  "build": {
14
14
  "builder": "@angular-builders/custom-webpack:browser",
15
15
  "options": {
16
- "customWebpackConfig": {
17
- "path": "./wm-custom-webpack.config.js"
18
- },
19
- "indexTransform": "./build-scripts/index-html-transform.js",
20
- "deployUrl": "ng-bundle/",
21
- "outputPath": "dist/ng-bundle",
22
- "index": {
23
- "input": "src/index.html",
24
- "output": "../../index.html"
25
- },
26
16
  "main": "src/main.ts",
27
17
  "polyfills": "src/polyfills.ts",
28
18
  "tsConfig": "src/tsconfig.app.json",
@@ -94,9 +84,7 @@
94
84
  "./node_modules/@wavemaker/app-ng-runtime/scripts/swipey/swipey.jquery.plugin.js",
95
85
  "./node_modules/@wavemaker/app-ng-runtime/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js",
96
86
  "./node_modules/summernote/dist/summernote-lite.min.js",
97
- "./node_modules/hammerjs/hammer.min.js",
98
87
  "./node_modules/iscroll/build/iscroll.js",
99
- "./node_modules/js-cookie/src/js.cookie.js",
100
88
  "./node_modules/jssha/dist/sha256.js",
101
89
  "./node_modules/@ztree/ztree_v3/js/jquery.ztree.all.js",
102
90
  "./node_modules/@wavemaker/app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js"
@@ -104,6 +92,16 @@
104
92
  },
105
93
  "configurations": {
106
94
  "production": {
95
+ "customWebpackConfig": {
96
+ "path": "./wm-custom-webpack.config.js"
97
+ },
98
+ "indexTransform": "./build-scripts/index-html-transform.js",
99
+ "deployUrl": "ng-bundle/",
100
+ "outputPath": "dist/ng-bundle",
101
+ "index": {
102
+ "input": "src/index.html",
103
+ "output": "../../index.html"
104
+ },
107
105
  "fileReplacements": [
108
106
  {
109
107
  "replace": "src/environments/environment.ts",
@@ -133,6 +131,16 @@
133
131
  ]
134
132
  },
135
133
  "development": {
134
+ "customWebpackConfig": {
135
+ "path": "./wm-custom-webpack.config.js"
136
+ },
137
+ "indexTransform": "./build-scripts/index-html-transform.js",
138
+ "deployUrl": "ng-bundle/",
139
+ "outputPath": "dist/ng-bundle",
140
+ "index": {
141
+ "input": "src/index.html",
142
+ "output": "../../index.html"
143
+ },
136
144
  "fileReplacements": [
137
145
  {
138
146
  "replace": "src/environments/environment.ts",
@@ -155,6 +163,16 @@
155
163
  ]
156
164
  },
157
165
  "local": {
166
+ "customWebpackConfig": {
167
+ "path": "./wm-custom-webpack.config.js"
168
+ },
169
+ "indexTransform": "./build-scripts/index-html-transform.js",
170
+ "deployUrl": "ng-bundle/",
171
+ "outputPath": "dist/ng-bundle",
172
+ "index": {
173
+ "input": "src/index.html",
174
+ "output": "../../index.html"
175
+ },
158
176
  "fileReplacements": [
159
177
  {
160
178
  "replace": "src/environments/environment.ts",
@@ -182,96 +200,45 @@
182
200
  "maximumWarning": "2mb"
183
201
  }
184
202
  ]
185
- }
186
- },
187
- "defaultConfiguration": "production"
188
- },
189
- "build-ng": {
190
- "builder": "@angular-devkit/build-angular:browser",
191
- "options": {
192
- "outputPath": "dist",
193
- "index": {
194
- "input": "src/index.html",
195
- "output": "../index.html"
196
203
  },
197
- "main": "src/main.ts",
198
- "polyfills": "src/polyfills.ts",
199
- "tsConfig": "src/tsconfig.app.json",
200
- "assets": [
201
- "src/favicon.ico",
202
- "src/favicon.png",
203
- "src/assets",
204
- {
205
- "glob": "**/*",
206
- "input": "src/servicedefs",
207
- "output": "/servicedefs/"
208
- },
209
- {
210
- "glob": "**/*",
211
- "input": "src/resources",
212
- "output": "/resources/"
213
- }
214
- ],
215
- "styles": [
216
- "src/styles.css",
217
- "src/assets/styles/css/wm-style.css",
218
- "src/assets/themes/material/style.css",
219
- "src/assets/app.css",
220
- {
221
- "input": "src/assets/print.css",
222
- "inject": false,
223
- "bundleName": "print"
224
- }
225
- ],
226
- "scripts": [
227
- "./node_modules/x2js/x2js.js",
228
- "./node_modules/d3/dist/d3.min.js",
229
- "./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
230
- "./node_modules/jquery/dist/jquery.min.js",
231
- "./node_modules/jquery-ui/ui/disable-selection.js",
232
- "./node_modules/jquery-ui/ui/version.js",
233
- "./node_modules/jquery-ui/ui/widget.js",
234
- "./node_modules/jquery-ui/ui/scroll-parent.js",
235
- "./node_modules/jquery-ui/ui/plugin.js",
236
- "./node_modules/jquery-ui/ui/data.js",
237
- "./node_modules/jquery-ui/ui/widgets/mouse.js",
238
- "./node_modules/jquery-ui/ui/widgets/resizable.js",
239
- "./node_modules/jquery-ui/ui/widgets/sortable.js",
240
- "./node_modules/jquery-ui/ui/widgets/droppable.js",
241
- "./libraries/scripts/datatable/datatable.js",
242
- "./node_modules/summernote/dist/summernote-lite.min.js",
243
- "./node_modules/hammerjs/hammer.min.js",
244
- "./node_modules/iscroll/build/iscroll.js",
245
- "./node_modules/js-cookie/src/js.cookie.js",
246
- "./node_modules/jssha/dist/sha256.js",
247
- "./node_modules/@ztree/ztree_v3/js/jquery.ztree.all.js",
248
- "./libraries/scripts/tree-keyboard-navigation/keyboard-navigation.js"
249
- ],
250
- "aot": false,
251
- "vendorChunk": true,
252
- "extractLicenses": false,
253
- "buildOptimizer": false,
254
- "sourceMap": true,
255
- "optimization": false,
256
- "namedChunks": true
257
- },
258
- "configurations": {
259
- "production": {
260
- "browserTarget": "angular-app:build:production"
204
+ "ng-serve": {
205
+ "indexTransform": "./build-scripts/index-html-transform-ng-serve.ts",
206
+ "deployUrl": "ng-bundle/",
207
+ "outputPath": "dist/ng-bundle",
208
+ "index": "src/index.html",
209
+ "fileReplacements": [
210
+ {
211
+ "replace": "src/environments/environment.ts",
212
+ "with": "src/environments/environment.dev.ts"
213
+ }
214
+ ],
215
+ "optimization": false,
216
+ "outputHashing": "none",
217
+ "sourceMap": true,
218
+ "namedChunks": true,
219
+ "aot": true,
220
+ "extractLicenses": false,
221
+ "vendorChunk": true,
222
+ "buildOptimizer": false,
223
+ "budgets": [
224
+ {
225
+ "type": "initial",
226
+ "maximumWarning": "2mb"
227
+ }
228
+ ]
261
229
  }
262
230
  },
263
- "defaultConfiguration": ""
231
+ "defaultConfiguration": "production"
264
232
  },
265
233
  "serve": {
266
- "builder": "@angular-devkit/build-angular:dev-server",
267
- "options": {
268
- "buildTarget": "angular-app:build"
269
- },
234
+ "builder": "@angular-builders/custom-webpack:dev-server",
270
235
  "configurations": {
271
- "production": {
272
- "buildTarget": "angular-app:build:production"
236
+ "development": {
237
+ "buildTarget": "angular-app:build:ng-serve",
238
+ "proxyConfig": "proxy.conf.js"
273
239
  }
274
- }
240
+ },
241
+ "defaultConfiguration": "development"
275
242
  },
276
243
  "extract-i18n": {
277
244
  "builder": "@angular-devkit/build-angular:extract-i18n",
@@ -0,0 +1,20 @@
1
+ import {TargetOptions} from '@angular-builders/custom-webpack';
2
+
3
+ export default function indexHtmlTransformNgServe(
4
+ targetOptions: TargetOptions,
5
+ indexHtml: string
6
+ ): string {
7
+ const deployUrl = 'ng-bundle/';
8
+ const wmStylesHref = `${deployUrl}wm-styles.css`;
9
+
10
+ const metaDeployUrl = `<meta name="deployUrl" content="${deployUrl}">`;
11
+ const linkWmStyles = `<link rel="stylesheet" type="text/css" href="${wmStylesHref}">`;
12
+
13
+ const injectHtml = `${metaDeployUrl}
14
+ ${linkWmStyles}`;
15
+ const headCloseIndex = indexHtml.indexOf('</head>');
16
+
17
+ return `${indexHtml.slice(0, headCloseIndex)}
18
+ ${injectHtml}
19
+ ${indexHtml.slice(headCloseIndex)}`;
20
+ }
@@ -164,9 +164,9 @@ const generateSha1 = (content) => {
164
164
  try {
165
165
  const angularJson = require(`${process.cwd()}/angular.json`);
166
166
  const build = angularJson['projects']['angular-app']['architect']['build'];
167
- let deployUrl = args['deploy-url'] || build['options']['deployUrl'];
167
+ let deployUrl = args['deploy-url'] || build['configurations']['production']['deployUrl'];
168
168
  global.randomHash = deployUrl.split('/')[1];
169
- let outputPath = global.opPath = args['output-path'] || build['options']['outputPath']
169
+ let outputPath = global.opPath = args['output-path'] || build['configurations']['production']['outputPath']
170
170
  const contents = await readFile(`./dist/index.html`, `utf8`);
171
171
  $ = cheerio.load(contents);
172
172
  isProdBuild = fs.existsSync(`${process.cwd()}/${outputPath}/wm-styles.css`);
@@ -46908,19 +46908,6 @@ const getAttrMarkup = (attrs) => {
46908
46908
  v = v + `" *lazyLoad="${wrapWithApos(v)}`;
46909
46909
  }
46910
46910
  attrMarkup += `="${v}"`;
46911
- if (k === 'showindevice' && v !== 'all') {
46912
- const condition = [];
46913
- if (v.includes('xs')) {
46914
- condition.push('Viewport.isMobileType');
46915
- }
46916
- if (v.includes('sm')) {
46917
- condition.push('(Viewport.isTabletType && Viewport.orientation.isPortrait)');
46918
- }
46919
- if (v.includes('md')) {
46920
- condition.push('(Viewport.isTabletType && Viewport.orientation.isLandscape)');
46921
- }
46922
- attrMarkup += ` *ngIf="${condition.join(' || ')}"`;
46923
- }
46924
46911
  }
46925
46912
  });
46926
46913
  return attrMarkup;
@@ -114855,11 +114842,13 @@ register('wm-repeat-template', () => {
114855
114842
  const widgetRef = (parentAccordion && parentAccordion.get('accordion_ref')) || (parentTab && parentTab.get('tabs_ref')) || (parentWizard && parentWizard.get('wizard_ref'));
114856
114843
  if (widgetRef) {
114857
114844
  return `@if(${widgetRef}.fieldDefs && !${widgetRef}.fieldDefs.length){<div>{{${widgetRef}.nodatamessage}}</div>}
114858
- <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
114845
+ @for (item of ${widgetRef}.fieldDefs; track item; let i = $index) {
114846
+ <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)}>
114859
114847
  <ng-container [ngTemplateOutlet]="widgetRef${counter}"
114860
114848
  [ngTemplateOutletContext]="{item:item, index:i}"
114861
114849
  [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_pane_' + repeatItemRef.trackId, {item:item, index:i})"></ng-container>
114862
114850
  </${dynamicTemplateTagName}>
114851
+ }
114863
114852
  <ng-template #widgetRef${counter++} let-item="item" let-index="index">`;
114864
114853
  }
114865
114854
  },
@@ -115555,11 +115544,13 @@ const buildTask = (directiveAttr = '') => {
115555
115544
  tabindex.bind="btn.tabindex" [class.hidden]="btn.updateMode ? !${counter}.isUpdateMode : ${counter}.isUpdateMode"></button>
115556
115545
  </ng-template>`;
115557
115546
  mobileFormContentTmpl = `<header wmMobileNavbar name="${name}" ${getAttrMarkup(navbarAttrsMap)}>
115558
- <ng-container *ngFor="let btn of ${counter}.buttonArray; let i = index"
115547
+ @for (btn of ${counter}.buttonArray; track btn; let i = $index) {
115548
+ <ng-container
115559
115549
  [ngTemplateOutlet]="buttonRef"
115560
115550
  [ngTemplateOutletContext]="{btn:btn}"
115561
115551
  [ngTemplateOutletInjector]="${counter}.createCustomInjector('mobile_' + i, {item:item, index:i})">
115562
115552
  </ng-container>
115553
+ }
115563
115554
  </header>
115564
115555
  <div class="form-elements panel-body" >`;
115565
115556
  }
@@ -116242,10 +116233,6 @@ const findChild = (node, childName) => {
116242
116233
  const createElement$4 = name => {
116243
116234
  return new Element$2(name, [], [], noSpan$4, noSpan$4, noSpan$4);
116244
116235
  };
116245
- const addAtrribute$4 = (node, name, value) => {
116246
- const attr = new Attribute$2(name, value, noSpan$4, noSpan$4, noSpan$4, undefined, undefined);
116247
- node.attrs.push(attr);
116248
- };
116249
116236
  const getElementNode = (name, node) => {
116250
116237
  let elementNode;
116251
116238
  if (!node) {
@@ -116275,9 +116262,12 @@ register('wm-page', () => {
116275
116262
  }
116276
116263
  if (pageContentNode) {
116277
116264
  const conditionalNode = createElement$4('ng-container');
116278
- addAtrribute$4(conditionalNode, '*ngIf', 'compilePageContent');
116265
+ const ifOpenText = new Text$1('@if (compilePageContent) {', null, undefined, undefined);
116266
+ conditionalNode.children.push(ifOpenText);
116279
116267
  conditionalNode.children = conditionalNode.children.concat(pageContentNode.children);
116280
116268
  conditionalNode.children.push(new Text$1('{{onPageContentReady()}}', null, undefined, undefined));
116269
+ const ifCloseText = new Text$1('}', null, undefined, undefined);
116270
+ conditionalNode.children.push(ifCloseText);
116281
116271
  pageContentNode.children = [conditionalNode];
116282
116272
  }
116283
116273
  },
@@ -116445,10 +116435,6 @@ const tagName$h = 'div';
116445
116435
  const createElement$3 = name => {
116446
116436
  return new Element$2(name, [], [], noSpan$3, noSpan$3, noSpan$3);
116447
116437
  };
116448
- const addAtrribute$3 = (node, name, value) => {
116449
- const attr = new Attribute$2(name, value, noSpan$3, noSpan$3, noSpan$3, undefined, undefined);
116450
- node.attrs.push(attr);
116451
- };
116452
116438
  const noSpan$3 = {};
116453
116439
  register('wm-page-content', () => {
116454
116440
  return {
@@ -116456,9 +116442,12 @@ register('wm-page-content', () => {
116456
116442
  for (let attr of node.attrs) {
116457
116443
  if (attr.name === 'spa' && attr.value === 'true') {
116458
116444
  const conditionalNode = createElement$3('ng-container');
116459
- addAtrribute$3(conditionalNode, '*ngIf', 'compilePageContent');
116445
+ const ifOpenText = new Text$1('@if (compilePageContent) {', null, undefined, undefined);
116446
+ conditionalNode.children.push(ifOpenText);
116460
116447
  conditionalNode.children = conditionalNode.children.concat(node.children);
116461
116448
  conditionalNode.children.push(new Text$1('{{onPageContentReady()}}', null, undefined, undefined));
116449
+ const ifCloseText = new Text$1('}', null, undefined, undefined);
116450
+ conditionalNode.children.push(ifCloseText);
116462
116451
  node.children = [conditionalNode];
116463
116452
  break;
116464
116453
  }
@@ -116512,16 +116501,15 @@ const noSpan$2 = {};
116512
116501
  const createElement$2 = name => {
116513
116502
  return new Element$2(name, [], [], noSpan$2, noSpan$2, noSpan$2);
116514
116503
  };
116515
- const addAtrribute$2 = (node, name, value) => {
116516
- const attr = new Attribute$2(name, value, noSpan$2, noSpan$2, noSpan$2, undefined, undefined);
116517
- node.attrs.push(attr);
116518
- };
116519
116504
  register('wm-partial', () => {
116520
116505
  return {
116521
116506
  template: (node) => {
116522
116507
  const conditionalNode = createElement$2('ng-container');
116523
- addAtrribute$2(conditionalNode, '*ngIf', 'compileContent');
116508
+ const ifOpenText = new Text$1('@if (compileContent) {', null, undefined, undefined);
116509
+ conditionalNode.children.push(ifOpenText);
116524
116510
  conditionalNode.children = conditionalNode.children.concat(node.children);
116511
+ const ifCloseText = new Text$1('}', null, undefined, undefined);
116512
+ conditionalNode.children.push(ifCloseText);
116525
116513
  node.children.length = 0;
116526
116514
  node.children.push(conditionalNode);
116527
116515
  },
@@ -116568,17 +116556,16 @@ const noSpan$1 = {};
116568
116556
  const createElement$1 = name => {
116569
116557
  return new Element$2(name, [], [], noSpan$1, noSpan$1, noSpan$1);
116570
116558
  };
116571
- const addAtrribute$1 = (node, name, value) => {
116572
- const attr = new Attribute$2(name, value, noSpan$1, noSpan$1, noSpan$1, undefined, undefined);
116573
- node.attrs.push(attr);
116574
- };
116575
116559
  const tagName$b = 'div';
116576
116560
  register('wm-prefab-container', () => {
116577
116561
  return {
116578
116562
  template: (node) => {
116579
116563
  const conditionalNode = createElement$1('ng-container');
116580
- addAtrribute$1(conditionalNode, '*ngIf', 'compileContent');
116564
+ const ifOpenText = new Text$1('@if (compileContent) {', null, undefined, undefined);
116565
+ conditionalNode.children.push(ifOpenText);
116581
116566
  conditionalNode.children = conditionalNode.children.concat(node.children);
116567
+ const ifCloseText = new Text$1('}', null, undefined, undefined);
116568
+ conditionalNode.children.push(ifCloseText);
116582
116569
  node.children.length = 0;
116583
116570
  node.children.push(conditionalNode);
116584
116571
  },
@@ -116927,8 +116914,10 @@ register('wm-table-row', () => {
116927
116914
  <ng-template #rowExpansionTmpl let-row="row" let-rowDef="rowDef" let-containerLoad="containerLoad">
116928
116915
  <div wmContainer partialContainer content.bind="rowDef.content" load.event="containerLoad(widget)"
116929
116916
  [ngStyle]="{'height': rowDef.height, 'overflow-y': 'auto'}">
116930
- <div *ngFor="let param of rowDef.partialParams | keyvalue" wmParam hidden
116931
- [name]="param.key" [value]="param.value"></div>`;
116917
+ @for (param of rowDef.partialParams | keyvalue; track param) {
116918
+ <div wmParam hidden
116919
+ [name]="param.key" [value]="param.value"></div>
116920
+ }`;
116932
116921
  },
116933
116922
  post: () => `</div></ng-template></${tagName$7}>`
116934
116923
  };
@@ -69,7 +69,7 @@
69
69
  <body>
70
70
  <div class="header">
71
71
  <h1>Angular Project Dependencies Report</h1>
72
- <p class="timestamp">Generated on: 9/13/2025, 2:53:34 PM</p>
72
+ <p class="timestamp">Generated on: 9/27/2025, 11:23:11 PM</p>
73
73
  </div>
74
74
 
75
75
  <div class="section">