@wavemaker-ai/angular-codegen 12.0.0-rc.647733 → 12.0.1-rc.338

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/package-lock.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wavemaker-ai/angular-codegen",
3
- "version": "12.0.0-rc.647733",
3
+ "version": "12.0.1-rc.338",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker-ai/angular-codegen",
9
- "version": "12.0.0-rc.647733",
9
+ "version": "12.0.1-rc.338",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker-ai/angular-app": "12.0.0-rc.647733",
12
+ "@wavemaker-ai/angular-app": "12.0.1-rc.338",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "node_modules/@angular/animations": {
39
- "version": "21.2.20",
40
- "integrity": "sha512-H3Abe/dfPKNaGaoaqjrN9tZYNrAcoPnx5STLiAmpFSO4wz82/wwPO2mZCOBG4qjefredkNuuW/e+uuqZccXabw==",
39
+ "version": "21.2.21",
40
+ "integrity": "sha512-ywgwBi6V/6WDnVH956q+tMfXoM1VsTUzp0XtUoloMqzDQ0FgJF9tDuBgt8ixHrUUTziZ3oudzgPza2YFBMafLA==",
41
41
  "deprecated": "@angular/animations is deprecated. Use `animate.enter` and `animate.leave` instead. For more information see: https://v22.angular.dev/guide/animations.",
42
42
  "license": "MIT",
43
43
  "dependencies": {
@@ -47,12 +47,12 @@
47
47
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@angular/core": "21.2.20"
50
+ "@angular/core": "21.2.21"
51
51
  }
52
52
  },
53
53
  "node_modules/@angular/common": {
54
- "version": "21.2.20",
55
- "integrity": "sha512-TzUVfa4Asq/np3eStFX3Q6W+dPG7JDNtkj4XwTvRnSL0CN8pPe+wPHSo76awHFzYWcucxpZTmk2GUemeqxa4Yw==",
54
+ "version": "21.2.21",
55
+ "integrity": "sha512-ntouT80emF5osQW5XOI6PHSa6E3ZxPGIbwtIYznuiz9bBboW0TRs9YUSNg8TRfOiTBqwG8FKXCr19eyCaaTsgA==",
56
56
  "license": "MIT",
57
57
  "dependencies": {
58
58
  "tslib": "^2.3.0"
@@ -61,13 +61,13 @@
61
61
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@angular/core": "21.2.20",
64
+ "@angular/core": "21.2.21",
65
65
  "rxjs": "^6.5.3 || ^7.4.0"
66
66
  }
67
67
  },
68
68
  "node_modules/@angular/compiler": {
69
- "version": "21.2.20",
70
- "integrity": "sha512-7UY4x+YOvDCUpiiVM1wEU9gIiME54vF9n+84FdaSL/6MxgHknkaB/R8iwNrfXwsHThzy4NKv+25UvlJrz9P7mg==",
69
+ "version": "21.2.21",
70
+ "integrity": "sha512-v2cxgmfsXVPCFivnbTmCdr1X+iDct9ZZUy7InDdKbTSwJld8zSyWwBVr3/8xzZ9hV4F41la5IxIyRyej52Mslw==",
71
71
  "license": "MIT",
72
72
  "dependencies": {
73
73
  "tslib": "^2.3.0"
@@ -77,8 +77,8 @@
77
77
  }
78
78
  },
79
79
  "node_modules/@angular/core": {
80
- "version": "21.2.20",
81
- "integrity": "sha512-4yp6EKd1VJHUOiKmd3+s9UUXtBGsdO/IKewABuPXZ+UdrXPQSRMhgnMt49yqgz29XS7jSHyq6nZgt0CXOVEDZg==",
80
+ "version": "21.2.21",
81
+ "integrity": "sha512-87moY/3TmowvBcM7zYJQcpXg8O5Ro/6uQ2OdVILl7Tq9lBZbQlZcw5N+6b8s8LwRX4ka6srFVeVLW6JoJ1cFUw==",
82
82
  "license": "MIT",
83
83
  "dependencies": {
84
84
  "tslib": "^2.3.0"
@@ -87,7 +87,7 @@
87
87
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@angular/compiler": "21.2.20",
90
+ "@angular/compiler": "21.2.21",
91
91
  "rxjs": "^6.5.3 || ^7.4.0",
92
92
  "zone.js": "~0.15.0 || ~0.16.0"
93
93
  },
@@ -101,8 +101,8 @@
101
101
  }
102
102
  },
103
103
  "node_modules/@angular/forms": {
104
- "version": "21.2.20",
105
- "integrity": "sha512-OP1/UtMGBfJEVGs85ns1jSYVyyezQRQYPG1ReUDzGPGRt62+JQkLdtHYu6RKwkXzW+LF2mt8cpIb4YfhxnnYrA==",
104
+ "version": "21.2.21",
105
+ "integrity": "sha512-PqsY1NtvHyQ9bxnguiChXfbqFRCBJiL3wfW6wzVcYIA59QLsKKNmYitoJf3KOKN0vqCU8ley18AvJwbohJPsCw==",
106
106
  "license": "MIT",
107
107
  "dependencies": {
108
108
  "@standard-schema/spec": "^1.0.0",
@@ -112,15 +112,15 @@
112
112
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
113
113
  },
114
114
  "peerDependencies": {
115
- "@angular/common": "21.2.20",
116
- "@angular/core": "21.2.20",
117
- "@angular/platform-browser": "21.2.20",
115
+ "@angular/common": "21.2.21",
116
+ "@angular/core": "21.2.21",
117
+ "@angular/platform-browser": "21.2.21",
118
118
  "rxjs": "^6.5.3 || ^7.4.0"
119
119
  }
120
120
  },
121
121
  "node_modules/@angular/platform-browser": {
122
- "version": "21.2.20",
123
- "integrity": "sha512-KtIrkSol2Q5qx6Poj53fLN6x3FYTPXCJ3Qi4KzlPbK0EFoiltaYCh3C2hmBze9QNdA8TM719THGvIDpCznl8PQ==",
122
+ "version": "21.2.21",
123
+ "integrity": "sha512-WtdVQzbAZEcUuRCV4kUG2z3zeePek60zW5WNCAdMgqoNWuxlt38BOOwTL9d7WohojJB55Ny4WeRrQYF7xyQgMQ==",
124
124
  "license": "MIT",
125
125
  "dependencies": {
126
126
  "tslib": "^2.3.0"
@@ -129,9 +129,9 @@
129
129
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
130
130
  },
131
131
  "peerDependencies": {
132
- "@angular/animations": "21.2.20",
133
- "@angular/common": "21.2.20",
134
- "@angular/core": "21.2.20"
132
+ "@angular/animations": "21.2.21",
133
+ "@angular/common": "21.2.21",
134
+ "@angular/core": "21.2.21"
135
135
  },
136
136
  "peerDependenciesMeta": {
137
137
  "@angular/animations": {
@@ -140,8 +140,8 @@
140
140
  }
141
141
  },
142
142
  "node_modules/@angular/platform-browser-dynamic": {
143
- "version": "21.2.20",
144
- "integrity": "sha512-n3+eLj0F/hjf+cgLaNWsBcqZcaeGoh5TCMe+VXUnh6XRwbwXorxP91ypfMT/rj0QnroY6NoZcvvPlx1ezsIVrw==",
143
+ "version": "21.2.21",
144
+ "integrity": "sha512-bV1GDyyD+KqntBJbzEXy4ojmp4usgaCpipYnLQEkR6tnm+2sEMbtecf/6fX0EICXceH1nxWoJ4yE/HCUkEMP8A==",
145
145
  "deprecated": "@angular/platform-browser-dynamic is deprecated. Use `@angular/platform-browser` instead.",
146
146
  "license": "MIT",
147
147
  "dependencies": {
@@ -151,15 +151,15 @@
151
151
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
152
152
  },
153
153
  "peerDependencies": {
154
- "@angular/common": "21.2.20",
155
- "@angular/compiler": "21.2.20",
156
- "@angular/core": "21.2.20",
157
- "@angular/platform-browser": "21.2.20"
154
+ "@angular/common": "21.2.21",
155
+ "@angular/compiler": "21.2.21",
156
+ "@angular/core": "21.2.21",
157
+ "@angular/platform-browser": "21.2.21"
158
158
  }
159
159
  },
160
160
  "node_modules/@angular/router": {
161
- "version": "21.2.20",
162
- "integrity": "sha512-4QINfZGcIBwupu1ULCXFdXsDZeZbpRX5mm61DAqc7CnuCGV1udwbIVStOf4AmPEdfGzV7yLl77Z++EFoQQXgRA==",
161
+ "version": "21.2.21",
162
+ "integrity": "sha512-Db7PfrZob1cUzwNVBSyT6Swyvw+s5uXdmUyEEYo2r0XiK5eXZFsVBeynu5I4Lltw91ktky6+SCn17aA6s+DvDA==",
163
163
  "license": "MIT",
164
164
  "dependencies": {
165
165
  "tslib": "^2.3.0"
@@ -168,15 +168,15 @@
168
168
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
169
169
  },
170
170
  "peerDependencies": {
171
- "@angular/common": "21.2.20",
172
- "@angular/core": "21.2.20",
173
- "@angular/platform-browser": "21.2.20",
171
+ "@angular/common": "21.2.21",
172
+ "@angular/core": "21.2.21",
173
+ "@angular/platform-browser": "21.2.21",
174
174
  "rxjs": "^6.5.3 || ^7.4.0"
175
175
  }
176
176
  },
177
177
  "node_modules/@angular/service-worker": {
178
- "version": "21.2.20",
179
- "integrity": "sha512-4ruMK6QbGfSnmzm7lbF+UueOx0VmedvYL/Zbu76ZfsnzIxjraBUxb5KexhVji0xXvFv3DNzahcLuc57/gGOPZA==",
178
+ "version": "21.2.21",
179
+ "integrity": "sha512-xXQTPM4jvIskQbAprtCu28fR1yyNTF8GiipaaOZwmwpoBrQV+9MuAy0lmZvQrnga1AuxaxvvAATJYXKdwJ4NDw==",
180
180
  "license": "MIT",
181
181
  "dependencies": {
182
182
  "tslib": "^2.3.0"
@@ -188,7 +188,7 @@
188
188
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
189
189
  },
190
190
  "peerDependencies": {
191
- "@angular/core": "21.2.20",
191
+ "@angular/core": "21.2.21",
192
192
  "rxjs": "^6.5.3 || ^7.4.0"
193
193
  }
194
194
  },
@@ -395,8 +395,8 @@
395
395
  }
396
396
  },
397
397
  "node_modules/@babel/parser": {
398
- "version": "7.29.8",
399
- "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",
398
+ "version": "7.29.9",
399
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
400
400
  "dev": true,
401
401
  "license": "MIT",
402
402
  "dependencies": {
@@ -850,8 +850,8 @@
850
850
  }
851
851
  },
852
852
  "node_modules/@jest/core/node_modules/brace-expansion": {
853
- "version": "1.1.18",
854
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
853
+ "version": "1.1.21",
854
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
855
855
  "dev": true,
856
856
  "license": "MIT",
857
857
  "dependencies": {
@@ -1011,8 +1011,8 @@
1011
1011
  }
1012
1012
  },
1013
1013
  "node_modules/@jest/reporters/node_modules/brace-expansion": {
1014
- "version": "1.1.18",
1015
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
1014
+ "version": "1.1.21",
1015
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
1016
1016
  "dev": true,
1017
1017
  "license": "MIT",
1018
1018
  "dependencies": {
@@ -1349,8 +1349,8 @@
1349
1349
  }
1350
1350
  },
1351
1351
  "node_modules/@types/node": {
1352
- "version": "26.5.0",
1353
- "integrity": "sha512-dVSGpriSoCgz8WnDNTuSSuSv1PC/ALXihO4ulRZt7Md8k9mlbdin3lGOcDE8SnWOgf513ByWlXd7BK4azmyg/A==",
1352
+ "version": "26.6.2",
1353
+ "integrity": "sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g==",
1354
1354
  "dev": true,
1355
1355
  "license": "MIT",
1356
1356
  "dependencies": {
@@ -1385,28 +1385,28 @@
1385
1385
  "license": "MIT"
1386
1386
  },
1387
1387
  "node_modules/@wavemaker-ai/angular-app": {
1388
- "version": "12.0.0-rc.647733",
1389
- "integrity": "sha512-hr6AtgLKFqD4QCurjB6rQI7nnnqaMZWOzbMq5OW30Mz9MzKvMCvliUu6FpRH35/oS+nGw5PzhrhCCz2XBXoK+g==",
1390
- "dependencies": {
1391
- "@angular/animations": "21.2.20",
1392
- "@angular/common": "21.2.20",
1393
- "@angular/compiler": "21.2.20",
1394
- "@angular/core": "21.2.20",
1395
- "@angular/forms": "21.2.20",
1396
- "@angular/platform-browser": "21.2.20",
1397
- "@angular/platform-browser-dynamic": "21.2.20",
1398
- "@angular/router": "21.2.20",
1399
- "@angular/service-worker": "21.2.20",
1388
+ "version": "12.0.1-rc.338",
1389
+ "integrity": "sha512-6T6wgAeOXR+s/tPPmy6I6xyEgMPybrcwVFtAKJ2pEhQRaAWzlkg10L/zEsHpo05V5W5Uu8/jJjr8Eca7nB6aEw==",
1390
+ "dependencies": {
1391
+ "@angular/animations": "21.2.21",
1392
+ "@angular/common": "21.2.21",
1393
+ "@angular/compiler": "21.2.21",
1394
+ "@angular/core": "21.2.21",
1395
+ "@angular/forms": "21.2.21",
1396
+ "@angular/platform-browser": "21.2.21",
1397
+ "@angular/platform-browser-dynamic": "21.2.21",
1398
+ "@angular/router": "21.2.21",
1399
+ "@angular/service-worker": "21.2.21",
1400
1400
  "@fullcalendar/core": "6.1.18",
1401
1401
  "@fullcalendar/daygrid": "6.1.18",
1402
1402
  "@fullcalendar/interaction": "6.1.18",
1403
1403
  "@fullcalendar/list": "6.1.18",
1404
1404
  "@fullcalendar/timegrid": "6.1.18",
1405
1405
  "@metrichor/jmespath": "0.3.1",
1406
- "@wavemaker-ai/app-ng-runtime": "12.0.0-rc.647733",
1407
- "@wavemaker-ai/custom-widgets-m3": "12.0.0-rc.647733",
1408
- "@wavemaker-ai/foundation-css": "12.0.0-rc.647733",
1409
- "@wavemaker-ai/variables": "12.0.0-rc.647733",
1406
+ "@wavemaker-ai/app-ng-runtime": "12.0.1-rc.338",
1407
+ "@wavemaker-ai/custom-widgets-m3": "12.0.1-rc.338",
1408
+ "@wavemaker-ai/foundation-css": "12.0.1-rc.338",
1409
+ "@wavemaker-ai/variables": "12.0.1-rc.338",
1410
1410
  "@wavemaker/focus-trap": "1.0.1",
1411
1411
  "@wavemaker/nvd3": "1.8.16",
1412
1412
  "@ztree/ztree_v3": "3.5.48",
@@ -1443,8 +1443,8 @@
1443
1443
  }
1444
1444
  },
1445
1445
  "node_modules/@wavemaker-ai/app-ng-runtime": {
1446
- "version": "12.0.0-rc.647733",
1447
- "integrity": "sha512-fSDDHbuWFIr7mVQFyWBc3R3D0VyYIc0qGFoolpD70LNsqa8mpnLC7oWA3FIDlLfWc5F3HvXgt12sikHgnD1xug==",
1446
+ "version": "12.0.1-rc.338",
1447
+ "integrity": "sha512-/I3Vejz/Xk34/ShEO7XSiGYTa8nmHcTbh0iSOG7ekUJgEvGUQq6EiTpEF9yBjjVnKyEbtZHfyvge/4cwBP5pLA==",
1448
1448
  "license": "MIT",
1449
1449
  "engines": {
1450
1450
  "node": ">=18.16.1",
@@ -1452,13 +1452,13 @@
1452
1452
  }
1453
1453
  },
1454
1454
  "node_modules/@wavemaker-ai/custom-widgets-m3": {
1455
- "version": "12.0.0-rc.647733",
1456
- "integrity": "sha512-US2yAptHkmC49TaxdIRcNSi1W2ZvH0Bfm+XAgmj/tBtjp5z4Z7vFwCtJJpCCmgfwNU0xNIvLxtDIXmMgH97T0Q==",
1455
+ "version": "12.0.1-rc.338",
1456
+ "integrity": "sha512-hFwTa6pq0Dgeg933fBbMLdLN/WqPwXL4a+jYQ41fEP/vd0fm5myrKRQxZc8JcbICpiWjrEcK5BxV3fLRWa41Qw==",
1457
1457
  "license": "ISC"
1458
1458
  },
1459
1459
  "node_modules/@wavemaker-ai/foundation-css": {
1460
- "version": "12.0.0-rc.647733",
1461
- "integrity": "sha512-ME+3qeDX27Rt2wPBQVEgSK09aDPHf81F5pcS8emJHw1nQBRqiGyn4Xv5aWYi9CuBuvZT80qKWUR8OSyGjUrXUQ==",
1460
+ "version": "12.0.1-rc.338",
1461
+ "integrity": "sha512-bFNxa3zFrpgAcX1CCGRXqJA+Sy7vE0SL2OUInbvdYI/SfjFwwDHPtikEdXV02iBymixMEaV8INwINKebYfhCdQ==",
1462
1462
  "license": "ISC",
1463
1463
  "dependencies": {
1464
1464
  "ajv": "8.18.0",
@@ -1466,8 +1466,8 @@
1466
1466
  }
1467
1467
  },
1468
1468
  "node_modules/@wavemaker-ai/variables": {
1469
- "version": "12.0.0-rc.647733",
1470
- "integrity": "sha512-fgn3Y7fFf1IR+cF/D7mjXiBYWsuVr7dX6R9Oy0begfXPbQrRzLjfcs/z6WIMteuc6RlpMmRQ8mO8/3+I4XkNGA==",
1469
+ "version": "12.0.1-rc.338",
1470
+ "integrity": "sha512-LzYaCfYjHCVHG63FkZtxePAirGOmu+3u8MGOM0OF/3/7Bzut9E9mkTelFyeVM6AkSUu0SoRCrZweZHdQZVG78A==",
1471
1471
  "license": "ISC",
1472
1472
  "dependencies": {
1473
1473
  "@metrichor/jmespath": "0.3.1",
@@ -1789,8 +1789,8 @@
1789
1789
  }
1790
1790
  },
1791
1791
  "node_modules/b4a": {
1792
- "version": "1.8.1",
1793
- "integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==",
1792
+ "version": "1.9.0",
1793
+ "integrity": "sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==",
1794
1794
  "license": "Apache-2.0",
1795
1795
  "peerDependencies": {
1796
1796
  "react-native-b4a": "*"
@@ -1996,8 +1996,8 @@
1996
1996
  "license": "MIT"
1997
1997
  },
1998
1998
  "node_modules/baseline-browser-mapping": {
1999
- "version": "2.11.21",
2000
- "integrity": "sha512-uh8vpY/1/YyFkunIDFH/12p7/7VdPKA1hejMVEbdkEaWnUz0Hesvx5EbiU6XxjyHZIOju+ZMbQJkRh+es3/spQ==",
1999
+ "version": "2.11.25",
2000
+ "integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==",
2001
2001
  "dev": true,
2002
2002
  "license": "Apache-2.0",
2003
2003
  "bin": {
@@ -2049,8 +2049,8 @@
2049
2049
  "license": "MIT"
2050
2050
  },
2051
2051
  "node_modules/body-parser": {
2052
- "version": "1.20.6",
2053
- "integrity": "sha512-p5tAzS57i5MV9fZFDj9LeIiTZEufbSe2eDozP+ElheSUq1m74CRq1jI4mYNDdVs9vQztXFLuk/Gd6BWTdwRJ5g==",
2052
+ "version": "1.20.8",
2053
+ "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==",
2054
2054
  "license": "MIT",
2055
2055
  "dependencies": {
2056
2056
  "bytes": "~3.1.2",
@@ -2061,7 +2061,7 @@
2061
2061
  "http-errors": "~2.0.1",
2062
2062
  "iconv-lite": "~0.4.24",
2063
2063
  "on-finished": "~2.4.1",
2064
- "qs": "~6.15.1",
2064
+ "qs": "~6.16.0",
2065
2065
  "raw-body": "~2.5.3",
2066
2066
  "type-is": "~1.6.18",
2067
2067
  "unpipe": "~1.0.0"
@@ -2088,8 +2088,8 @@
2088
2088
  "license": "ISC"
2089
2089
  },
2090
2090
  "node_modules/brace-expansion": {
2091
- "version": "2.1.4",
2092
- "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==",
2091
+ "version": "2.1.7",
2092
+ "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",
2093
2093
  "license": "MIT",
2094
2094
  "dependencies": {
2095
2095
  "balanced-match": "^1.0.0"
@@ -2114,8 +2114,8 @@
2114
2114
  "license": "BSD-2-Clause"
2115
2115
  },
2116
2116
  "node_modules/browserslist": {
2117
- "version": "4.28.9",
2118
- "integrity": "sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg==",
2117
+ "version": "4.29.0",
2118
+ "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==",
2119
2119
  "dev": true,
2120
2120
  "funding": [
2121
2121
  {
@@ -2133,11 +2133,11 @@
2133
2133
  ],
2134
2134
  "license": "MIT",
2135
2135
  "dependencies": {
2136
- "baseline-browser-mapping": "^2.11.20",
2136
+ "baseline-browser-mapping": "^2.11.23",
2137
2137
  "caniuse-lite": "^1.0.30001810",
2138
- "electron-to-chromium": "^1.5.420",
2139
- "node-releases": "^2.0.54",
2140
- "update-browserslist-db": "^1.3.2"
2138
+ "electron-to-chromium": "^1.5.427",
2139
+ "node-releases": "^2.0.55",
2140
+ "update-browserslist-db": "^1.3.3"
2141
2141
  },
2142
2142
  "bin": {
2143
2143
  "browserslist": "cli.js"
@@ -3356,8 +3356,8 @@
3356
3356
  "license": "MIT"
3357
3357
  },
3358
3358
  "node_modules/electron-to-chromium": {
3359
- "version": "1.5.422",
3360
- "integrity": "sha512-UvA/32XqrLDdZSn7Jllo1AYNcWji/G0d5M0GTViE7KoGBiMunw3a34Sb2KO4ZZyrSEhqsxFoVhWWJshdyfKqJA==",
3359
+ "version": "1.5.433",
3360
+ "integrity": "sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==",
3361
3361
  "dev": true,
3362
3362
  "license": "ISC"
3363
3363
  },
@@ -3616,8 +3616,8 @@
3616
3616
  }
3617
3617
  },
3618
3618
  "node_modules/express": {
3619
- "version": "4.22.2",
3620
- "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==",
3619
+ "version": "4.22.3",
3620
+ "integrity": "sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==",
3621
3621
  "license": "MIT",
3622
3622
  "dependencies": {
3623
3623
  "accepts": "~1.3.8",
@@ -3639,9 +3639,9 @@
3639
3639
  "methods": "~1.1.2",
3640
3640
  "on-finished": "~2.4.1",
3641
3641
  "parseurl": "~1.3.3",
3642
- "path-to-regexp": "~0.1.12",
3642
+ "path-to-regexp": "~0.1.13",
3643
3643
  "proxy-addr": "~2.0.7",
3644
- "qs": "~6.15.1",
3644
+ "qs": "~6.16.0",
3645
3645
  "range-parser": "~1.2.1",
3646
3646
  "safe-buffer": "5.2.1",
3647
3647
  "send": "~0.19.0",
@@ -3677,8 +3677,8 @@
3677
3677
  "license": "MIT"
3678
3678
  },
3679
3679
  "node_modules/fast-uri": {
3680
- "version": "3.1.7",
3681
- "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==",
3680
+ "version": "3.1.8",
3681
+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",
3682
3682
  "funding": [
3683
3683
  {
3684
3684
  "type": "github",
@@ -4308,12 +4308,12 @@
4308
4308
  }
4309
4309
  },
4310
4310
  "node_modules/is-core-module": {
4311
- "version": "2.16.2",
4312
- "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
4311
+ "version": "2.17.0",
4312
+ "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==",
4313
4313
  "dev": true,
4314
4314
  "license": "MIT",
4315
4315
  "dependencies": {
4316
- "hasown": "^2.0.3"
4316
+ "hasown": "^2.0.4"
4317
4317
  },
4318
4318
  "engines": {
4319
4319
  "node": ">= 0.4"
@@ -4756,8 +4756,8 @@
4756
4756
  }
4757
4757
  },
4758
4758
  "node_modules/jest-config/node_modules/brace-expansion": {
4759
- "version": "1.1.18",
4760
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
4759
+ "version": "1.1.21",
4760
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
4761
4761
  "dev": true,
4762
4762
  "license": "MIT",
4763
4763
  "dependencies": {
@@ -5127,8 +5127,8 @@
5127
5127
  }
5128
5128
  },
5129
5129
  "node_modules/jest-runtime/node_modules/brace-expansion": {
5130
- "version": "1.1.18",
5131
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
5130
+ "version": "1.1.21",
5131
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
5132
5132
  "dev": true,
5133
5133
  "license": "MIT",
5134
5134
  "dependencies": {
@@ -5883,8 +5883,8 @@
5883
5883
  "license": "MIT"
5884
5884
  },
5885
5885
  "node_modules/node-releases": {
5886
- "version": "2.0.54",
5887
- "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==",
5886
+ "version": "2.0.56",
5887
+ "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==",
5888
5888
  "dev": true,
5889
5889
  "license": "MIT",
5890
5890
  "engines": {
@@ -5953,8 +5953,8 @@
5953
5953
  }
5954
5954
  },
5955
5955
  "node_modules/nwsapi": {
5956
- "version": "2.2.27",
5957
- "integrity": "sha512-gQPNF78qebCQ6tvVFBYrvJdBNOrYZm90ZlXgpIFm06p6qHDHq/XC4TnJftN6OMbxVE0UTBAoRgcsDeJBBooITw==",
5956
+ "version": "2.2.28",
5957
+ "integrity": "sha512-IlVB7OS7qrOsVYlpnFIkETjMwT9jwvmocJmmM+GZU/PAB3uGi9Ezd7vcWhWBUnSc0ya4ppmQITOyP1ez9gg8cg==",
5958
5958
  "dev": true,
5959
5959
  "license": "MIT"
5960
5960
  },
@@ -6442,8 +6442,8 @@
6442
6442
  "license": "ISC"
6443
6443
  },
6444
6444
  "node_modules/proxy-addr": {
6445
- "version": "2.0.7",
6446
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
6445
+ "version": "2.0.8",
6446
+ "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==",
6447
6447
  "license": "MIT",
6448
6448
  "dependencies": {
6449
6449
  "forwarded": "0.2.0",
@@ -6451,6 +6451,10 @@
6451
6451
  },
6452
6452
  "engines": {
6453
6453
  "node": ">= 0.10"
6454
+ },
6455
+ "funding": {
6456
+ "type": "opencollective",
6457
+ "url": "https://opencollective.com/express"
6454
6458
  }
6455
6459
  },
6456
6460
  "node_modules/psl": {
@@ -6484,8 +6488,8 @@
6484
6488
  }
6485
6489
  },
6486
6490
  "node_modules/qs": {
6487
- "version": "6.15.3",
6488
- "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",
6491
+ "version": "6.16.0",
6492
+ "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
6489
6493
  "license": "BSD-3-Clause",
6490
6494
  "dependencies": {
6491
6495
  "es-define-property": "^1.0.1",
@@ -6668,8 +6672,8 @@
6668
6672
  }
6669
6673
  },
6670
6674
  "node_modules/rimraf/node_modules/brace-expansion": {
6671
- "version": "1.1.18",
6672
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
6675
+ "version": "1.1.21",
6676
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
6673
6677
  "license": "MIT",
6674
6678
  "dependencies": {
6675
6679
  "balanced-match": "^1.0.0",
@@ -7351,8 +7355,8 @@
7351
7355
  }
7352
7356
  },
7353
7357
  "node_modules/test-exclude/node_modules/brace-expansion": {
7354
- "version": "1.1.18",
7355
- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
7358
+ "version": "1.1.21",
7359
+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
7356
7360
  "dev": true,
7357
7361
  "license": "MIT",
7358
7362
  "dependencies": {
@@ -7574,8 +7578,8 @@
7574
7578
  }
7575
7579
  },
7576
7580
  "node_modules/update-browserslist-db": {
7577
- "version": "1.3.2",
7578
- "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==",
7581
+ "version": "1.3.3",
7582
+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
7579
7583
  "dev": true,
7580
7584
  "funding": [
7581
7585
  {
@@ -7759,8 +7763,8 @@
7759
7763
  "license": "ISC"
7760
7764
  },
7761
7765
  "node_modules/which-typed-array": {
7762
- "version": "1.1.22",
7763
- "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==",
7766
+ "version": "1.1.24",
7767
+ "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==",
7764
7768
  "license": "MIT",
7765
7769
  "dependencies": {
7766
7770
  "available-typed-arrays": "^1.0.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker-ai/angular-codegen",
3
- "version": "12.0.0-rc.647733",
3
+ "version": "12.0.1-rc.338",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  ".npmrc"
16
16
  ],
17
17
  "dependencies": {
18
- "@wavemaker-ai/angular-app": "12.0.0-rc.647733",
18
+ "@wavemaker-ai/angular-app": "12.0.1-rc.338",
19
19
  "archiver": "^7.0.1",
20
20
  "cheerio": "1.0.0-rc.12",
21
21
  "decode-uri-component": "^0.2.0",
package/src/wm-utils.js CHANGED
@@ -1 +1 @@
1
- const util=require("util"),fs=require("fs"),rimraf=require("rimraf"),decodeUriComponent=require("decode-uri-component"),upperFirst=require("lodash/upperFirst"),tar=require("tar-fs"),prettier=require("prettier"),js_beautify=require("js-beautify"),html_beautify=require("js-beautify").html,path=require("path"),defaultEslintConfig=require("./eslintrc_config"),mergeWith=require("lodash/mergeWith"),stat=util.promisify(fs.stat),createDir=util.promisify(fs.mkdir),createReadStream=util.promisify(fs.createReadStream),readFile=util.promisify(fs.readFile),writeFile=util.promisify(fs.writeFile),readDir=util.promisify(fs.readdir),rename=util.promisify(fs.rename),searchFileByName=(e,t,r)=>{if(!fs.existsSync(e))return;fs.readdirSync(e).forEach(i=>{const s=path.join(e,i);fs.lstatSync(s).isDirectory()?searchFileByName(s,t,r):t.test(s)&&r(s)})},deleteResource=async e=>stat(e).then(()=>new Promise((t,r)=>{rimraf(e,()=>t())}),()=>Promise.resolve()),getComponentName=e=>`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Component`,getComponentModuleName=e=>`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Module`,getSafeObjectKey=e=>/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:`'${e}'`,decodeURIComponent=e=>decodeUriComponent(e.replace(/\+/g," ")),createTar=(e,t)=>new Promise((r,i)=>{tar.pack(e).pipe(fs.createWriteStream(t)).on("finish",r)}),extractTar=(e,t)=>new Promise((r,i)=>{fs.createReadStream(e).pipe(tar.extract(t)).on("finish",r)}),getWebAppPath=e=>`${e}/src/main/webapp`,getLayoutsConfigPath=e=>`${getWebAppPath(e)}/layouts/layouts-config.json`,getLayoutsDirPath=e=>`${getWebAppPath(e)}/layouts`,getPagesDirPath=e=>`${getWebAppPath(e)}/pages`,getPagesConfigPath=e=>`${getWebAppPath(e)}/pages/pages-config.json`,getPrefabsDirPath=e=>`${getWebAppPath(e)}/WEB-INF/prefabs`,getPrefabConfigPath=(e,t)=>`${getPrefabsDirPath(e)}/${t}/webapp/config.json`,getPrefabPagesDirPath=(e,t)=>`${getPrefabsDirPath(e)}/${t}/webapp/pages`,getSecurityConfigPath=e=>`${e}/services/securityService/designtime/intercept-urls.json`,getRolesConfigPath=e=>`${e}/services/securityService/designtime/roles.json`,getAuthInfoFilePath=e=>`${e}/services/securityService/designtime/auth-info.json`,getAppJsFilePath=e=>`${getWebAppPath(e)}/app.js`,getAppVariablesFilePath=e=>`${getWebAppPath(e)}/app.variables.json`,getThemesConfigPropertiesFilePath=e=>`${getWebAppPath(e)}/themes/themes-config.json`,getWmProjectPropertiesFilePath=e=>`${e}/target/ui-resources/wmProperties.js`,getLegacyWmProjectPropertiesFilePath=e=>`${e}/.wmproject.properties`,getIndexHtmlPath=e=>`${getWebAppPath(e)}/index.html`,{WM_NPM_SCOPE:_WM_NPM_SCOPE}=require("./wm-namespace");let codegenPath=`./node_modules/${_WM_NPM_SCOPE}/angular-codegen`;const setCodegenPath=e=>{e&&(codegenPath=e)},getCodegenPath=()=>codegenPath,generateRandomHash=()=>Array.from(Array(20),()=>Math.floor(36*Math.random()).toString(36)).join(""),formatContents=(e="",t)=>"javascript"===t?js_beautify(e,{}):prettier.format(e,{semi:!1,parser:"typescript",tabWidth:4}),formatMarkup=(e="")=>html_beautify(e),isMobileProject=e=>"MOBILE"===e.platformType,isPrefabProject=e=>"PREFAB"===e.type,isPrismProject=e=>"PRISM"===e.template,readFileSync=(e,t)=>{let r=fs.readFileSync(e);return t?JSON.parse(r):r};function copyFileSync(e,t){try{fs.copyFileSync(e,t)}catch(t){console.error(`Error copying ${e}: ${t.message}`)}}function existsFileSync(e){try{return fs.existsSync(e)}catch(t){return console.error(`Error in checking file exist ${e}: ${t.message}`),!1}}function copyPrefabFiles(e,t){const r=path.resolve(`${e}`);if(fs.existsSync(r)){const e=fs.readdirSync(r).filter(e=>fs.statSync(path.join(r,e)).isDirectory());t=path.resolve(`${t}`),e.forEach(e=>{const i=path.join(r,e),s=path.join(i,"prefab-servicedefs.json");fs.existsSync(s)&&copyFileSync(s,path.join(t+"/src","servicedefs",`${e}-prefab-servicedefs.json`));const a=path.join(i,"webapp"),o=path.join(t+"/resources",e);fs.existsSync(a)&&copyDirWithExclusionsSync(a,o,["resources"]);const n=path.join(a,"resources"),c=path.join(t+"/resources",e+"/resources");fs.existsSync(n)&&copyDirWithExclusionsSync(n,c)})}}const copyDirWithExclusionsSync=(e,t,r=[])=>{fs.existsSync(t)||fs.mkdirSync(t,{recursive:!0});let i=[];try{i=fs.readdirSync(e,{withFileTypes:!0})}catch(e){if("ENOENT"!==e.code)throw e}for(const s of i){const i=path.join(e,s.name),a=path.join(t,s.name);r.includes(s.name)||(s.isDirectory()?copyDirWithExclusionsSync(i,a,r):fs.copyFileSync(i,a))}},initExpressionParser=()=>{const e=require("../dependencies/expression-parser.cjs"),t=require("../dependencies/pipe-provider.cjs");e.setPipeProvider(new t.PipeProvider({},{get:()=>{}},{}))},DESIGN_TOKENS_DIR_NAME="design-tokens",APP_OVERRIDE_CSS_PATH="design-tokens/app.override.css",OVERRIDE_TOKENS_PATH="design-tokens/overrides",updateEslintConfig=async(e,t)=>{let r,i;try{existsFileSync(path.join(e,"build-src","eslintrc-override.js"))?(r=require(path.join(e,"build-src","eslintrc-override.js")),(i=mergeWith({},defaultEslintConfig,r)).extends&&!i.extends.includes("eslint:recommended")&&i.extends.push("eslint:recommended"),Object.prototype.hasOwnProperty.call(i,"extraLintPaths")&&delete i.extraLintPaths,Object.prototype.hasOwnProperty.call(i,"ignoreCssPatterns")&&delete i.ignoreCssPatterns):i=mergeWith({},defaultEslintConfig),await fs.writeFileSync(path.join(t,".eslintrc.js"),`const config = ${JSON.stringify(i,null,4)};\n\nmodule.exports = config;`)}catch(e){console.log(`Error in updating eslint config: ${e.message}`)}},getOverridePackageJson=async e=>existsFileSync(`${e=-1!==e.indexOf("target")?e.split("/target")[0]:e}/build-src/package-override.json`)?readFileSync(`${e}/build-src/package-override.json`,!0):null,mergePackageJsonWithOverrideJson=async(e,t,r)=>{try{const i={"eslint-plugin-regex":"1.10.0","@html-eslint/parser":"0.41.0","@html-eslint/eslint-plugin":"0.41.0","yaml-eslint-parser":"1.3.0","any-eslint-parser":"1.0.1","eslint-html-parser":"1.0.1","eslint-plugin-html":"8.1.2","jsonc-eslint-parser":"2.1.0"},s=await getOverridePackageJson(e);if(r&&(t.devDependencies={...t.devDependencies,...i}),s)return mergeWith({},t,s)}catch(e){console.log(`Error in merging the package.json with overrider-package.json: ${e.message}`)}return t};module.exports={stat:stat,createDir:createDir,createReadStream:createReadStream,readFile:readFile,writeFile:writeFile,deleteResource:deleteResource,getComponentName:getComponentName,getComponentModuleName:getComponentModuleName,getSafeObjectKey:getSafeObjectKey,decodeURIComponent:decodeURIComponent,createTar:createTar,extractTar:extractTar,readDir:readDir,rename:rename,searchFileByName:searchFileByName,updateEslintConfig:updateEslintConfig,existsFileSync:existsFileSync,getWebAppPath:getWebAppPath,getLayoutsConfigPath:getLayoutsConfigPath,getLayoutsDirPath:getLayoutsDirPath,getPagesDirPath:getPagesDirPath,getPagesConfigPath:getPagesConfigPath,getPrefabsDirPath:getPrefabsDirPath,getPrefabConfigPath:getPrefabConfigPath,getPrefabPagesDirPath:getPrefabPagesDirPath,getSecurityConfigPath:getSecurityConfigPath,getRolesConfigPath:getRolesConfigPath,getAuthInfoFilePath:getAuthInfoFilePath,getAppJsFilePath:getAppJsFilePath,getAppVariablesFilePath:getAppVariablesFilePath,getWmProjectPropertiesFilePath:getWmProjectPropertiesFilePath,getThemesConfigPropertiesFilePath:getThemesConfigPropertiesFilePath,getIndexHtmlPath:getIndexHtmlPath,formatContents:formatContents,formatMarkup:formatMarkup,isMobileProject:isMobileProject,isPrefabProject:isPrefabProject,isPrismProject:isPrismProject,readFileSync:readFileSync,getCodegenPath:getCodegenPath,setCodegenPath:setCodegenPath,initExpressionParser:initExpressionParser,copyFileSync:copyFileSync,copyPrefabFiles:copyPrefabFiles,generateRandomHash:generateRandomHash,copyDirWithExclusionsSync:copyDirWithExclusionsSync,DESIGN_TOKENS_DIR_NAME:"design-tokens",APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,getLegacyWmProjectPropertiesFilePath:getLegacyWmProjectPropertiesFilePath,mergePackageJsonWithOverrideJson:mergePackageJsonWithOverrideJson};
1
+ const util=require("util"),fs=require("fs"),rimraf=require("rimraf"),decodeUriComponent=require("decode-uri-component"),upperFirst=require("lodash/upperFirst"),tar=require("tar-fs"),prettier=require("prettier"),js_beautify=require("js-beautify"),html_beautify=require("js-beautify").html,path=require("path"),defaultEslintConfig=require("./eslintrc_config"),mergeWith=require("lodash/mergeWith"),stat=util.promisify(fs.stat),createDir=util.promisify(fs.mkdir),createReadStream=util.promisify(fs.createReadStream),readFile=util.promisify(fs.readFile),writeFile=util.promisify(fs.writeFile),readDir=util.promisify(fs.readdir),rename=util.promisify(fs.rename),searchFileByName=(e,t,r)=>{if(!fs.existsSync(e))return;fs.readdirSync(e).forEach(i=>{const s=path.join(e,i);fs.lstatSync(s).isDirectory()?searchFileByName(s,t,r):t.test(s)&&r(s)})},deleteResource=async e=>stat(e).then(()=>new Promise((t,r)=>{rimraf(e,()=>t())}),()=>Promise.resolve()),getComponentName=e=>`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Component`,getComponentModuleName=e=>`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Module`,getSafeObjectKey=e=>/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:`'${e}'`,decodeURIComponent=e=>decodeUriComponent(e.replace(/\+/g," ")),createTar=(e,t)=>new Promise((r,i)=>{tar.pack(e).pipe(fs.createWriteStream(t)).on("finish",r)}),extractTar=(e,t)=>new Promise((r,i)=>{fs.createReadStream(e).pipe(tar.extract(t)).on("finish",r)}),getWebAppPath=e=>`${e}/src/main/webapp`,getLayoutsConfigPath=e=>`${getWebAppPath(e)}/layouts/layouts-config.json`,getLayoutsDirPath=e=>`${getWebAppPath(e)}/layouts`,getPagesDirPath=e=>`${getWebAppPath(e)}/pages`,getPagesConfigPath=e=>`${getWebAppPath(e)}/pages/pages-config.json`,getPrefabsDirPath=e=>`${getWebAppPath(e)}/WEB-INF/prefabs`,getPrefabConfigPath=(e,t)=>`${getPrefabsDirPath(e)}/${t}/webapp/config.json`,getPrefabPagesDirPath=(e,t)=>`${getPrefabsDirPath(e)}/${t}/webapp/pages`,getSecurityConfigPath=e=>`${e}/services/securityService/designtime/intercept-urls.json`,getRolesConfigPath=e=>`${e}/services/securityService/designtime/roles.json`,getAuthInfoFilePath=e=>`${e}/services/securityService/designtime/auth-info.json`,getAppJsFilePath=e=>`${getWebAppPath(e)}/app.js`,getAppVariablesFilePath=e=>`${getWebAppPath(e)}/app.variables.json`,getThemesConfigPropertiesFilePath=e=>`${getWebAppPath(e)}/themes/themes-config.json`,getWmProjectPropertiesFilePath=e=>`${e}/target/ui-resources/wmProperties.js`,getLegacyWmProjectPropertiesFilePath=e=>`${e}/.wmproject.properties`,getIndexHtmlPath=e=>`${getWebAppPath(e)}/index.html`,{WM_NPM_SCOPE:_WM_NPM_SCOPE}=require("./wm-namespace");let codegenPath=`./node_modules/${_WM_NPM_SCOPE}/angular-codegen`;const setCodegenPath=e=>{e&&(codegenPath=e)},getCodegenPath=()=>codegenPath,generateRandomHash=()=>Array.from(Array(20),()=>Math.floor(36*Math.random()).toString(36)).join(""),formatContents=(e="",t)=>"javascript"===t?js_beautify(e,{}):prettier.format(e,{semi:!1,parser:"typescript",tabWidth:4}),formatMarkup=(e="")=>html_beautify(e),isMobileProject=e=>"MOBILE"===e.platformType,isPrefabProject=e=>"PREFAB"===e.type,isPrismProject=e=>"PRISM"===e.template,readFileSync=(e,t)=>{let r=fs.readFileSync(e);return t?JSON.parse(r):r};function copyFileSync(e,t){try{fs.copyFileSync(e,t)}catch(t){console.error(`Error copying ${e}: ${t.message}`)}}function existsFileSync(e){try{return fs.existsSync(e)}catch(t){return console.error(`Error in checking file exist ${e}: ${t.message}`),!1}}function copyPrefabFiles(e,t){const r=path.resolve(`${e}`);if(fs.existsSync(r)){const e=fs.readdirSync(r).filter(e=>fs.statSync(path.join(r,e)).isDirectory());t=path.resolve(`${t}`),e.forEach(e=>{const i=path.join(r,e),s=path.join(i,"prefab-servicedefs.json");fs.existsSync(s)&&copyFileSync(s,path.join(t+"/src","servicedefs",`${e}-prefab-servicedefs.json`));const a=path.join(i,"webapp"),o=path.join(t+"/resources",e);fs.existsSync(a)&&copyDirWithExclusionsSync(a,o,["resources"]);const n=path.join(a,"resources"),c=path.join(t+"/resources",e+"/resources");fs.existsSync(n)&&copyDirWithExclusionsSync(n,c)})}}const copyDirWithExclusionsSync=(e,t,r=[])=>{fs.existsSync(t)||fs.mkdirSync(t,{recursive:!0});let i=[];try{i=fs.readdirSync(e,{withFileTypes:!0})}catch(e){if("ENOENT"!==e.code)throw e}for(const s of i){const i=path.join(e,s.name),a=path.join(t,s.name);r.includes(s.name)||(s.isDirectory()?copyDirWithExclusionsSync(i,a,r):fs.copyFileSync(i,a))}},initExpressionParser=()=>{const e=require("../dependencies/expression-parser.cjs"),t=require("../dependencies/pipe-provider.cjs");e.setPipeProvider(new t.PipeProvider({},{get:()=>{}},{}))},DESIGN_TOKENS_DIR_NAME="design-tokens",APP_OVERRIDE_CSS_PATH="design-tokens/app.override.css",OVERRIDE_TOKENS_PATH="design-tokens/overrides",updateEslintConfig=async(e,t)=>{let r,i;try{existsFileSync(path.join(e,"build-src","eslintrc-override.js"))?(r=require(path.join(e,"build-src","eslintrc-override.js")),(i=cleanupDeletedKeys(mergeWith({},defaultEslintConfig,r,deleteNullOverridesCustomizer))).extends&&!i.extends.includes("eslint:recommended")&&i.extends.push("eslint:recommended"),Object.prototype.hasOwnProperty.call(i,"extraLintPaths")&&delete i.extraLintPaths,Object.prototype.hasOwnProperty.call(i,"ignoreCssPatterns")&&delete i.ignoreCssPatterns):i=mergeWith({},defaultEslintConfig),await fs.writeFileSync(path.join(t,".eslintrc.js"),`const config = ${JSON.stringify(i,null,4)};\n\nmodule.exports = config;`)}catch(e){console.log(`Error in updating eslint config: ${e.message}`)}},getOverridePackageJson=async e=>existsFileSync(`${e=-1!==e.indexOf("target")?e.split("/target")[0]:e}/build-src/package-override.json`)?readFileSync(`${e}/build-src/package-override.json`,!0):null,DELETE_KEY=Symbol("deleteKey"),deleteNullOverridesCustomizer=(e,t)=>{if(null===t)return DELETE_KEY},cleanupDeletedKeys=e=>(e&&"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(t=>{e[t]===DELETE_KEY?delete e[t]:cleanupDeletedKeys(e[t])}),e),mergePackageJsonWithOverrideJson=async(e,t,r)=>{try{const i={"eslint-plugin-regex":"1.10.0","@html-eslint/parser":"0.41.0","@html-eslint/eslint-plugin":"0.41.0","yaml-eslint-parser":"1.3.0","any-eslint-parser":"1.0.1","eslint-html-parser":"1.0.1","eslint-plugin-html":"8.1.2","jsonc-eslint-parser":"2.1.0"},s=await getOverridePackageJson(e);if(r&&(t.devDependencies={...t.devDependencies,...i}),s)return cleanupDeletedKeys(mergeWith({},t,s,deleteNullOverridesCustomizer))}catch(e){console.log(`Error in merging the package.json with overrider-package.json: ${e.message}`)}return t};module.exports={stat:stat,createDir:createDir,createReadStream:createReadStream,readFile:readFile,writeFile:writeFile,deleteResource:deleteResource,getComponentName:getComponentName,getComponentModuleName:getComponentModuleName,getSafeObjectKey:getSafeObjectKey,decodeURIComponent:decodeURIComponent,createTar:createTar,extractTar:extractTar,readDir:readDir,rename:rename,searchFileByName:searchFileByName,updateEslintConfig:updateEslintConfig,existsFileSync:existsFileSync,getWebAppPath:getWebAppPath,getLayoutsConfigPath:getLayoutsConfigPath,getLayoutsDirPath:getLayoutsDirPath,getPagesDirPath:getPagesDirPath,getPagesConfigPath:getPagesConfigPath,getPrefabsDirPath:getPrefabsDirPath,getPrefabConfigPath:getPrefabConfigPath,getPrefabPagesDirPath:getPrefabPagesDirPath,getSecurityConfigPath:getSecurityConfigPath,getRolesConfigPath:getRolesConfigPath,getAuthInfoFilePath:getAuthInfoFilePath,getAppJsFilePath:getAppJsFilePath,getAppVariablesFilePath:getAppVariablesFilePath,getWmProjectPropertiesFilePath:getWmProjectPropertiesFilePath,getThemesConfigPropertiesFilePath:getThemesConfigPropertiesFilePath,getIndexHtmlPath:getIndexHtmlPath,formatContents:formatContents,formatMarkup:formatMarkup,isMobileProject:isMobileProject,isPrefabProject:isPrefabProject,isPrismProject:isPrismProject,readFileSync:readFileSync,getCodegenPath:getCodegenPath,setCodegenPath:setCodegenPath,initExpressionParser:initExpressionParser,copyFileSync:copyFileSync,copyPrefabFiles:copyPrefabFiles,generateRandomHash:generateRandomHash,copyDirWithExclusionsSync:copyDirWithExclusionsSync,DESIGN_TOKENS_DIR_NAME:"design-tokens",APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,getLegacyWmProjectPropertiesFilePath:getLegacyWmProjectPropertiesFilePath,mergePackageJsonWithOverrideJson:mergePackageJsonWithOverrideJson};