@wavemaker/angular-codegen 11.15.5-rc.261 → 11.15.5-rc.263
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 +942 -769
- package/angular-app/package-lock.json +942 -769
- package/angular-app/package.json +5 -5
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/build-angular-app.js +2 -2
- package/dependencies/custom-widgets-bundle.cjs.js +14 -37
- package/dependencies/pipe-provider.cjs.js +326 -22
- package/dependencies/transpilation-web.cjs.js +163 -11
- package/npm-shrinkwrap.json +102 -98
- package/package-lock.json +102 -98
- package/package.json +2 -2
- package/src/expr-parser-utils.js +1 -1
- package/src/gen-app-skeleton.js +1 -1
- package/src/wm-utils.js +1 -1
package/package-lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-codegen",
|
|
3
|
-
"version": "11.15.5-rc.
|
|
3
|
+
"version": "11.15.5-rc.263",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-codegen",
|
|
9
|
-
"version": "11.15.5-rc.
|
|
9
|
+
"version": "11.15.5-rc.263",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker/angular-app": "11.15.5-rc.
|
|
12
|
+
"@wavemaker/angular-app": "11.15.5-rc.263",
|
|
13
13
|
"archiver": "^7.0.1",
|
|
14
14
|
"cheerio": "1.0.0-rc.12",
|
|
15
15
|
"decode-uri-component": "^0.2.0",
|
|
@@ -391,8 +391,8 @@
|
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
393
|
"node_modules/@babel/parser": {
|
|
394
|
-
"version": "7.29.
|
|
395
|
-
"integrity": "sha512-
|
|
394
|
+
"version": "7.29.9",
|
|
395
|
+
"integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
|
|
396
396
|
"dev": true,
|
|
397
397
|
"license": "MIT",
|
|
398
398
|
"dependencies": {
|
|
@@ -846,8 +846,8 @@
|
|
|
846
846
|
}
|
|
847
847
|
},
|
|
848
848
|
"node_modules/@jest/core/node_modules/brace-expansion": {
|
|
849
|
-
"version": "1.1.
|
|
850
|
-
"integrity": "sha512-
|
|
849
|
+
"version": "1.1.21",
|
|
850
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
851
851
|
"dev": true,
|
|
852
852
|
"license": "MIT",
|
|
853
853
|
"dependencies": {
|
|
@@ -1007,8 +1007,8 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
},
|
|
1009
1009
|
"node_modules/@jest/reporters/node_modules/brace-expansion": {
|
|
1010
|
-
"version": "1.1.
|
|
1011
|
-
"integrity": "sha512-
|
|
1010
|
+
"version": "1.1.21",
|
|
1011
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
1012
1012
|
"dev": true,
|
|
1013
1013
|
"license": "MIT",
|
|
1014
1014
|
"dependencies": {
|
|
@@ -1165,8 +1165,8 @@
|
|
|
1165
1165
|
}
|
|
1166
1166
|
},
|
|
1167
1167
|
"node_modules/@jridgewell/sourcemap-codec": {
|
|
1168
|
-
"version": "1.
|
|
1169
|
-
"integrity": "sha512-
|
|
1168
|
+
"version": "1.6.0",
|
|
1169
|
+
"integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
|
|
1170
1170
|
"dev": true,
|
|
1171
1171
|
"license": "MIT"
|
|
1172
1172
|
},
|
|
@@ -1340,12 +1340,12 @@
|
|
|
1340
1340
|
}
|
|
1341
1341
|
},
|
|
1342
1342
|
"node_modules/@types/node": {
|
|
1343
|
-
"version": "26.2
|
|
1344
|
-
"integrity": "sha512-
|
|
1343
|
+
"version": "26.6.2",
|
|
1344
|
+
"integrity": "sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g==",
|
|
1345
1345
|
"dev": true,
|
|
1346
1346
|
"license": "MIT",
|
|
1347
1347
|
"dependencies": {
|
|
1348
|
-
"undici-types": "~8.
|
|
1348
|
+
"undici-types": "~8.9.0"
|
|
1349
1349
|
}
|
|
1350
1350
|
},
|
|
1351
1351
|
"node_modules/@types/prettier": {
|
|
@@ -1376,8 +1376,8 @@
|
|
|
1376
1376
|
"license": "MIT"
|
|
1377
1377
|
},
|
|
1378
1378
|
"node_modules/@wavemaker/angular-app": {
|
|
1379
|
-
"version": "11.15.5-rc.
|
|
1380
|
-
"integrity": "sha512-
|
|
1379
|
+
"version": "11.15.5-rc.263",
|
|
1380
|
+
"integrity": "sha512-64yCYU65wWWkg/h4ntSGkiJmLlm2YCAYgU/8ZqLSIKPVliWXkk/2Wp84PI2MUvLEmBpL73RWdeES7uvZ6cWYNg==",
|
|
1381
1381
|
"dependencies": {
|
|
1382
1382
|
"@angular/animations": "18.2.13",
|
|
1383
1383
|
"@angular/common": "18.2.13",
|
|
@@ -1394,12 +1394,12 @@
|
|
|
1394
1394
|
"@fullcalendar/list": "6.1.18",
|
|
1395
1395
|
"@fullcalendar/timegrid": "6.1.18",
|
|
1396
1396
|
"@metrichor/jmespath": "0.3.1",
|
|
1397
|
-
"@wavemaker/app-ng-runtime": "11.15.5-rc.
|
|
1398
|
-
"@wavemaker/custom-widgets-m3": "11.15.5-rc.
|
|
1397
|
+
"@wavemaker/app-ng-runtime": "11.15.5-rc.263",
|
|
1398
|
+
"@wavemaker/custom-widgets-m3": "11.15.5-rc.263",
|
|
1399
1399
|
"@wavemaker/focus-trap": "1.0.1",
|
|
1400
|
-
"@wavemaker/foundation-css": "11.15.5-rc.
|
|
1400
|
+
"@wavemaker/foundation-css": "11.15.5-rc.263",
|
|
1401
1401
|
"@wavemaker/nvd3": "1.8.16",
|
|
1402
|
-
"@wavemaker/variables": "11.15.5-rc.
|
|
1402
|
+
"@wavemaker/variables": "11.15.5-rc.263",
|
|
1403
1403
|
"@ztree/ztree_v3": "3.5.48",
|
|
1404
1404
|
"acorn": "^8.15.0",
|
|
1405
1405
|
"angular-imask": "7.6.1",
|
|
@@ -1434,8 +1434,8 @@
|
|
|
1434
1434
|
}
|
|
1435
1435
|
},
|
|
1436
1436
|
"node_modules/@wavemaker/app-ng-runtime": {
|
|
1437
|
-
"version": "11.15.5-rc.
|
|
1438
|
-
"integrity": "sha512-
|
|
1437
|
+
"version": "11.15.5-rc.263",
|
|
1438
|
+
"integrity": "sha512-4qoej7GSnCMyLL+6BAmH4EHGqhM5Ug5R1RRnLORDSGA6uJf/qiwGqd9lJ2MmbPbNQFRi14Htvwh50ge+gcq+7A==",
|
|
1439
1439
|
"license": "MIT",
|
|
1440
1440
|
"engines": {
|
|
1441
1441
|
"node": ">=18.16.1",
|
|
@@ -1443,8 +1443,8 @@
|
|
|
1443
1443
|
}
|
|
1444
1444
|
},
|
|
1445
1445
|
"node_modules/@wavemaker/custom-widgets-m3": {
|
|
1446
|
-
"version": "11.15.5-rc.
|
|
1447
|
-
"integrity": "sha512-
|
|
1446
|
+
"version": "11.15.5-rc.263",
|
|
1447
|
+
"integrity": "sha512-yziVCSI0xq0uPKVdoHEsygovy59Of0a266NQ4pMn7PLZgduoQxvih6fNbmtuvPFZGDV893zODjXFxVvbm7CCKQ==",
|
|
1448
1448
|
"license": "ISC"
|
|
1449
1449
|
},
|
|
1450
1450
|
"node_modules/@wavemaker/focus-trap": {
|
|
@@ -1457,8 +1457,8 @@
|
|
|
1457
1457
|
}
|
|
1458
1458
|
},
|
|
1459
1459
|
"node_modules/@wavemaker/foundation-css": {
|
|
1460
|
-
"version": "11.15.5-rc.
|
|
1461
|
-
"integrity": "sha512-
|
|
1460
|
+
"version": "11.15.5-rc.263",
|
|
1461
|
+
"integrity": "sha512-2ACXrydV1FH8os3wZlqOSHiZYreaKsbeUEjWMgIyJhW/JaAaXfnMWs144gCsI6kneFnupGKs4waOPZSsZR7c4g==",
|
|
1462
1462
|
"license": "ISC",
|
|
1463
1463
|
"dependencies": {
|
|
1464
1464
|
"ajv": "8.17.1",
|
|
@@ -1474,13 +1474,13 @@
|
|
|
1474
1474
|
}
|
|
1475
1475
|
},
|
|
1476
1476
|
"node_modules/@wavemaker/variables": {
|
|
1477
|
-
"version": "11.15.5-rc.
|
|
1478
|
-
"integrity": "sha512-
|
|
1477
|
+
"version": "11.15.5-rc.263",
|
|
1478
|
+
"integrity": "sha512-JRwGT8zuLgVHvvct8kTvb8WXX7YOJiap4nO5ohzWH0WmPkeRWbFghxb7st8uxZ6SVOVOTNpc4fQKMy2iog3+Dw==",
|
|
1479
1479
|
"license": "ISC",
|
|
1480
1480
|
"dependencies": {
|
|
1481
1481
|
"@metrichor/jmespath": "^0.3.1",
|
|
1482
1482
|
"he": "^1.2.0",
|
|
1483
|
-
"lodash-es": "
|
|
1483
|
+
"lodash-es": "4.18.1",
|
|
1484
1484
|
"moment": "^2.29.4",
|
|
1485
1485
|
"x2js": "^3.4.3"
|
|
1486
1486
|
}
|
|
@@ -1780,8 +1780,8 @@
|
|
|
1780
1780
|
}
|
|
1781
1781
|
},
|
|
1782
1782
|
"node_modules/b4a": {
|
|
1783
|
-
"version": "1.
|
|
1784
|
-
"integrity": "sha512-
|
|
1783
|
+
"version": "1.9.0",
|
|
1784
|
+
"integrity": "sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==",
|
|
1785
1785
|
"license": "Apache-2.0",
|
|
1786
1786
|
"peerDependencies": {
|
|
1787
1787
|
"react-native-b4a": "*"
|
|
@@ -1893,8 +1893,8 @@
|
|
|
1893
1893
|
"license": "MIT"
|
|
1894
1894
|
},
|
|
1895
1895
|
"node_modules/bare-events": {
|
|
1896
|
-
"version": "2.9.
|
|
1897
|
-
"integrity": "sha512-
|
|
1896
|
+
"version": "2.9.2",
|
|
1897
|
+
"integrity": "sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==",
|
|
1898
1898
|
"license": "Apache-2.0",
|
|
1899
1899
|
"peerDependencies": {
|
|
1900
1900
|
"bare-abort-controller": "*"
|
|
@@ -1906,8 +1906,8 @@
|
|
|
1906
1906
|
}
|
|
1907
1907
|
},
|
|
1908
1908
|
"node_modules/bare-fs": {
|
|
1909
|
-
"version": "4.8.
|
|
1910
|
-
"integrity": "sha512-
|
|
1909
|
+
"version": "4.8.1",
|
|
1910
|
+
"integrity": "sha512-N1nnXdHZAOSstz0XiHikGS4HGMH4CnSwhqWdGQQMqqdvp4Jybm9sE3R1WVnpWVd4SFkc8ryPDBLViNLwiEqECg==",
|
|
1911
1911
|
"license": "Apache-2.0",
|
|
1912
1912
|
"dependencies": {
|
|
1913
1913
|
"bare-events": "^2.5.4",
|
|
@@ -1929,13 +1929,13 @@
|
|
|
1929
1929
|
}
|
|
1930
1930
|
},
|
|
1931
1931
|
"node_modules/bare-path": {
|
|
1932
|
-
"version": "3.1.
|
|
1933
|
-
"integrity": "sha512-
|
|
1932
|
+
"version": "3.1.2",
|
|
1933
|
+
"integrity": "sha512-ZyKbsuuqK6Ag0K8pX6V5Txq6XeJRvY+wXucnFGRjiyVYP9YWDpIQugk/b+enRYrEYBJaqLzghRQpXPMR7341Nw==",
|
|
1934
1934
|
"license": "Apache-2.0"
|
|
1935
1935
|
},
|
|
1936
1936
|
"node_modules/bare-stream": {
|
|
1937
|
-
"version": "2.13.
|
|
1938
|
-
"integrity": "sha512-
|
|
1937
|
+
"version": "2.13.4",
|
|
1938
|
+
"integrity": "sha512-PcrQ8lVLbiJscNm1Kez+Yp4Gy4AHGcN1lzwjvf5NybWen7VvEgUfyfnXYJ2zNqWnzOfCb1Abq6lH8ti0syQszA==",
|
|
1939
1939
|
"license": "Apache-2.0",
|
|
1940
1940
|
"dependencies": {
|
|
1941
1941
|
"b4a": "^1.8.1",
|
|
@@ -1960,8 +1960,8 @@
|
|
|
1960
1960
|
}
|
|
1961
1961
|
},
|
|
1962
1962
|
"node_modules/bare-url": {
|
|
1963
|
-
"version": "2.5.
|
|
1964
|
-
"integrity": "sha512-
|
|
1963
|
+
"version": "2.5.4",
|
|
1964
|
+
"integrity": "sha512-Gxa7UVWBr0/edU1b+TJhn/AZvMQUj9OGspvYsaTYQrAbZA4BOTZGL3LiZxvD+CeMlDH4juwD84+eTAp/bLYW5g==",
|
|
1965
1965
|
"license": "Apache-2.0",
|
|
1966
1966
|
"dependencies": {
|
|
1967
1967
|
"bare-path": "^3.0.0"
|
|
@@ -1987,8 +1987,8 @@
|
|
|
1987
1987
|
"license": "MIT"
|
|
1988
1988
|
},
|
|
1989
1989
|
"node_modules/baseline-browser-mapping": {
|
|
1990
|
-
"version": "2.11.
|
|
1991
|
-
"integrity": "sha512-
|
|
1990
|
+
"version": "2.11.25",
|
|
1991
|
+
"integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==",
|
|
1992
1992
|
"dev": true,
|
|
1993
1993
|
"license": "Apache-2.0",
|
|
1994
1994
|
"bin": {
|
|
@@ -2040,8 +2040,8 @@
|
|
|
2040
2040
|
"license": "MIT"
|
|
2041
2041
|
},
|
|
2042
2042
|
"node_modules/body-parser": {
|
|
2043
|
-
"version": "1.20.
|
|
2044
|
-
"integrity": "sha512-
|
|
2043
|
+
"version": "1.20.8",
|
|
2044
|
+
"integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==",
|
|
2045
2045
|
"license": "MIT",
|
|
2046
2046
|
"dependencies": {
|
|
2047
2047
|
"bytes": "~3.1.2",
|
|
@@ -2052,7 +2052,7 @@
|
|
|
2052
2052
|
"http-errors": "~2.0.1",
|
|
2053
2053
|
"iconv-lite": "~0.4.24",
|
|
2054
2054
|
"on-finished": "~2.4.1",
|
|
2055
|
-
"qs": "~6.
|
|
2055
|
+
"qs": "~6.16.0",
|
|
2056
2056
|
"raw-body": "~2.5.3",
|
|
2057
2057
|
"type-is": "~1.6.18",
|
|
2058
2058
|
"unpipe": "~1.0.0"
|
|
@@ -2079,8 +2079,8 @@
|
|
|
2079
2079
|
"license": "ISC"
|
|
2080
2080
|
},
|
|
2081
2081
|
"node_modules/brace-expansion": {
|
|
2082
|
-
"version": "2.1.
|
|
2083
|
-
"integrity": "sha512-
|
|
2082
|
+
"version": "2.1.7",
|
|
2083
|
+
"integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",
|
|
2084
2084
|
"license": "MIT",
|
|
2085
2085
|
"dependencies": {
|
|
2086
2086
|
"balanced-match": "^1.0.0"
|
|
@@ -2105,8 +2105,8 @@
|
|
|
2105
2105
|
"license": "BSD-2-Clause"
|
|
2106
2106
|
},
|
|
2107
2107
|
"node_modules/browserslist": {
|
|
2108
|
-
"version": "4.
|
|
2109
|
-
"integrity": "sha512-
|
|
2108
|
+
"version": "4.29.0",
|
|
2109
|
+
"integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==",
|
|
2110
2110
|
"dev": true,
|
|
2111
2111
|
"funding": [
|
|
2112
2112
|
{
|
|
@@ -2124,11 +2124,11 @@
|
|
|
2124
2124
|
],
|
|
2125
2125
|
"license": "MIT",
|
|
2126
2126
|
"dependencies": {
|
|
2127
|
-
"baseline-browser-mapping": "^2.11.
|
|
2128
|
-
"caniuse-lite": "^1.0.
|
|
2129
|
-
"electron-to-chromium": "^1.5.
|
|
2130
|
-
"node-releases": "^2.0.
|
|
2131
|
-
"update-browserslist-db": "^1.3.
|
|
2127
|
+
"baseline-browser-mapping": "^2.11.23",
|
|
2128
|
+
"caniuse-lite": "^1.0.30001810",
|
|
2129
|
+
"electron-to-chromium": "^1.5.427",
|
|
2130
|
+
"node-releases": "^2.0.55",
|
|
2131
|
+
"update-browserslist-db": "^1.3.3"
|
|
2132
2132
|
},
|
|
2133
2133
|
"bin": {
|
|
2134
2134
|
"browserslist": "cli.js"
|
|
@@ -2271,8 +2271,8 @@
|
|
|
2271
2271
|
}
|
|
2272
2272
|
},
|
|
2273
2273
|
"node_modules/caniuse-lite": {
|
|
2274
|
-
"version": "1.0.
|
|
2275
|
-
"integrity": "sha512-
|
|
2274
|
+
"version": "1.0.30001810",
|
|
2275
|
+
"integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",
|
|
2276
2276
|
"dev": true,
|
|
2277
2277
|
"funding": [
|
|
2278
2278
|
{
|
|
@@ -3347,8 +3347,8 @@
|
|
|
3347
3347
|
"license": "MIT"
|
|
3348
3348
|
},
|
|
3349
3349
|
"node_modules/electron-to-chromium": {
|
|
3350
|
-
"version": "1.5.
|
|
3351
|
-
"integrity": "sha512-
|
|
3350
|
+
"version": "1.5.433",
|
|
3351
|
+
"integrity": "sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==",
|
|
3352
3352
|
"dev": true,
|
|
3353
3353
|
"license": "ISC"
|
|
3354
3354
|
},
|
|
@@ -3607,8 +3607,8 @@
|
|
|
3607
3607
|
}
|
|
3608
3608
|
},
|
|
3609
3609
|
"node_modules/express": {
|
|
3610
|
-
"version": "4.22.
|
|
3611
|
-
"integrity": "sha512-
|
|
3610
|
+
"version": "4.22.3",
|
|
3611
|
+
"integrity": "sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==",
|
|
3612
3612
|
"license": "MIT",
|
|
3613
3613
|
"dependencies": {
|
|
3614
3614
|
"accepts": "~1.3.8",
|
|
@@ -3630,9 +3630,9 @@
|
|
|
3630
3630
|
"methods": "~1.1.2",
|
|
3631
3631
|
"on-finished": "~2.4.1",
|
|
3632
3632
|
"parseurl": "~1.3.3",
|
|
3633
|
-
"path-to-regexp": "~0.1.
|
|
3633
|
+
"path-to-regexp": "~0.1.13",
|
|
3634
3634
|
"proxy-addr": "~2.0.7",
|
|
3635
|
-
"qs": "~6.
|
|
3635
|
+
"qs": "~6.16.0",
|
|
3636
3636
|
"range-parser": "~1.2.1",
|
|
3637
3637
|
"safe-buffer": "5.2.1",
|
|
3638
3638
|
"send": "~0.19.0",
|
|
@@ -3668,8 +3668,8 @@
|
|
|
3668
3668
|
"license": "MIT"
|
|
3669
3669
|
},
|
|
3670
3670
|
"node_modules/fast-uri": {
|
|
3671
|
-
"version": "3.1.
|
|
3672
|
-
"integrity": "sha512-
|
|
3671
|
+
"version": "3.1.8",
|
|
3672
|
+
"integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",
|
|
3673
3673
|
"funding": [
|
|
3674
3674
|
{
|
|
3675
3675
|
"type": "github",
|
|
@@ -4299,12 +4299,12 @@
|
|
|
4299
4299
|
}
|
|
4300
4300
|
},
|
|
4301
4301
|
"node_modules/is-core-module": {
|
|
4302
|
-
"version": "2.
|
|
4303
|
-
"integrity": "sha512-
|
|
4302
|
+
"version": "2.17.0",
|
|
4303
|
+
"integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==",
|
|
4304
4304
|
"dev": true,
|
|
4305
4305
|
"license": "MIT",
|
|
4306
4306
|
"dependencies": {
|
|
4307
|
-
"hasown": "^2.0.
|
|
4307
|
+
"hasown": "^2.0.4"
|
|
4308
4308
|
},
|
|
4309
4309
|
"engines": {
|
|
4310
4310
|
"node": ">= 0.4"
|
|
@@ -4747,8 +4747,8 @@
|
|
|
4747
4747
|
}
|
|
4748
4748
|
},
|
|
4749
4749
|
"node_modules/jest-config/node_modules/brace-expansion": {
|
|
4750
|
-
"version": "1.1.
|
|
4751
|
-
"integrity": "sha512-
|
|
4750
|
+
"version": "1.1.21",
|
|
4751
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
4752
4752
|
"dev": true,
|
|
4753
4753
|
"license": "MIT",
|
|
4754
4754
|
"dependencies": {
|
|
@@ -5118,8 +5118,8 @@
|
|
|
5118
5118
|
}
|
|
5119
5119
|
},
|
|
5120
5120
|
"node_modules/jest-runtime/node_modules/brace-expansion": {
|
|
5121
|
-
"version": "1.1.
|
|
5122
|
-
"integrity": "sha512-
|
|
5121
|
+
"version": "1.1.21",
|
|
5122
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
5123
5123
|
"dev": true,
|
|
5124
5124
|
"license": "MIT",
|
|
5125
5125
|
"dependencies": {
|
|
@@ -5356,8 +5356,8 @@
|
|
|
5356
5356
|
"license": "MIT"
|
|
5357
5357
|
},
|
|
5358
5358
|
"node_modules/js-yaml": {
|
|
5359
|
-
"version": "3.15.
|
|
5360
|
-
"integrity": "sha512-
|
|
5359
|
+
"version": "3.15.2",
|
|
5360
|
+
"integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==",
|
|
5361
5361
|
"dev": true,
|
|
5362
5362
|
"license": "MIT",
|
|
5363
5363
|
"dependencies": {
|
|
@@ -5766,8 +5766,8 @@
|
|
|
5766
5766
|
}
|
|
5767
5767
|
},
|
|
5768
5768
|
"node_modules/moment-timezone": {
|
|
5769
|
-
"version": "0.6.
|
|
5770
|
-
"integrity": "sha512-
|
|
5769
|
+
"version": "0.6.4",
|
|
5770
|
+
"integrity": "sha512-JHUK8Mgheach4uMQmIV/pIfrv0ubPiDCPPqc7Mi604je1UblP6Gbm+FfV+Oh88KP03rZqGCZG3t0wmpfdlDv+w==",
|
|
5771
5771
|
"license": "MIT",
|
|
5772
5772
|
"dependencies": {
|
|
5773
5773
|
"moment": "^2.29.4"
|
|
@@ -5874,8 +5874,8 @@
|
|
|
5874
5874
|
"license": "MIT"
|
|
5875
5875
|
},
|
|
5876
5876
|
"node_modules/node-releases": {
|
|
5877
|
-
"version": "2.0.
|
|
5878
|
-
"integrity": "sha512-
|
|
5877
|
+
"version": "2.0.56",
|
|
5878
|
+
"integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==",
|
|
5879
5879
|
"dev": true,
|
|
5880
5880
|
"license": "MIT",
|
|
5881
5881
|
"engines": {
|
|
@@ -5944,8 +5944,8 @@
|
|
|
5944
5944
|
}
|
|
5945
5945
|
},
|
|
5946
5946
|
"node_modules/nwsapi": {
|
|
5947
|
-
"version": "2.2.
|
|
5948
|
-
"integrity": "sha512-
|
|
5947
|
+
"version": "2.2.28",
|
|
5948
|
+
"integrity": "sha512-IlVB7OS7qrOsVYlpnFIkETjMwT9jwvmocJmmM+GZU/PAB3uGi9Ezd7vcWhWBUnSc0ya4ppmQITOyP1ez9gg8cg==",
|
|
5949
5949
|
"dev": true,
|
|
5950
5950
|
"license": "MIT"
|
|
5951
5951
|
},
|
|
@@ -6433,8 +6433,8 @@
|
|
|
6433
6433
|
"license": "ISC"
|
|
6434
6434
|
},
|
|
6435
6435
|
"node_modules/proxy-addr": {
|
|
6436
|
-
"version": "2.0.
|
|
6437
|
-
"integrity": "sha512-
|
|
6436
|
+
"version": "2.0.8",
|
|
6437
|
+
"integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==",
|
|
6438
6438
|
"license": "MIT",
|
|
6439
6439
|
"dependencies": {
|
|
6440
6440
|
"forwarded": "0.2.0",
|
|
@@ -6442,6 +6442,10 @@
|
|
|
6442
6442
|
},
|
|
6443
6443
|
"engines": {
|
|
6444
6444
|
"node": ">= 0.10"
|
|
6445
|
+
},
|
|
6446
|
+
"funding": {
|
|
6447
|
+
"type": "opencollective",
|
|
6448
|
+
"url": "https://opencollective.com/express"
|
|
6445
6449
|
}
|
|
6446
6450
|
},
|
|
6447
6451
|
"node_modules/psl": {
|
|
@@ -6475,8 +6479,8 @@
|
|
|
6475
6479
|
}
|
|
6476
6480
|
},
|
|
6477
6481
|
"node_modules/qs": {
|
|
6478
|
-
"version": "6.
|
|
6479
|
-
"integrity": "sha512-
|
|
6482
|
+
"version": "6.16.0",
|
|
6483
|
+
"integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
|
|
6480
6484
|
"license": "BSD-3-Clause",
|
|
6481
6485
|
"dependencies": {
|
|
6482
6486
|
"es-define-property": "^1.0.1",
|
|
@@ -6659,8 +6663,8 @@
|
|
|
6659
6663
|
}
|
|
6660
6664
|
},
|
|
6661
6665
|
"node_modules/rimraf/node_modules/brace-expansion": {
|
|
6662
|
-
"version": "1.1.
|
|
6663
|
-
"integrity": "sha512-
|
|
6666
|
+
"version": "1.1.21",
|
|
6667
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
6664
6668
|
"license": "MIT",
|
|
6665
6669
|
"dependencies": {
|
|
6666
6670
|
"balanced-match": "^1.0.0",
|
|
@@ -6986,8 +6990,8 @@
|
|
|
6986
6990
|
}
|
|
6987
6991
|
},
|
|
6988
6992
|
"node_modules/streamx": {
|
|
6989
|
-
"version": "2.28.
|
|
6990
|
-
"integrity": "sha512-
|
|
6993
|
+
"version": "2.28.1",
|
|
6994
|
+
"integrity": "sha512-zEzXb0s5Cds7tqMH6rhZ05lcJydCWiQPEwiNngVqzsxCc962vLY4Uw+mW7od8kDH258k2Uz/JrOkdIAAhSh9VA==",
|
|
6991
6995
|
"license": "MIT",
|
|
6992
6996
|
"dependencies": {
|
|
6993
6997
|
"events-universal": "^1.0.0",
|
|
@@ -7272,8 +7276,8 @@
|
|
|
7272
7276
|
}
|
|
7273
7277
|
},
|
|
7274
7278
|
"node_modules/tar-stream": {
|
|
7275
|
-
"version": "3.2.
|
|
7276
|
-
"integrity": "sha512-
|
|
7279
|
+
"version": "3.2.1",
|
|
7280
|
+
"integrity": "sha512-nqsEO8zLZJvrOMdEwkA0QdCLFbetHMn95Zqu4fKwX+hkaTWJPZZOrxx/PwtxoK0MMGQmBQNRW3CPs8IFYQz4cQ==",
|
|
7277
7281
|
"license": "MIT",
|
|
7278
7282
|
"dependencies": {
|
|
7279
7283
|
"b4a": "^1.6.4",
|
|
@@ -7342,8 +7346,8 @@
|
|
|
7342
7346
|
}
|
|
7343
7347
|
},
|
|
7344
7348
|
"node_modules/test-exclude/node_modules/brace-expansion": {
|
|
7345
|
-
"version": "1.1.
|
|
7346
|
-
"integrity": "sha512-
|
|
7349
|
+
"version": "1.1.21",
|
|
7350
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
7347
7351
|
"dev": true,
|
|
7348
7352
|
"license": "MIT",
|
|
7349
7353
|
"dependencies": {
|
|
@@ -7542,8 +7546,8 @@
|
|
|
7542
7546
|
}
|
|
7543
7547
|
},
|
|
7544
7548
|
"node_modules/undici-types": {
|
|
7545
|
-
"version": "8.
|
|
7546
|
-
"integrity": "sha512-
|
|
7549
|
+
"version": "8.9.0",
|
|
7550
|
+
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
|
|
7547
7551
|
"dev": true,
|
|
7548
7552
|
"license": "MIT"
|
|
7549
7553
|
},
|
|
@@ -7565,8 +7569,8 @@
|
|
|
7565
7569
|
}
|
|
7566
7570
|
},
|
|
7567
7571
|
"node_modules/update-browserslist-db": {
|
|
7568
|
-
"version": "1.3.
|
|
7569
|
-
"integrity": "sha512-
|
|
7572
|
+
"version": "1.3.3",
|
|
7573
|
+
"integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
|
|
7570
7574
|
"dev": true,
|
|
7571
7575
|
"funding": [
|
|
7572
7576
|
{
|
|
@@ -7750,8 +7754,8 @@
|
|
|
7750
7754
|
"license": "ISC"
|
|
7751
7755
|
},
|
|
7752
7756
|
"node_modules/which-typed-array": {
|
|
7753
|
-
"version": "1.1.
|
|
7754
|
-
"integrity": "sha512-
|
|
7757
|
+
"version": "1.1.24",
|
|
7758
|
+
"integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==",
|
|
7755
7759
|
"license": "MIT",
|
|
7756
7760
|
"dependencies": {
|
|
7757
7761
|
"available-typed-arrays": "^1.0.7",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-codegen",
|
|
3
|
-
"version": "11.15.5-rc.
|
|
3
|
+
"version": "11.15.5-rc.263",
|
|
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/angular-app": "11.15.5-rc.
|
|
18
|
+
"@wavemaker/angular-app": "11.15.5-rc.263",
|
|
19
19
|
"archiver": "^7.0.1",
|
|
20
20
|
"cheerio": "1.0.0-rc.12",
|
|
21
21
|
"decode-uri-component": "^0.2.0",
|
package/src/expr-parser-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const{getHandlebarTemplate:getHandlebarTemplate,safeString:safeString}=require("./handlebar-helpers"),cheerio=require("cheerio");let processedPageExpr=[];const isDisplayExpressionAttr=e=>{return["displayexpression","displaylabel","displayimagesrc","nodelabel","nodeicon","nodechildren","nodeid","itemid","itemlabel","itemicon","itemaction","itembadge","itemchildren","itemlink","itemtarget","userrole","isactive"].includes(e)},checkIsCustomPipeExpression=function(e){let r=e.match(/(custom(\s*:))/g);return r&&r.length},updateBindExpressionForDisplayexpression=e=>{let r,t,n,
|
|
1
|
+
const{getHandlebarTemplate:getHandlebarTemplate,safeString:safeString}=require("./handlebar-helpers"),cheerio=require("cheerio");let processedPageExpr=[];const isDisplayExpressionAttr=e=>{return["displayexpression","displaylabel","displayimagesrc","nodelabel","nodeicon","nodechildren","nodeid","itemid","itemlabel","itemicon","itemaction","itembadge","itemchildren","itemlink","itemtarget","userrole","isactive"].includes(e)},checkIsCustomPipeExpression=function(e){let r=e.match(/(custom(\s*:))/g);return r&&r.length},updateBindExpressionForDisplayexpression=e=>{let r,t,i,n,a,s,o,l,p,c="";for(checkIsCustomPipeExpression(e)&&(e+=": __1"),e=e.replace(/\$\[data\[\$i\]/g,"$[__1"),i=0;i<e.length;i++)if(r=e[i],t=e[i+1],"$"===r&&"["===t){for(s=1,p=!1,o=!1,n=i+2;n<e.length;n++)if(" "!==(a=e[n])&&(p||(o='"'===e[n]||"'"===e[n],p=!0),"["===a?s++:"]"===a&&s--,!s)){l=e.substring(i+2,n),c+=o?"__1["+l+"]":l;break}i=n}else c+=r;return c},updateArrTypeExpr=(e,r,t)=>{let i=/\[\$i\]/g;return isArrayTypeProperty(r,t)?e.substr(0,e.lastIndexOf("[$i]")).replace("[$i]","[0]"):e.replace(i,"[0]")},isArrayTypeProperty=(e,r)=>{const t=r?r.attribs:{};return["dataset","dataoptions","customcolors"].includes(e)||"datavalue"===e&&void 0!==t.wmcheckbox||"selecteditem"===e&&void 0!==t.wmtable||"selecteditem"===e&&void 0!==t.wmlist||"datavalue"===e&&t.wmselect&&t.multiple},getFnForExpr=(e,r)=>{if(!e)return"";let t=(r=r||{}).isEvent,i=r.widgetNode,n=r.prop;if(t||-1===e.indexOf("[$i]")||(e=updateArrTypeExpr(e,n,i)),processedPageExpr.includes(e))return"";processedPageExpr.push(e);let a,s="";const o=require("../dependencies/expression-parser.cjs");a=t?o.$parseEvent(e,!0):o.$parseExpr(e,!0);const l=safeString(a.fnArgs),p=safeString(a.fnBody),c=a.pipes||[];c.forEach((e,r)=>{s+="["+e.reduce((e,r)=>"'"+e+"','"+r+"'")+"]"+(r<c.length?",":"")}),s=safeString(s);const d=safeString(e.replace(/(?<!\\)"/g,'\\"').replace(/\r/g,"\\r").replace(/\n/g,"\\n"));return getHandlebarTemplate("expr-vs-fn")({expr:d,fnArgs:l,fnBody:p,fnPipes:s})+","},getExprForBinding=e=>{let r="";return"string"==typeof e&&e.startsWith("bind:")&&(r=getFnForExpr(e.replace("bind:",""))),r},generateFilterExprBindings=e=>{let r="";return e.rules&&_.forEach(e.rules,(e,t)=>{e.rules?r+=generateFilterExprBindings(e):("between"===e.matchMode&&(r+=getExprForBinding(e.secondvalue)),r+=getExprForBinding(e.value))}),r},getCRUDVariableExpressions=e=>{let r=e.dataBinding||{},t="";for(let e in r){(r[e]||[]).forEach(e=>{t+=getExprForBinding(e.value)})}return t},getActionDatasetExpressions=e=>{let r="";return(e.dataSet||[]).forEach(e=>{r+=getExprForBinding(e.value)}),r},generateVariableExpressions=e=>{let r="";e=JSON.parse(e);const t=["onBefore","onBeforeUpdate","onResult","onBeforeOpen","onOpen","onBeforeMessageSend","onMessageReceive","onProgress","onError","onBeforeDatasetReady","onCanUpdate","onClick","onHide","onOk","onCancel","onBeforeClose","onClose","onTimerFire","onSuccess","onOnline","onOffline"];for(const i in e){const n=e[i];if("wm.LiveVariable"===n.category&&"read"===n.operation)r+=generateFilterExprBindings(n.filterExpressions);else if("wm.CrudVariable"===n.category)r+=getCRUDVariableExpressions(n);else{"wm.NavigationVariable"!==n.category&&"wm.NotificationVariable"!==n.category||(r+=getActionDatasetExpressions(n)),(n.dataBinding||[]).forEach(e=>{r+=getExprForBinding(e.value)})}t.forEach(e=>{n[e]&&(r+=getFnForExpr(n[e],{isEvent:!0}))})}return r},generateInternalWidgetExpressions=e=>{let r="";return["wmalertdialog","wmconfirmdialog","wmtable","wmtablecolumn","wmform","wmformaction","wmformfield","wmformfield","wmchips","wmlist","wmmedialist"].forEach(t=>{if(void 0!==e.attribs[t])switch(t){case"wmalertdialog":r+=getFnForExpr("oktext");break;case"wmconfirmdialog":r+=getFnForExpr("oktext"),r+=getFnForExpr("canceltext");break;case"wmtable":r+=e.attribs.rowngclass?getFnForExpr(e.attribs.rowngclass):"";break;case"wmtablecolumn":r+=e.attribs["col-ng-class"]?getFnForExpr(e.attribs["col-ng-class"]):"";break;case"wmform":r+=getFnForExpr("boundFn(fn)");break;case"wmformaction":e.attribs["disabled.bind"]&&(r+=getFnForExpr("ngform.status === 'PENDING' || btn.disabled"));break;case"wmformfield":if(e.attribs.filterexpressions){let t=e.attribs.filterexpressions;try{t=JSON.parse(t),r+=generateFilterExprBindings(t)}catch(r){console.log("ERROR: there was an error while parsing filter-expressions in a form field named ",e.attribs.name)}}break;case"wmchips":e.attribs["disabled.bind"]&&(r+=getFnForExpr("disabled || readonly || saturate")),e.attribs["placeholder.bind"]&&(r+=getFnForExpr("saturate ? maxSizeReached : placeholder"));break;case"wmlist":r+=getFnForExpr("!onDemandLoad");break;case"wmmedialist":r+=getFnForExpr("getPicTitle()"),r+=getFnForExpr("src || getSrc(field)")}}),r},isActionTypeNode=e=>["wmtableaction","wmtablerowaction","wmformaction"].some(r=>void 0!==e.attribs[r]),generatePageExpressions=(e,r,t)=>{let i,n,a="";const s=cheerio.load(e);if(processedPageExpr.length=0,s("*").each((e,r)=>{for(let e in r.attribs)e.endsWith(".bind")?(n=e.replace(".bind",""),i=r.attribs[e],isDisplayExpressionAttr(n)&&(i=updateBindExpressionForDisplayexpression(i)),a+=getFnForExpr(i,{prop:n,widgetNode:r})):e.endsWith(".event")?(n=e.replace(".event",""),i=r.attribs[e],a+=getFnForExpr(i,{isEvent:!0})):"displayexpression"===e?(i=r.attribs[e],a+=getFnForExpr(i)):"action"===e&&isActionTypeNode(r)?(i=r.attribs[e],a+=getFnForExpr(i,{isEvent:!0})):"*lazyload"===e&&(i=(i=r.attribs[e]).replace(/'/g,"").replace(/\\"/g,'"'),a+=getFnForExpr(i));a+=generateInternalWidgetExpressions(r)}),a+=generateVariableExpressions(r),t){const e=(t=JSON.parse(t.toString())).properties||{};Object.keys(e).forEach(r=>{let t=e[r];"string"==typeof t.value&&t.value.startsWith("bind:")&&(a+=getFnForExpr(t.value.replace("bind:","")))})}return a};module.exports={generatePageExpressions:generatePageExpressions,generateVariableExpressions:generateVariableExpressions};
|
package/src/gen-app-skeleton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const{deleteResource:deleteResource,createDir:createDir,readDir:readDir,getWebAppPath:getWebAppPath,readFileSync:readFileSync,isPrismProject:isPrismProject,mergePackageJsonWithOverrideJson:mergePackageJsonWithOverrideJson}=require("./wm-utils"),util=require("util"),fs=require("fs"),{executeSyncCmd:executeSyncCmd}=require("../build-util"),writeFile=util.promisify(fs.writeFile),ncp=util.promisify(require("ncp").ncp),updatePackageJson=async(e,a,i)=>{const r=`${a}/package.json`;let s=readFileSync(r,!0);s.name=i.name,s.version=i.version,-1!==(s=await mergePackageJsonWithOverrideJson(e,s)).dependencies["@wavemaker/variables"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/variables`,null,`Adding yalc variables dependency to ${a}`),-1!==s.dependencies["@wavemaker/foundation-css"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/foundation-css`,null,`Adding yalc foundation-css dependency to ${a}`),-1!==s.dependencies["@wavemaker/custom-widgets-m3"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/custom-widgets-m3`,null,`Adding yalc custom-widgets-m3 dependency to ${a}`),await writeFile(r,JSON.stringify(s,null,4))},createAppSkeleton=async(e,a,i,r)=>{await deleteResource(a),await createDir(a,{recursive:!0}),await ncp(i+"/angular-app",a),await updatePackageJson(e,a,r);const s=getWebAppPath(e),t=isPrismProject(r)?"design-tokens":"themes";try{if((await readDir(`${s}/${t}`)).length){const e=`${s}/${t}/`;await ncp(e,`${a}/src/assets/${t}`)}}catch(e){if("ENOENT"!==e.code||!isPrismProject(r))throw console.error("Failed to load themes",e.message),e;console.warn("No design-tokens folder found for Prism project.")}(await readDir(`${s}/extensions`)).length&&await ncp(`${s}/extensions`,`${a}/src/app/extensions`),await ncp(`${s}/app.css`,`${a}/src/assets/app.css`),await ncp(`${s}/resources`,`${a}/resources`),await ncp(`${i}/.npmrc`,`${a}/.npmrc`)};module.exports={createAppSkeleton:createAppSkeleton};
|
|
1
|
+
const{deleteResource:deleteResource,createDir:createDir,readDir:readDir,getWebAppPath:getWebAppPath,readFileSync:readFileSync,isPrismProject:isPrismProject,mergePackageJsonWithOverrideJson:mergePackageJsonWithOverrideJson}=require("./wm-utils"),util=require("util"),fs=require("fs"),{executeSyncCmd:executeSyncCmd}=require("../build-util"),writeFile=util.promisify(fs.writeFile),ncp=util.promisify(require("ncp").ncp),updatePackageJson=async(e,a,i)=>{const r=`${a}/package.json`;let s=readFileSync(r,!0);s.name=i.name,s.version=i.version,-1!==(s=await mergePackageJsonWithOverrideJson(e,s,!0)).dependencies["@wavemaker/variables"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/variables`,null,`Adding yalc variables dependency to ${a}`),-1!==s.dependencies["@wavemaker/foundation-css"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/foundation-css`,null,`Adding yalc foundation-css dependency to ${a}`),-1!==s.dependencies["@wavemaker/custom-widgets-m3"].indexOf("yalc")&&executeSyncCmd(`cd ${a} && yalc add @wavemaker/custom-widgets-m3`,null,`Adding yalc custom-widgets-m3 dependency to ${a}`),await writeFile(r,JSON.stringify(s,null,4))},createAppSkeleton=async(e,a,i,r)=>{await deleteResource(a),await createDir(a,{recursive:!0}),await ncp(i+"/angular-app",a),await updatePackageJson(e,a,r);const s=getWebAppPath(e),t=isPrismProject(r)?"design-tokens":"themes";try{if((await readDir(`${s}/${t}`)).length){const e=`${s}/${t}/`;await ncp(e,`${a}/src/assets/${t}`)}}catch(e){if("ENOENT"!==e.code||!isPrismProject(r))throw console.error("Failed to load themes",e.message),e;console.warn("No design-tokens folder found for Prism project.")}(await readDir(`${s}/extensions`)).length&&await ncp(`${s}/extensions`,`${a}/src/app/extensions`),await ncp(`${s}/app.css`,`${a}/src/assets/app.css`),await ncp(`${s}/resources`,`${a}/resources`),await ncp(`${i}/.npmrc`,`${a}/.npmrc`)};module.exports={createAppSkeleton:createAppSkeleton};
|