@wavemaker-ai/angular-codegen 1.0.0-rc.330 → 1.0.0-rc.334
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-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +4573 -4556
- package/angular-app/package-lock.json +4573 -4556
- package/angular-app/package.json +22 -15
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/dependencies/expression-parser.cjs.js +1918 -1778
- package/dependencies/pipe-provider.cjs.js +3172 -1972
- package/dependencies/transpilation-web.cjs.js +1874 -1290
- package/npm-shrinkwrap.json +67 -64
- package/package-lock.json +67 -64
- package/package.json +2 -2
- package/src/gen-app-override-css.js +1 -1
package/package-lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker-ai/angular-codegen",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.334",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker-ai/angular-codegen",
|
|
9
|
-
"version": "1.0.0-rc.
|
|
9
|
+
"version": "1.0.0-rc.334",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker-ai/angular-app": "1.0.0-rc.
|
|
12
|
+
"@wavemaker-ai/angular-app": "1.0.0-rc.334",
|
|
13
13
|
"archiver": "^7.0.1",
|
|
14
14
|
"cheerio": "1.0.0-rc.12",
|
|
15
15
|
"decode-uri-component": "^0.2.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"node_modules/@angular/common": {
|
|
54
|
-
"version": "20.3.
|
|
55
|
-
"integrity": "sha512-
|
|
54
|
+
"version": "20.3.28",
|
|
55
|
+
"integrity": "sha512-vvMrBI0POHYeUE8EnN4ohYOqLkmZXI6oKJnMvarfukySnw7mZ4VuY4DNAnRSbEZEqO55sOmVCQ7jbxDDt34tZw==",
|
|
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": "20.3.
|
|
64
|
+
"@angular/core": "20.3.28",
|
|
65
65
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"node_modules/@angular/compiler": {
|
|
69
|
-
"version": "20.3.
|
|
70
|
-
"integrity": "sha512-
|
|
69
|
+
"version": "20.3.28",
|
|
70
|
+
"integrity": "sha512-3iSkIWJEVrdG4Zv0vQs0ieO185aJfb5Vn3whi/D7QEDUNEsHGZSxRDxT1hyDGIaj52FN6+Qo5SFSSsDf+vgUAA==",
|
|
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": "20.3.
|
|
81
|
-
"integrity": "sha512-
|
|
80
|
+
"version": "20.3.28",
|
|
81
|
+
"integrity": "sha512-R28TMoEr+mBUswemFWZdHAuK2WDSs+6eYFBg6XrBmlMlmG4YkWeNFxRbJNYDkF8RH+fpguS+iUH63yLpts22dA==",
|
|
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": "20.3.
|
|
90
|
+
"@angular/compiler": "20.3.28",
|
|
91
91
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
92
92
|
"zone.js": "~0.15.0"
|
|
93
93
|
},
|
|
@@ -174,8 +174,8 @@
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
"node_modules/@angular/service-worker": {
|
|
177
|
-
"version": "20.3.
|
|
178
|
-
"integrity": "sha512-
|
|
177
|
+
"version": "20.3.28",
|
|
178
|
+
"integrity": "sha512-5B0gOkFsQgFcsCkW4wsDmjWAtFvTzGxb+EtKQphvKYHP5nTpAppZbi0w4JY+hbzwOpeJ7+/SlXMiE7H5J5V62Q==",
|
|
179
179
|
"license": "MIT",
|
|
180
180
|
"dependencies": {
|
|
181
181
|
"tslib": "^2.3.0"
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
188
188
|
},
|
|
189
189
|
"peerDependencies": {
|
|
190
|
-
"@angular/core": "20.3.
|
|
190
|
+
"@angular/core": "20.3.28",
|
|
191
191
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
192
192
|
}
|
|
193
193
|
},
|
|
@@ -1343,8 +1343,8 @@
|
|
|
1343
1343
|
}
|
|
1344
1344
|
},
|
|
1345
1345
|
"node_modules/@types/node": {
|
|
1346
|
-
"version": "26.
|
|
1347
|
-
"integrity": "sha512-
|
|
1346
|
+
"version": "26.2.0",
|
|
1347
|
+
"integrity": "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==",
|
|
1348
1348
|
"dev": true,
|
|
1349
1349
|
"license": "MIT",
|
|
1350
1350
|
"dependencies": {
|
|
@@ -1379,28 +1379,28 @@
|
|
|
1379
1379
|
"license": "MIT"
|
|
1380
1380
|
},
|
|
1381
1381
|
"node_modules/@wavemaker-ai/angular-app": {
|
|
1382
|
-
"version": "1.0.0-rc.
|
|
1383
|
-
"integrity": "sha512-
|
|
1382
|
+
"version": "1.0.0-rc.334",
|
|
1383
|
+
"integrity": "sha512-gv5W5ElfH7sWEXzwAGt60mF1cxQ0YuJQJjTOFzXdGEB1vn3JuJ9y5y/lp0P66APCqR86h1Q8750g0lRiCvacbA==",
|
|
1384
1384
|
"dependencies": {
|
|
1385
1385
|
"@angular/animations": "20.3.19",
|
|
1386
|
-
"@angular/common": "20.3.
|
|
1387
|
-
"@angular/compiler": "20.3.
|
|
1388
|
-
"@angular/core": "20.3.
|
|
1386
|
+
"@angular/common": "20.3.28",
|
|
1387
|
+
"@angular/compiler": "20.3.28",
|
|
1388
|
+
"@angular/core": "20.3.28",
|
|
1389
1389
|
"@angular/forms": "20.3.19",
|
|
1390
1390
|
"@angular/platform-browser": "20.3.19",
|
|
1391
1391
|
"@angular/platform-browser-dynamic": "20.3.19",
|
|
1392
1392
|
"@angular/router": "20.3.19",
|
|
1393
|
-
"@angular/service-worker": "20.3.
|
|
1393
|
+
"@angular/service-worker": "20.3.28",
|
|
1394
1394
|
"@fullcalendar/core": "6.1.18",
|
|
1395
1395
|
"@fullcalendar/daygrid": "6.1.18",
|
|
1396
1396
|
"@fullcalendar/interaction": "6.1.18",
|
|
1397
1397
|
"@fullcalendar/list": "6.1.18",
|
|
1398
1398
|
"@fullcalendar/timegrid": "6.1.18",
|
|
1399
1399
|
"@metrichor/jmespath": "0.3.1",
|
|
1400
|
-
"@wavemaker-ai/app-ng-runtime": "1.0.0-rc.
|
|
1401
|
-
"@wavemaker-ai/custom-widgets-m3": "1.0.0-rc.
|
|
1402
|
-
"@wavemaker-ai/foundation-css": "1.0.0-rc.
|
|
1403
|
-
"@wavemaker-ai/variables": "1.0.0-rc.
|
|
1400
|
+
"@wavemaker-ai/app-ng-runtime": "1.0.0-rc.334",
|
|
1401
|
+
"@wavemaker-ai/custom-widgets-m3": "1.0.0-rc.334",
|
|
1402
|
+
"@wavemaker-ai/foundation-css": "1.0.0-rc.334",
|
|
1403
|
+
"@wavemaker-ai/variables": "1.0.0-rc.334",
|
|
1404
1404
|
"@wavemaker/focus-trap": "1.0.1",
|
|
1405
1405
|
"@wavemaker/nvd3": "1.8.16",
|
|
1406
1406
|
"@ztree/ztree_v3": "3.5.48",
|
|
@@ -1437,8 +1437,8 @@
|
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
1439
|
"node_modules/@wavemaker-ai/app-ng-runtime": {
|
|
1440
|
-
"version": "1.0.0-rc.
|
|
1441
|
-
"integrity": "sha512-
|
|
1440
|
+
"version": "1.0.0-rc.334",
|
|
1441
|
+
"integrity": "sha512-EIqhFpOpIRrbvGluvKQmxMw2iFOpcRqDJv2BSbj2KMJe/Cl5I1YWY35fZYcasv68+8DJudIY14p4qJjUsbEjDg==",
|
|
1442
1442
|
"license": "MIT",
|
|
1443
1443
|
"engines": {
|
|
1444
1444
|
"node": ">=18.16.1",
|
|
@@ -1446,13 +1446,13 @@
|
|
|
1446
1446
|
}
|
|
1447
1447
|
},
|
|
1448
1448
|
"node_modules/@wavemaker-ai/custom-widgets-m3": {
|
|
1449
|
-
"version": "1.0.0-rc.
|
|
1450
|
-
"integrity": "sha512-
|
|
1449
|
+
"version": "1.0.0-rc.334",
|
|
1450
|
+
"integrity": "sha512-vskNxQFb1qUea94fBfXNVWBJY/JGYJdxfqs8uDWOqQb0JqkMsRYxqe1vTAT3oZmSAW9kNekor3eH0wc8Vfpbow==",
|
|
1451
1451
|
"license": "ISC"
|
|
1452
1452
|
},
|
|
1453
1453
|
"node_modules/@wavemaker-ai/foundation-css": {
|
|
1454
|
-
"version": "1.0.0-rc.
|
|
1455
|
-
"integrity": "sha512-
|
|
1454
|
+
"version": "1.0.0-rc.334",
|
|
1455
|
+
"integrity": "sha512-ZyFkdoRCiR0aCO4X1Z2BTIBsMFhFcx8J+DRJrcp2Ho+mk8/KtsTQr/Jxs/ixXE4FKfTc+gKUAd6qgjPktuoRLQ==",
|
|
1456
1456
|
"license": "ISC",
|
|
1457
1457
|
"dependencies": {
|
|
1458
1458
|
"ajv": "^8.18.0",
|
|
@@ -1460,8 +1460,8 @@
|
|
|
1460
1460
|
}
|
|
1461
1461
|
},
|
|
1462
1462
|
"node_modules/@wavemaker-ai/variables": {
|
|
1463
|
-
"version": "1.0.0-rc.
|
|
1464
|
-
"integrity": "sha512-
|
|
1463
|
+
"version": "1.0.0-rc.334",
|
|
1464
|
+
"integrity": "sha512-xGJzgJqybtxgDRR8pNKmqhXPT7ti0WkhaVWGykECKoikNb4luuCejCfV4LuF9fE0zfdL0vC72o9uvH/P4XkWxw==",
|
|
1465
1465
|
"license": "ISC",
|
|
1466
1466
|
"dependencies": {
|
|
1467
1467
|
"@metrichor/jmespath": "^0.3.1",
|
|
@@ -1489,8 +1489,8 @@
|
|
|
1489
1489
|
}
|
|
1490
1490
|
},
|
|
1491
1491
|
"node_modules/@xmldom/xmldom": {
|
|
1492
|
-
"version": "0.8.
|
|
1493
|
-
"integrity": "sha512
|
|
1492
|
+
"version": "0.8.15",
|
|
1493
|
+
"integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",
|
|
1494
1494
|
"license": "MIT",
|
|
1495
1495
|
"engines": {
|
|
1496
1496
|
"node": ">=10.0.0"
|
|
@@ -1909,8 +1909,8 @@
|
|
|
1909
1909
|
}
|
|
1910
1910
|
},
|
|
1911
1911
|
"node_modules/bare-fs": {
|
|
1912
|
-
"version": "4.
|
|
1913
|
-
"integrity": "sha512-
|
|
1912
|
+
"version": "4.8.0",
|
|
1913
|
+
"integrity": "sha512-fM+MhCvdQhZ7NV6S95a07gPSqjIYKn6mFaXfx266wN3ajZGl/+1AzH+ubkXQ0fFZvOe2nk9VHkzdYkQE5zMV3Q==",
|
|
1914
1914
|
"license": "Apache-2.0",
|
|
1915
1915
|
"dependencies": {
|
|
1916
1916
|
"bare-events": "^2.5.4",
|
|
@@ -1920,7 +1920,7 @@
|
|
|
1920
1920
|
"fast-fifo": "^1.3.2"
|
|
1921
1921
|
},
|
|
1922
1922
|
"engines": {
|
|
1923
|
-
"bare": ">=1.
|
|
1923
|
+
"bare": ">=1.28.0"
|
|
1924
1924
|
},
|
|
1925
1925
|
"peerDependencies": {
|
|
1926
1926
|
"bare-buffer": "*"
|
|
@@ -1963,8 +1963,8 @@
|
|
|
1963
1963
|
}
|
|
1964
1964
|
},
|
|
1965
1965
|
"node_modules/bare-url": {
|
|
1966
|
-
"version": "2.
|
|
1967
|
-
"integrity": "sha512-
|
|
1966
|
+
"version": "2.5.2",
|
|
1967
|
+
"integrity": "sha512-L13PCJzKG8RGvx8V1/DdMi12ERhC3tprr7/8a94BxpmnRsFqxh5XZNdhtMxu5HPkRshYOOWRGY8lDP7ZhpG9Cg==",
|
|
1968
1968
|
"license": "Apache-2.0",
|
|
1969
1969
|
"dependencies": {
|
|
1970
1970
|
"bare-path": "^3.0.0"
|
|
@@ -1990,8 +1990,8 @@
|
|
|
1990
1990
|
"license": "MIT"
|
|
1991
1991
|
},
|
|
1992
1992
|
"node_modules/baseline-browser-mapping": {
|
|
1993
|
-
"version": "2.11.
|
|
1994
|
-
"integrity": "sha512-
|
|
1993
|
+
"version": "2.11.17",
|
|
1994
|
+
"integrity": "sha512-KAUDn1OSS0fmPlGO+NOUMRcOQ/b/shUBH3OgkG73mPgdf+JD/BQ6fHboGxNOxnUmlwcq+lLq3dTkayRPuSfXwg==",
|
|
1995
1995
|
"dev": true,
|
|
1996
1996
|
"license": "Apache-2.0",
|
|
1997
1997
|
"bin": {
|
|
@@ -2108,8 +2108,8 @@
|
|
|
2108
2108
|
"license": "BSD-2-Clause"
|
|
2109
2109
|
},
|
|
2110
2110
|
"node_modules/browserslist": {
|
|
2111
|
-
"version": "4.28.
|
|
2112
|
-
"integrity": "sha512-
|
|
2111
|
+
"version": "4.28.8",
|
|
2112
|
+
"integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==",
|
|
2113
2113
|
"dev": true,
|
|
2114
2114
|
"funding": [
|
|
2115
2115
|
{
|
|
@@ -2127,11 +2127,11 @@
|
|
|
2127
2127
|
],
|
|
2128
2128
|
"license": "MIT",
|
|
2129
2129
|
"dependencies": {
|
|
2130
|
-
"baseline-browser-mapping": "^2.
|
|
2131
|
-
"caniuse-lite": "^1.0.
|
|
2132
|
-
"electron-to-chromium": "^1.5.
|
|
2133
|
-
"node-releases": "^2.0.
|
|
2134
|
-
"update-browserslist-db": "^1.
|
|
2130
|
+
"baseline-browser-mapping": "^2.11.12",
|
|
2131
|
+
"caniuse-lite": "^1.0.30001809",
|
|
2132
|
+
"electron-to-chromium": "^1.5.402",
|
|
2133
|
+
"node-releases": "^2.0.53",
|
|
2134
|
+
"update-browserslist-db": "^1.3.0"
|
|
2135
2135
|
},
|
|
2136
2136
|
"bin": {
|
|
2137
2137
|
"browserslist": "cli.js"
|
|
@@ -2274,8 +2274,8 @@
|
|
|
2274
2274
|
}
|
|
2275
2275
|
},
|
|
2276
2276
|
"node_modules/caniuse-lite": {
|
|
2277
|
-
"version": "1.0.
|
|
2278
|
-
"integrity": "sha512-
|
|
2277
|
+
"version": "1.0.30001809",
|
|
2278
|
+
"integrity": "sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==",
|
|
2279
2279
|
"dev": true,
|
|
2280
2280
|
"funding": [
|
|
2281
2281
|
{
|
|
@@ -2617,10 +2617,13 @@
|
|
|
2617
2617
|
"license": "MIT"
|
|
2618
2618
|
},
|
|
2619
2619
|
"node_modules/core-js-pure": {
|
|
2620
|
-
"version": "3.
|
|
2621
|
-
"integrity": "sha512-
|
|
2620
|
+
"version": "3.50.0",
|
|
2621
|
+
"integrity": "sha512-6GP3Pxz4IKyWjAfa747vIu/jilB5z29JWROLqH/b+pXVcpgh6tM06ZIBwSuglgVqzDYURhOK6oEzTrG0bCHitA==",
|
|
2622
2622
|
"hasInstallScript": true,
|
|
2623
2623
|
"license": "MIT",
|
|
2624
|
+
"engines": {
|
|
2625
|
+
"node": "*"
|
|
2626
|
+
},
|
|
2624
2627
|
"funding": {
|
|
2625
2628
|
"type": "opencollective",
|
|
2626
2629
|
"url": "https://opencollective.com/core-js"
|
|
@@ -3347,8 +3350,8 @@
|
|
|
3347
3350
|
"license": "MIT"
|
|
3348
3351
|
},
|
|
3349
3352
|
"node_modules/electron-to-chromium": {
|
|
3350
|
-
"version": "1.5.
|
|
3351
|
-
"integrity": "sha512-
|
|
3353
|
+
"version": "1.5.412",
|
|
3354
|
+
"integrity": "sha512-z4rMe3esBzlzovKHj4gxJnsCGZRK5l4baUvm+gCGJBPE+gsyUMKsuU9tnEUtI1dOebXz1ytAPGjvXhmQ7rIPwA==",
|
|
3352
3355
|
"dev": true,
|
|
3353
3356
|
"license": "ISC"
|
|
3354
3357
|
},
|
|
@@ -5356,8 +5359,8 @@
|
|
|
5356
5359
|
"license": "MIT"
|
|
5357
5360
|
},
|
|
5358
5361
|
"node_modules/js-yaml": {
|
|
5359
|
-
"version": "3.15.
|
|
5360
|
-
"integrity": "sha512-
|
|
5362
|
+
"version": "3.15.1",
|
|
5363
|
+
"integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==",
|
|
5361
5364
|
"dev": true,
|
|
5362
5365
|
"license": "MIT",
|
|
5363
5366
|
"dependencies": {
|
|
@@ -5874,8 +5877,8 @@
|
|
|
5874
5877
|
"license": "MIT"
|
|
5875
5878
|
},
|
|
5876
5879
|
"node_modules/node-releases": {
|
|
5877
|
-
"version": "2.0.
|
|
5878
|
-
"integrity": "sha512-
|
|
5880
|
+
"version": "2.0.53",
|
|
5881
|
+
"integrity": "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==",
|
|
5879
5882
|
"dev": true,
|
|
5880
5883
|
"license": "MIT",
|
|
5881
5884
|
"engines": {
|
|
@@ -7101,8 +7104,8 @@
|
|
|
7101
7104
|
}
|
|
7102
7105
|
},
|
|
7103
7106
|
"node_modules/strip-ansi/node_modules/ansi-regex": {
|
|
7104
|
-
"version": "6.
|
|
7105
|
-
"integrity": "sha512-
|
|
7107
|
+
"version": "6.3.0",
|
|
7108
|
+
"integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==",
|
|
7106
7109
|
"license": "MIT",
|
|
7107
7110
|
"engines": {
|
|
7108
7111
|
"node": ">=12"
|
|
@@ -7565,8 +7568,8 @@
|
|
|
7565
7568
|
}
|
|
7566
7569
|
},
|
|
7567
7570
|
"node_modules/update-browserslist-db": {
|
|
7568
|
-
"version": "1.
|
|
7569
|
-
"integrity": "sha512-
|
|
7571
|
+
"version": "1.3.1",
|
|
7572
|
+
"integrity": "sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==",
|
|
7570
7573
|
"dev": true,
|
|
7571
7574
|
"funding": [
|
|
7572
7575
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker-ai/angular-codegen",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.334",
|
|
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": "1.0.0-rc.
|
|
18
|
+
"@wavemaker-ai/angular-app": "1.0.0-rc.334",
|
|
19
19
|
"archiver": "^7.0.1",
|
|
20
20
|
"cheerio": "1.0.0-rc.12",
|
|
21
21
|
"decode-uri-component": "^0.2.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const path=require("path"),fs=require("fs"),{downloadNPMPackage:downloadNPMPackage}=require("../download-packages"),{isPrismProject:isPrismProject,DESIGN_TOKENS_DIR_NAME:DESIGN_TOKENS_DIR_NAME,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH
|
|
1
|
+
const path=require("path"),fs=require("fs"),{downloadNPMPackage:downloadNPMPackage}=require("../download-packages"),{isPrismProject:isPrismProject,DESIGN_TOKENS_DIR_NAME:DESIGN_TOKENS_DIR_NAME,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH}=require("./wm-utils"),{getLegacyWmProjectProperties:getLegacyWmProjectProperties}=require("./project-meta"),{WM_NPM_SCOPE:WM_NPM_SCOPE}=require("./wm-namespace"),groupFilesByMode=e=>{const s={default:[]};return fs.readdirSync(e).forEach(o=>{const t=path.join(e,o),r=fs.statSync(t);if(r.isDirectory()){const e=groupFilesByMode(t);for(const o in e)s[o]||(s[o]=[]),s[o].push(...e[o])}else if(r.isFile()&&".json"===path.extname(t)){const e=o.match(/\.([^.]+)\.json$/);if(e){const o=e[1];s[o]||(s[o]=[]),s[o].push(t)}else s.default.push(t)}}),s},generateModeConfigs=(e,s,o,t)=>{const r=o&&o.name||"css/variables",n=t&&t.name||"css/variables",i=[];for(const o in e){const t=e[o].flatMap(e=>{const o=e.replace(s+"/","");return[{destination:o.replace(/\.json$/,".css"),options:{outputReferences:!0,selector:":root"},format:r,filter:function(s){var o;const t=e=>e?e.replace(/\\/g,"/"):e;o=t(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath),e=t(e);var r=o&&-1!==o.indexOf("overrides")||s.filePath&&-1!==s.filePath.indexOf("overrides"),n=o&&(e.includes(o)||e.includes(t(s.filePath)))&&!s.path.includes("appearances")&&!s.path.includes("states");return r&&n}},{destination:o.replace(/\.json$/,"variant.css"),options:{outputReferences:!0,selector:":root"},format:n,filter:s=>{let o;const t=(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath)&&-1!==o.indexOf("overrides"),r=o&&(e.includes(o)||e.includes(s.filePath))&&(s.path.includes("appearances")||s.path.includes("states"));return t&&r}}]});i.push({mode:o,files:t})}return i},accessFile=e=>{const s=path.dirname(e);fs.existsSync(s)||(fs.mkdirSync(s,{recursive:!0}),console.log(`Directory created: ${s}`)),fs.access(e,fs.constants.F_OK,s=>{if(s){console.log(`${e} does not exist. Creating file...`);const s=JSON.stringify({});fs.writeFile(e,s,s=>{if(s)throw s;console.log(`${e} was created successfully.`)})}})};async function setupSymlink(e,s){try{await fs.promises.mkdir(path.dirname(s),{recursive:!0});try{fs.existsSync(s)&&await fs.promises.unlink(s)}catch(e){console.error("Error removing existing symlink:",e)}const o="win32"===process.platform?"junction":"dir";await fs.promises.symlink(e,s,o),console.log("Symlink created successfully at:",s)}catch(e){console.error("Error creating symlink:",s,e)}}const getStyleDictionaryConfig=(e,s,o,t)=>{t.endsWith("/")||(t+="/");let r="";return{log:{verbosity:"verbose"},source:[r="default"===o?`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/!(*.*).json`:`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/*.${o}.json`],include:[`${s.replace(/\\/g,"/")}/**/!(*.dark|*.light).json`,`${t.replace(/\\/g,"/")}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/global/**/*.json`],platforms:{css:{transformGroup:"css",prefix:"--wm",files:e}}}};async function removeSymlink(e){const s=path.resolve(e);try{fs.lstatSync(s).isSymbolicLink()?(await fs.promises.unlink(s),console.log("Symlink removed successfully:",s)):console.warn("Not a symlink, skipping unlink:",s)}catch(e){console.error("Error during symlink removal:",e)}}async function getCustomFormatters(e,s){try{const o=await import(`${e}/node_modules/style-dictionary/lib/utils/index.js`),{usesReferences:t,getReferences:r}=o,n=await import(`${s}/node_modules/${WM_NPM_SCOPE}/foundation-css/src/utils/style-dictionary-utils.js`),{cssVarCalcMixFormatter:i,componentVariantsFormatter:a}=n,c="web";return{cssVarCalcMixFormatter:i(t,r),componentVariantsFormatter:a(t,r,c)}}catch(e){return console.error("Failed to load CssVarCalcMixFormatter:",e),null}}function processCSSFiles(e,s){for(const{destination:o}of e)try{if(o.endsWith(".css")&&fs.existsSync(o)){const e=fs.readFileSync(o,"utf-8"),t=/(:root\s*\{[^}]*\})/,r=path.basename(o).split(".");let n=e;if(3===r.length&&"light"!==r[1]){const o=r[0],t=r[1];s+=(n=e.replace(/:root/g,`:root[${o}='${t}']`))+"\n"}else{const o=s.match(t),r=e.match(t);if(o&&r){const e=o[1],t=r[1].replace(/:root\s*\{|\}/g,"").trim(),n=e.replace("}",`\n${t}\n}`);s=s.replace(e,n)}else s+=n+"\n"}fs.unlink(o,()=>{})}}catch(e){console.error(`\nStyle dictionary, Error processing file ${o}:`,e)}return s}const generateOverrideCSS=async(e,s,o)=>{e=e||{};const t=await getLegacyWmProjectProperties(s);if(isPrismProject(t)){const t=path.join(s+"/src/main/webapp/",OVERRIDE_TOKENS_PATH),r=s+`/src/main/webapp/${APP_OVERRIDE_CSS_PATH}`;if(accessFile(r),fs.existsSync(t)){console.log("CODEGEN ANGULAR APP: generating override css...");let n={scope:"",name:"style-dictionary",version:"4.1.0",packageJsonFile:"",successMsg:"STYLE DICTIONARY SUCCESS",infoMsg:"STYLE DICTIONARY PACKAGE : ",skipPackageVersion:!1};n.baseDir=o;const i=await downloadNPMPackage(n);let a={scope:WM_NPM_SCOPE,name:"foundation-css",version:e.runtimeUIVersion,packageJsonFile:"",successMsg:"Foundation-CSS SUCCESS",infoMsg:"Foundation-CSS PACKAGE : "};a.baseDir=o;const c=await downloadNPMPackage(a);console.log("FOUNDATION_CSS_PATH",c,"SourceDir",s),await(async()=>{const e=await import(`${i}/node_modules/style-dictionary/lib/StyleDictionary.js`).then(e=>e.default),o=path.join(c,`/node_modules/${WM_NPM_SCOPE}/foundation-css/src/tokens/web`),{cssVarCalcMixFormatter:n,componentVariantsFormatter:a}=await getCustomFormatters(i,c);n&&a||(n||console.error("cssVarCalcMixFormatter failed to load."),a||console.error("cssVariantFormatter failed to load.")),n&&e.registerFormat(n),a&&e.registerFormat(a);const l=path.resolve(s,"src","main","webapp",DESIGN_TOKENS_DIR_NAME,"temp-tokens"),d=groupFilesByMode(t),f=generateModeConfigs(d,s,n,a);let m="";try{console.log("\nSetting up foundation tokens symlink..."),await setupSymlink(o,l);for(const{mode:o,files:t}of f){console.log(`\nBuilding CSS for mode: ${o}...`);try{const n=getStyleDictionaryConfig(t,l,o,s);console.log(n,o);const i=new e(n);await i.buildPlatform("css"),console.log(`Style Dictionary build completed for mode: ${o}`),m=processCSSFiles(t,m),fs.writeFileSync(r,m),console.log(`CSS overrides generated successfully for mode: ${o}`)}catch(e){console.error(`Error during Style Dictionary build for mode: ${o}`,e)}}console.log("CODEGEN ANGULAR APP: generating overrides success !")}catch(e){console.error("Error setting up symlink or processing modes:",e)}finally{await removeSymlink(l)}})()}}};module.exports={generateOverrideCSS:generateOverrideCSS};
|