@wavemaker/angular-codegen 11.14.1-33.647787 → 11.14.1-34.647830

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/angular-codegen",
3
- "version": "11.14.1-33.647787",
3
+ "version": "11.14.1-34.647830",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-codegen",
9
- "version": "11.14.1-33.647787",
9
+ "version": "11.14.1-34.647830",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker/angular-app": "11.14.1-33.647787",
12
+ "@wavemaker/angular-app": "11.14.1-34.647830",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -1340,8 +1340,8 @@
1340
1340
  }
1341
1341
  },
1342
1342
  "node_modules/@types/node": {
1343
- "version": "26.6.4",
1344
- "integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==",
1343
+ "version": "26.6.5",
1344
+ "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
1345
1345
  "dev": true,
1346
1346
  "license": "MIT",
1347
1347
  "dependencies": {
@@ -1376,8 +1376,8 @@
1376
1376
  "license": "MIT"
1377
1377
  },
1378
1378
  "node_modules/@wavemaker/angular-app": {
1379
- "version": "11.14.1-33.647787",
1380
- "integrity": "sha512-trxW+SINzFQ2LohNStLdA5N6rgAYz8B9IteNKPkqU7NDz6GbKyPJx5RAbHjYmH8WtKnGwiWfG5MQBbbiIyXW2w==",
1379
+ "version": "11.14.1-34.647830",
1380
+ "integrity": "sha512-WgYAgG/rea0RjfC6dpmxpB9LvunQiMfgqSOz6U3yutQrPv107lMJ88M2LNi9/s/fC0mJ6T04cgJs9HuYLHI+9Q==",
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.14.1-33.647787",
1398
- "@wavemaker/custom-widgets-m3": "11.14.1-33.647787",
1397
+ "@wavemaker/app-ng-runtime": "11.14.1-34.647830",
1398
+ "@wavemaker/custom-widgets-m3": "11.14.1-34.647830",
1399
1399
  "@wavemaker/focus-trap": "1.0.1",
1400
- "@wavemaker/foundation-css": "11.14.1-33.647787",
1400
+ "@wavemaker/foundation-css": "11.14.1-34.647830",
1401
1401
  "@wavemaker/nvd3": "1.8.15",
1402
- "@wavemaker/variables": "11.14.1-33.647787",
1402
+ "@wavemaker/variables": "11.14.1-34.647830",
1403
1403
  "@ztree/ztree_v3": "3.5.48",
1404
1404
  "acorn": "^8.15.0",
1405
1405
  "angular-imask": "7.6.1",
@@ -1409,7 +1409,7 @@
1409
1409
  "jquery": "3.7.1",
1410
1410
  "jquery-ui": "1.14.1",
1411
1411
  "jssha": "3.3.1",
1412
- "lodash-es": "4.17.21",
1412
+ "lodash-es": "4.18.1",
1413
1413
  "moment": "2.30.1",
1414
1414
  "moment-timezone": "^0.6.0",
1415
1415
  "ng-circle-progress": "1.7.1",
@@ -1434,8 +1434,8 @@
1434
1434
  }
1435
1435
  },
1436
1436
  "node_modules/@wavemaker/app-ng-runtime": {
1437
- "version": "11.14.1-33.647787",
1438
- "integrity": "sha512-ViLO9X6w/sp82eIeeeqMJh1CcSZR6jZVhIZ+07zox0vSBbDTn6mlj43MsKq9gHFucF45leLR2WWgK1XG4ezqMg==",
1437
+ "version": "11.14.1-34.647830",
1438
+ "integrity": "sha512-RUtV5n9BQNyZotzPr71OjnseIhAAZvewNEn/WZaSesjGiHnQwGgYutN5IZJNmLkWNjuZAf+Qz99Qhl7N3FH8RA==",
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.14.1-33.647787",
1447
- "integrity": "sha512-+kisdVi6NLMJim/Tw64wMJvIMlJbmiHYPEavlmb03jHJrNMb0C1SKzd8iC68I20fldDp2x6xXJq/KalqgyOPeg==",
1446
+ "version": "11.14.1-34.647830",
1447
+ "integrity": "sha512-7jOZedHzYyICEQff/iY2DSkwd4tXmzhmIIpenr69kIhFq6gnAx8L9nmWKPcdrE8XkodbxCJSpE4h1Eh5bCMDKA==",
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.14.1-33.647787",
1461
- "integrity": "sha512-cAnL/tfZ2fyncG7walkg+dUTPTvfyWoNaeGVe1eIF1VGuT08S1spA6WhLF7baAgW8fDpsFO2mHGpw/x3jzF1zg==",
1460
+ "version": "11.14.1-34.647830",
1461
+ "integrity": "sha512-x3OJ4+sGSrAO1E9Xoq5A4ThDjrII9Z2xKR8wWHCOBrIM3zF9lV0igjrBXTWZEGIYfHrnlvbjgi5BC8yOyMS4nA==",
1462
1462
  "license": "ISC",
1463
1463
  "dependencies": {
1464
1464
  "chroma-js": "^3.1.2"
@@ -1473,17 +1473,25 @@
1473
1473
  }
1474
1474
  },
1475
1475
  "node_modules/@wavemaker/variables": {
1476
- "version": "11.14.1-33.647787",
1477
- "integrity": "sha512-IkQJ82PrXK9YeteuizzEF/tnQ1EqFX7NK46sFEAdCmDgXdO6O+uIk8UAhQcxgGQLipP+WoUrVT+xwePqyTCZ9Q==",
1476
+ "version": "11.14.1-34.647830",
1477
+ "integrity": "sha512-lzXHizR90MVnNmRSrdavUs5tKS9O9U3ICWUMX1LOlsJEg0S1XEIGdbPwMzBV1LbbAtORFljbUk3iSsQo0oRh4g==",
1478
1478
  "license": "ISC",
1479
1479
  "dependencies": {
1480
1480
  "@metrichor/jmespath": "^0.3.1",
1481
1481
  "he": "^1.2.0",
1482
- "lodash-es": "^4.17.21",
1483
- "moment": "^2.29.4",
1482
+ "lodash-es": "4.18.1",
1483
+ "moment": "^2.31.0",
1484
1484
  "x2js": "^3.4.3"
1485
1485
  }
1486
1486
  },
1487
+ "node_modules/@wavemaker/variables/node_modules/moment": {
1488
+ "version": "2.31.0",
1489
+ "integrity": "sha512-0acOTfMiWOheYS4eoWb80yYMb/JLvVv9SHbs2PehaDzfUG0Bw855SKyk0IKTnPGa5+U2bmi3W68l1+sGLX/pvw==",
1490
+ "license": "MIT",
1491
+ "engines": {
1492
+ "node": "*"
1493
+ }
1494
+ },
1487
1495
  "node_modules/@xmldom/xmldom": {
1488
1496
  "version": "0.8.15",
1489
1497
  "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",
@@ -1890,8 +1898,8 @@
1890
1898
  }
1891
1899
  },
1892
1900
  "node_modules/bare-fs": {
1893
- "version": "4.8.2",
1894
- "integrity": "sha512-+ZI68KHMUvosXfKbg/UOHK0tbCdRnegbvPEdEcZ3Nd6TetieQsJPRXBRXPdLyy8+3VSEbPXtsumTpEtt78xv9w==",
1901
+ "version": "4.8.4",
1902
+ "integrity": "sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==",
1895
1903
  "license": "Apache-2.0",
1896
1904
  "dependencies": {
1897
1905
  "bare-events": "^2.5.4",
@@ -1944,8 +1952,8 @@
1944
1952
  }
1945
1953
  },
1946
1954
  "node_modules/bare-url": {
1947
- "version": "2.5.4",
1948
- "integrity": "sha512-Gxa7UVWBr0/edU1b+TJhn/AZvMQUj9OGspvYsaTYQrAbZA4BOTZGL3LiZxvD+CeMlDH4juwD84+eTAp/bLYW5g==",
1955
+ "version": "2.5.5",
1956
+ "integrity": "sha512-iM9qJCruvpt2rPaLsrumVDru9pogI7PHziHIa9kTNRFt8C8HuSa+kI9kFezK+NvHEFnnz71rKGZ1EAilq/3V/Q==",
1949
1957
  "license": "Apache-2.0",
1950
1958
  "dependencies": {
1951
1959
  "bare-path": "^3.0.0"
@@ -1971,8 +1979,8 @@
1971
1979
  "license": "MIT"
1972
1980
  },
1973
1981
  "node_modules/baseline-browser-mapping": {
1974
- "version": "2.11.27",
1975
- "integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",
1982
+ "version": "2.11.30",
1983
+ "integrity": "sha512-YJs6Pz17RMNv8HoyKREtCY38E3BV1nPkWVmIb+XN1uHC1Vqt3KZCH/uJH9ZKRoiKb/icZ6tvehyee6RZNbFfRA==",
1976
1984
  "dev": true,
1977
1985
  "license": "Apache-2.0",
1978
1986
  "bin": {
@@ -2024,8 +2032,8 @@
2024
2032
  "license": "MIT"
2025
2033
  },
2026
2034
  "node_modules/body-parser": {
2027
- "version": "1.20.8",
2028
- "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==",
2035
+ "version": "1.20.9",
2036
+ "integrity": "sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw==",
2029
2037
  "license": "MIT",
2030
2038
  "dependencies": {
2031
2039
  "bytes": "~3.1.2",
@@ -2089,8 +2097,8 @@
2089
2097
  "license": "BSD-2-Clause"
2090
2098
  },
2091
2099
  "node_modules/browserslist": {
2092
- "version": "4.29.3",
2093
- "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",
2100
+ "version": "4.29.4",
2101
+ "integrity": "sha512-2TcbbiwXEq+N0kD36tykpCfyyQigUXmuwNQbnPp4Xk4PX9JOqVIKjJlIDjpH7uY6tmRGoAd+apeT1p60T8wsdA==",
2094
2102
  "dev": true,
2095
2103
  "funding": [
2096
2104
  {
@@ -2108,11 +2116,11 @@
2108
2116
  ],
2109
2117
  "license": "MIT",
2110
2118
  "dependencies": {
2111
- "baseline-browser-mapping": "^2.11.26",
2112
- "caniuse-lite": "^1.0.30001813",
2113
- "electron-to-chromium": "^1.5.439",
2114
- "node-releases": "^2.0.57",
2115
- "update-browserslist-db": "^1.3.3"
2119
+ "baseline-browser-mapping": "^2.11.29",
2120
+ "caniuse-lite": "^1.0.30001816",
2121
+ "electron-to-chromium": "^1.5.459",
2122
+ "node-releases": "^2.0.59",
2123
+ "update-browserslist-db": "^1.3.4"
2116
2124
  },
2117
2125
  "bin": {
2118
2126
  "browserslist": "cli.js"
@@ -2122,10 +2130,10 @@
2122
2130
  }
2123
2131
  },
2124
2132
  "node_modules/bser": {
2125
- "version": "2.1.1",
2126
- "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",
2133
+ "version": "2.1.2",
2134
+ "integrity": "sha512-V2o8YS2EhrKMO9AumnkK0ynynfFlsajpYupwq7S46H5mhcanwxDkNTw3K67wPIcKTH1ffkA4vhMOtAc7gRmPZw==",
2127
2135
  "dev": true,
2128
- "license": "Apache-2.0",
2136
+ "license": "MIT",
2129
2137
  "dependencies": {
2130
2138
  "node-int64": "^0.4.0"
2131
2139
  }
@@ -2255,8 +2263,8 @@
2255
2263
  }
2256
2264
  },
2257
2265
  "node_modules/caniuse-lite": {
2258
- "version": "1.0.30001815",
2259
- "integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==",
2266
+ "version": "1.0.30001819",
2267
+ "integrity": "sha512-LFUqIIAwpzsIuevnKnsR9qnStBcgzPShTX61lBwN9uFkkf8o8zLiebEjbW8AYtZiF+1YKDWfdt/pWDtMuG8Xwg==",
2260
2268
  "dev": true,
2261
2269
  "funding": [
2262
2270
  {
@@ -2598,8 +2606,8 @@
2598
2606
  "license": "MIT"
2599
2607
  },
2600
2608
  "node_modules/core-js-pure": {
2601
- "version": "3.50.0",
2602
- "integrity": "sha512-6GP3Pxz4IKyWjAfa747vIu/jilB5z29JWROLqH/b+pXVcpgh6tM06ZIBwSuglgVqzDYURhOK6oEzTrG0bCHitA==",
2609
+ "version": "3.51.0",
2610
+ "integrity": "sha512-NE4SFDJ+qzQeqHG2vVSNwopzS6zZNPYJ5kinIqs+OofTqGzOmICgT89E/yvS9XY7rwb3eU1utWXTJ9nVFqv74A==",
2603
2611
  "hasInstallScript": true,
2604
2612
  "license": "MIT",
2605
2613
  "engines": {
@@ -3331,8 +3339,8 @@
3331
3339
  "license": "MIT"
3332
3340
  },
3333
3341
  "node_modules/electron-to-chromium": {
3334
- "version": "1.5.451",
3335
- "integrity": "sha512-vUNKPrUzw8ByEMOxloq0a71iD/mPuPxVkbDm3G5YhnxTzOw/I6qAg2MUS0cYj/c267lWmw26yW4Vv7foxTxPLg==",
3342
+ "version": "1.5.463",
3343
+ "integrity": "sha512-nVWNU6ltFjopvOdD44J4zoBkgO0M+WZiFKKFV7EjebOH9z0KNphk6bCEjplXtJofL21ARIuuwWOCsFkBVklm6w==",
3336
3344
  "dev": true,
3337
3345
  "license": "ISC"
3338
3346
  },
@@ -3662,12 +3670,12 @@
3662
3670
  }
3663
3671
  },
3664
3672
  "node_modules/fb-watchman": {
3665
- "version": "2.0.2",
3666
- "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==",
3673
+ "version": "2.0.4",
3674
+ "integrity": "sha512-tGQtaoYisPDriJBN0mT5yZSyNETnJGA1gTYxaVRAE5KUO3LI9kPUc9WIu8JXcxaIci+faIKlzXqXyPgrmubtBQ==",
3667
3675
  "dev": true,
3668
- "license": "Apache-2.0",
3676
+ "license": "MIT",
3669
3677
  "dependencies": {
3670
- "bser": "2.1.1"
3678
+ "bser": "2.1.2"
3671
3679
  }
3672
3680
  },
3673
3681
  "node_modules/fill-range": {
@@ -5513,8 +5521,8 @@
5513
5521
  "license": "MIT"
5514
5522
  },
5515
5523
  "node_modules/lodash-es": {
5516
- "version": "4.17.21",
5517
- "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
5524
+ "version": "4.18.1",
5525
+ "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==",
5518
5526
  "license": "MIT"
5519
5527
  },
5520
5528
  "node_modules/lru-cache": {
@@ -5833,8 +5841,8 @@
5833
5841
  "license": "MIT"
5834
5842
  },
5835
5843
  "node_modules/node-releases": {
5836
- "version": "2.0.57",
5837
- "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",
5844
+ "version": "2.0.60",
5845
+ "integrity": "sha512-OmO8+GM1JUZqXET720VrJCwkjUCXmCMQm0Z3UDDRbfNLHS4NEAvY60j5jiFv0tkKw2PNNlqOLhahVmwJIOLDIQ==",
5838
5846
  "dev": true,
5839
5847
  "license": "MIT",
5840
5848
  "engines": {
@@ -5920,14 +5928,18 @@
5920
5928
  }
5921
5929
  },
5922
5930
  "node_modules/on-finished": {
5923
- "version": "2.4.1",
5924
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
5931
+ "version": "2.4.2",
5932
+ "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==",
5925
5933
  "license": "MIT",
5926
5934
  "dependencies": {
5927
5935
  "ee-first": "1.1.1"
5928
5936
  },
5929
5937
  "engines": {
5930
5938
  "node": ">= 0.8"
5939
+ },
5940
+ "funding": {
5941
+ "type": "opencollective",
5942
+ "url": "https://opencollective.com/express"
5931
5943
  }
5932
5944
  },
5933
5945
  "node_modules/once": {
@@ -6438,8 +6450,8 @@
6438
6450
  }
6439
6451
  },
6440
6452
  "node_modules/qs": {
6441
- "version": "6.16.0",
6442
- "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
6453
+ "version": "6.16.1",
6454
+ "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==",
6443
6455
  "license": "BSD-3-Clause",
6444
6456
  "dependencies": {
6445
6457
  "es-define-property": "^1.0.1",
@@ -6498,8 +6510,8 @@
6498
6510
  "license": "MIT"
6499
6511
  },
6500
6512
  "node_modules/readable-stream": {
6501
- "version": "4.7.0",
6502
- "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
6513
+ "version": "4.8.0",
6514
+ "integrity": "sha512-2jhTTU3Eilp/2DMT71gbcoqC35eQHasMJH0RHkYxwlxIv3+FR6Y5xAFZIwEGLxKkjZYEFlsiMNIdwUqjK2lLHQ==",
6503
6515
  "license": "MIT",
6504
6516
  "dependencies": {
6505
6517
  "abort-controller": "^3.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.14.1-33.647787",
3
+ "version": "11.14.1-34.647830",
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.14.1-33.647787",
18
+ "@wavemaker/angular-app": "11.14.1-34.647830",
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 cheerio=require("cheerio"),{writeFile:writeFile,readFileSync:readFileSync,readDir:readDir,isMobileProject:isMobileProject,isPrismProject:isPrismProject,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH}=require("./wm-utils"),markScriptsAsLazy=e=>{const s=["./node_modules/d3/dist/d3.min.js","./node_modules/@wavemaker/nvd3/build/nv.d3.min.js","./node_modules/summernote/dist/summernote-lite.min.js",global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/sortable.js","./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/resizable.js","./node_modules/hammerjs/hammer.min.js","./node_modules/iscroll/build/iscroll.js"];if("string"==typeof e){let t=e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"");if(t=t.substring(0,t.lastIndexOf(".")),s.includes(e))return{input:e,inject:!1,bundleName:t}}return e},setBuildCustomizations=async e=>{const s=e.projects["angular-app"].architect.build,t=s.options.scripts;s.options.scripts=t.map(e=>markScriptsAsLazy(e))},addToScripts=async(e,s,t=[],i=[])=>{const n=`${s}/angular.json`;let o=readFileSync(n,!0);const a=o.projects["angular-app"].architect.build;let r=a.options.scripts;const l=`${s+"/src/app/extensions"}`,u=await readDir(l);u.length&&i.push("./src/app/extensions/"+u[0]),a.options.scripts=[...t,...r,...i],await writeFile(n,JSON.stringify(o,null,4))},updateAngularJSON=async(e,s,t,i,n,o,a,r,l,u)=>{const c=`${s}/angular.json`;let p=readFileSync(c,!0);const d=p.projects["angular-app"].architect.build;a&&a.trim().length>0&&(d.configurations.production.deployUrl=a,d.configurations.development.deployUrl=a),d.configurations.production.outputPath=d.configurations.production.outputPath+"/"+global.randomHash,d.configurations.development.outputPath=d.configurations.development.outputPath+"/"+global.randomHash;let m=d.options.styles;if(isPrismProject(t)){const e=(m=m.filter(e=>"string"==typeof e?!(e.includes("src/assets/styles/css/wm-style.css")||e.includes("src/assets/styles/css/wm-responsive.css")):"object"!=typeof e||!e.input||!e.input.includes("src/assets/themes/material/style.css"))).findIndex(e=>"object"==typeof e&&e.input&&e.input.includes("app.css")),s="./node_modules/@wavemaker/foundation-css/foundation/foundation.css",t={input:`src/assets/${APP_OVERRIDE_CSS_PATH}`,inject:!1,bundleName:"wm-styles"};-1!==e?m.splice(e,0,s,t):m.push(s,t),d.options.styles=m}if(isMobileProject(t)){const e=m.findIndex(e=>{let s="object"==typeof e;if(s){return(s?e.input:e).includes("themes")}return!1}),s=m[e].input;m[e].bundleName="wm-android-styles",m[e].input=m[e].input.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/android/style.css`);const t=Object.assign({},m[e]);t.input=s.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/ios/style.css`),t.bundleName="wm-ios-styles",m.push(t);const n=m.findIndex(e=>{let s="object"==typeof e;if(s){return"src/assets/app.css"===(s?e.input:e)}return!1});m[n].bundleName="wm-android-styles";const o=Object.assign({},m[n]);o.bundleName="wm-ios-styles",m.push(o)}m.forEach((e,s)=>{let t="object"==typeof e,n=t?e.input:e;!n.includes("themes")||n.includes("/android/")||n.includes("/ios/")||(t?m[s].input=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`):m[s]=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`))});const g=d.options.assets,f=[],y=[{patterns:f,path:"angular/global"}];if("STATIC"===t.languageBundleSources)for(const e of Object.values(t.supportedLanguages))e.angular&&f.push(`${e.angular}.js`);y.forEach(({patterns:e=[],path:s})=>{let t="**/*";1==e.length?t=e[0]:e.length>1&&(t=`{${e.join(",")}}`),["libraries/locales","node_modules/@wavemaker/app-ng-runtime/locales"].forEach(e=>{(e=>{const s=g.find(s=>s.input===e.input&&s.output===e.output);s?s.glob=e.glob:g.push(e)})({glob:t,input:`${e}/${s}`,output:`/locales/${s}`})})}),d.options.assets=g,await setBuildCustomizations(p);const b=d.configurations.production,h=d.configurations.development;if(b.aot=!1!==r.aot,b.buildOptimizer=!1!==r.buildOptimizer,u){const e=d.options.assets;e.push("src/manifest.json"),e.push("src/wmsw-worker.js"),b.serviceWorker=h.serviceWorker=!0,b.ngswConfigPath=h.ngswConfigPath="ngsw-config.json",delete d.configurations.production.customWebpackConfig}await writeFile(c,JSON.stringify(p,null,4))};module.exports={updateAngularJSON:updateAngularJSON,addToScripts:addToScripts};
1
+ const cheerio=require("cheerio"),{writeFile:writeFile,readFileSync:readFileSync,readDir:readDir,isMobileProject:isMobileProject,isPrismProject:isPrismProject,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH}=require("./wm-utils"),markScriptsAsLazy=e=>{const s=["./node_modules/d3/dist/d3.min.js","./node_modules/@wavemaker/nvd3/build/nv.d3.min.js","./node_modules/summernote/dist/summernote-lite.min.js",global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/sortable.js","./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/resizable.js","./node_modules/hammerjs/hammer.min.js","./node_modules/iscroll/build/iscroll.js"];if("string"==typeof e){let t=e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"");if(t=t.substring(0,t.lastIndexOf(".")),s.includes(e))return{input:e,inject:!1,bundleName:t}}return e},setBuildCustomizations=async e=>{const s=e.projects["angular-app"].architect.build,t=s.options.scripts;s.options.scripts=t.map(e=>markScriptsAsLazy(e))},addToScripts=async(e,s,t=[],i=[])=>{const n=`${s}/angular.json`;let o=readFileSync(n,!0);const a=o.projects["angular-app"].architect.build;let r=a.options.scripts;const l=`${s+"/src/app/extensions"}`,u=await readDir(l);u.length&&i.push("./src/app/extensions/"+u[0]),a.options.scripts=[...t,...r,...i],await writeFile(n,JSON.stringify(o,null,4))},updateAngularJSON=async(e,s,t,i,n,o,a,r,l,u)=>{const c=`${s}/angular.json`;let p=readFileSync(c,!0);const d=p.projects["angular-app"].architect.build;a&&a.trim().length>0&&(d.configurations.production.deployUrl=a,d.configurations.development.deployUrl=a),d.configurations.production.outputPath=d.configurations.production.outputPath+"/"+global.randomHash,d.configurations.development.outputPath=d.configurations.development.outputPath+"/"+global.randomHash;let m=d.options.styles;if(isPrismProject(t)){const e=(m=m.filter(e=>"string"==typeof e?!(e.includes("src/assets/styles/css/wm-style.css")||e.includes("src/assets/styles/css/wm-responsive.css")):"object"!=typeof e||!e.input||!e.input.includes("src/assets/themes/material/style.css"))).findIndex(e=>"object"==typeof e&&e.input&&e.input.includes("app.css")),s="./node_modules/@wavemaker/foundation-css/foundation/foundation.css",t={input:`src/assets/${APP_OVERRIDE_CSS_PATH}`,inject:!1,bundleName:"wm-styles"};-1!==e?m.splice(e,0,s,t):m.push(s,t),d.options.styles=m}if(isMobileProject(t)){const e=m.findIndex(e=>{let s="object"==typeof e;if(s){return(s?e.input:e).includes("themes")}return!1}),s=m[e].input;m[e].bundleName="wm-android-styles",m[e].input=m[e].input.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/android/style.css`);const t=Object.assign({},m[e]);t.input=s.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/ios/style.css`),t.bundleName="wm-ios-styles",m.push(t);const n=m.findIndex(e=>{let s="object"==typeof e;if(s){return"src/assets/app.css"===(s?e.input:e)}return!1});m[n].bundleName="wm-android-styles";const o=Object.assign({},m[n]);o.bundleName="wm-ios-styles",m.push(o)}m.forEach((e,s)=>{let t="object"==typeof e,n=t?e.input:e;!n.includes("themes")||n.includes("/android/")||n.includes("/ios/")||(t?m[s].input=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`):m[s]=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`))});const g=d.options.assets,f=[],y=[{patterns:f,path:"angular/global"}];if("STATIC"===t.languageBundleSources)for(const e of Object.values(t.supportedLanguages||{}))e.angular&&f.push(`${e.angular}.js`);y.forEach(({patterns:e=[],path:s})=>{let t="**/*";1==e.length?t=e[0]:e.length>1&&(t=`{${e.join(",")}}`),["libraries/locales","node_modules/@wavemaker/app-ng-runtime/locales"].forEach(e=>{(e=>{const s=g.find(s=>s.input===e.input&&s.output===e.output);s?s.glob=e.glob:g.push(e)})({glob:t,input:`${e}/${s}`,output:`/locales/${s}`})})}),d.options.assets=g,await setBuildCustomizations(p);const b=d.configurations.production,h=d.configurations.development;if(b.aot=!1!==r.aot,b.buildOptimizer=!1!==r.buildOptimizer,u){const e=d.options.assets;e.push("src/manifest.json"),e.push("src/wmsw-worker.js"),b.serviceWorker=h.serviceWorker=!0,b.ngswConfigPath=h.ngswConfigPath="ngsw-config.json",delete d.configurations.production.customWebpackConfig}await writeFile(c,JSON.stringify(p,null,4))};module.exports={updateAngularJSON:updateAngularJSON,addToScripts:addToScripts};