@wavemaker/angular-codegen 11.11.0-rc.6113 → 11.11.0-rc.6116
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 +25 -25
- package/angular-app/package-lock.json +25 -25
- package/angular-app/package.json +5 -5
- package/angular-app/src/index.html +1 -2
- package/angular-app/src/main.ts +1 -3
- package/build-angular-app.js +11 -7
- package/download-packages.js +99 -31
- package/npm-shrinkwrap.json +21 -21
- package/package-lock.json +21 -21
- package/package.json +2 -2
- package/src/gen-index-html.js +1 -1
- package/templates/app.config.ts.hbs +5 -5
- package/angular-app/src/app/bootstrap-wrapper.component.ts +0 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-app",
|
|
9
|
-
"version": "11.11.0-rc.
|
|
9
|
+
"version": "11.11.0-rc.6116",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@angular/animations": "18.2.13",
|
|
12
12
|
"@angular/common": "18.2.13",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@fullcalendar/list": "6.1.15",
|
|
25
25
|
"@fullcalendar/timegrid": "6.1.15",
|
|
26
26
|
"@metrichor/jmespath": "0.3.1",
|
|
27
|
-
"@wavemaker/app-ng-runtime": "11.11.0-rc.
|
|
28
|
-
"@wavemaker/custom-widgets-m3": "11.11.0-rc.
|
|
27
|
+
"@wavemaker/app-ng-runtime": "11.11.0-rc.6116",
|
|
28
|
+
"@wavemaker/custom-widgets-m3": "11.11.0-rc.6116",
|
|
29
29
|
"@wavemaker/focus-trap": "1.0.1",
|
|
30
|
-
"@wavemaker/foundation-css": "11.11.0-rc.
|
|
30
|
+
"@wavemaker/foundation-css": "11.11.0-rc.6116",
|
|
31
31
|
"@wavemaker/nvd3": "1.8.12",
|
|
32
|
-
"@wavemaker/variables": "11.11.0-rc.
|
|
32
|
+
"@wavemaker/variables": "11.11.0-rc.6116",
|
|
33
33
|
"@ztree/ztree_v3": "3.5.48",
|
|
34
34
|
"angular-imask": "^7.6.1",
|
|
35
35
|
"angular2-websocket": "0.9.7",
|
|
@@ -7999,8 +7999,8 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
},
|
|
8001
8001
|
"node_modules/@wavemaker/app-ng-runtime": {
|
|
8002
|
-
"version": "11.11.0-rc.
|
|
8003
|
-
"integrity": "sha512-
|
|
8002
|
+
"version": "11.11.0-rc.6116",
|
|
8003
|
+
"integrity": "sha512-0ufbra68l1MCsHQUVB6sQ/2VFRrbAEr0632jrw6K6uOFd+azOQQ2H3qCw7QSJ8uYQkSCDgV6rBuGh93e4+HvIA==",
|
|
8004
8004
|
"license": "MIT",
|
|
8005
8005
|
"engines": {
|
|
8006
8006
|
"node": ">=18.16.1",
|
|
@@ -8008,8 +8008,8 @@
|
|
|
8008
8008
|
}
|
|
8009
8009
|
},
|
|
8010
8010
|
"node_modules/@wavemaker/custom-widgets-m3": {
|
|
8011
|
-
"version": "11.11.0-rc.
|
|
8012
|
-
"integrity": "sha512-
|
|
8011
|
+
"version": "11.11.0-rc.6116",
|
|
8012
|
+
"integrity": "sha512-A0IMMdm+oX030r7Rg6U9f+vbdvW66+TMyMGYfHfjoVNIAXfnuqxftJh45ZLVTACJ+IZ9b0XTqJgjEZJOZCvbaA==",
|
|
8013
8013
|
"license": "ISC"
|
|
8014
8014
|
},
|
|
8015
8015
|
"node_modules/@wavemaker/focus-trap": {
|
|
@@ -8022,8 +8022,8 @@
|
|
|
8022
8022
|
}
|
|
8023
8023
|
},
|
|
8024
8024
|
"node_modules/@wavemaker/foundation-css": {
|
|
8025
|
-
"version": "11.11.0-rc.
|
|
8026
|
-
"integrity": "sha512-
|
|
8025
|
+
"version": "11.11.0-rc.6116",
|
|
8026
|
+
"integrity": "sha512-3P62uYy3sGDBL+cjkPZdeweKTgUxtnTybk0PNOVDv9/Db3yoL19wgMYhNE4qggu+ozeSDpeJ9QfdCbsDcW+z4w==",
|
|
8027
8027
|
"license": "ISC",
|
|
8028
8028
|
"dependencies": {
|
|
8029
8029
|
"chroma-js": "^3.1.2"
|
|
@@ -8038,8 +8038,8 @@
|
|
|
8038
8038
|
}
|
|
8039
8039
|
},
|
|
8040
8040
|
"node_modules/@wavemaker/variables": {
|
|
8041
|
-
"version": "11.11.0-rc.
|
|
8042
|
-
"integrity": "sha512-
|
|
8041
|
+
"version": "11.11.0-rc.6116",
|
|
8042
|
+
"integrity": "sha512-p+rGqulFbc6Xn5glf6StuzivZPCjmgUVD2LO4RyS5fltEozVqo0kwm4oZcWZ/12aogm46tPOQWZMSuWgtL9EjA==",
|
|
8043
8043
|
"license": "ISC",
|
|
8044
8044
|
"dependencies": {
|
|
8045
8045
|
"@metrichor/jmespath": "^0.3.1",
|
|
@@ -9553,8 +9553,8 @@
|
|
|
9553
9553
|
}
|
|
9554
9554
|
},
|
|
9555
9555
|
"node_modules/caniuse-lite": {
|
|
9556
|
-
"version": "1.0.
|
|
9557
|
-
"integrity": "sha512-
|
|
9556
|
+
"version": "1.0.30001715",
|
|
9557
|
+
"integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==",
|
|
9558
9558
|
"dev": true,
|
|
9559
9559
|
"funding": [
|
|
9560
9560
|
{
|
|
@@ -11635,8 +11635,8 @@
|
|
|
11635
11635
|
}
|
|
11636
11636
|
},
|
|
11637
11637
|
"node_modules/electron-to-chromium": {
|
|
11638
|
-
"version": "1.5.
|
|
11639
|
-
"integrity": "sha512-
|
|
11638
|
+
"version": "1.5.140",
|
|
11639
|
+
"integrity": "sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==",
|
|
11640
11640
|
"dev": true,
|
|
11641
11641
|
"license": "ISC"
|
|
11642
11642
|
},
|
|
@@ -12714,8 +12714,8 @@
|
|
|
12714
12714
|
}
|
|
12715
12715
|
},
|
|
12716
12716
|
"node_modules/fdir": {
|
|
12717
|
-
"version": "6.4.
|
|
12718
|
-
"integrity": "sha512-
|
|
12717
|
+
"version": "6.4.4",
|
|
12718
|
+
"integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==",
|
|
12719
12719
|
"dev": true,
|
|
12720
12720
|
"license": "MIT",
|
|
12721
12721
|
"peerDependencies": {
|
|
@@ -22785,8 +22785,8 @@
|
|
|
22785
22785
|
"license": "MIT"
|
|
22786
22786
|
},
|
|
22787
22787
|
"node_modules/tablesort": {
|
|
22788
|
-
"version": "5.
|
|
22789
|
-
"integrity": "sha512
|
|
22788
|
+
"version": "5.6.0",
|
|
22789
|
+
"integrity": "sha512-cZZXK3G089PbpxH8N7vN7Z21SEKqXAaCiSVOmZdR/v7z8TFCsF/OFr0rzjhQuFlQQHy9uQtW9P2oQFJzJFGVrg==",
|
|
22790
22790
|
"dev": true,
|
|
22791
22791
|
"license": "MIT",
|
|
22792
22792
|
"engines": {
|
|
@@ -23055,12 +23055,12 @@
|
|
|
23055
23055
|
"license": "MIT"
|
|
23056
23056
|
},
|
|
23057
23057
|
"node_modules/tinyglobby": {
|
|
23058
|
-
"version": "0.2.
|
|
23059
|
-
"integrity": "sha512-
|
|
23058
|
+
"version": "0.2.13",
|
|
23059
|
+
"integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==",
|
|
23060
23060
|
"dev": true,
|
|
23061
23061
|
"license": "MIT",
|
|
23062
23062
|
"dependencies": {
|
|
23063
|
-
"fdir": "^6.4.
|
|
23063
|
+
"fdir": "^6.4.4",
|
|
23064
23064
|
"picomatch": "^4.0.2"
|
|
23065
23065
|
},
|
|
23066
23066
|
"engines": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-app",
|
|
9
|
-
"version": "11.11.0-rc.
|
|
9
|
+
"version": "11.11.0-rc.6116",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@angular/animations": "18.2.13",
|
|
12
12
|
"@angular/common": "18.2.13",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@fullcalendar/list": "6.1.15",
|
|
25
25
|
"@fullcalendar/timegrid": "6.1.15",
|
|
26
26
|
"@metrichor/jmespath": "0.3.1",
|
|
27
|
-
"@wavemaker/app-ng-runtime": "11.11.0-rc.
|
|
28
|
-
"@wavemaker/custom-widgets-m3": "11.11.0-rc.
|
|
27
|
+
"@wavemaker/app-ng-runtime": "11.11.0-rc.6116",
|
|
28
|
+
"@wavemaker/custom-widgets-m3": "11.11.0-rc.6116",
|
|
29
29
|
"@wavemaker/focus-trap": "1.0.1",
|
|
30
|
-
"@wavemaker/foundation-css": "11.11.0-rc.
|
|
30
|
+
"@wavemaker/foundation-css": "11.11.0-rc.6116",
|
|
31
31
|
"@wavemaker/nvd3": "1.8.12",
|
|
32
|
-
"@wavemaker/variables": "11.11.0-rc.
|
|
32
|
+
"@wavemaker/variables": "11.11.0-rc.6116",
|
|
33
33
|
"@ztree/ztree_v3": "3.5.48",
|
|
34
34
|
"angular-imask": "^7.6.1",
|
|
35
35
|
"angular2-websocket": "0.9.7",
|
|
@@ -7999,8 +7999,8 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
},
|
|
8001
8001
|
"node_modules/@wavemaker/app-ng-runtime": {
|
|
8002
|
-
"version": "11.11.0-rc.
|
|
8003
|
-
"integrity": "sha512-
|
|
8002
|
+
"version": "11.11.0-rc.6116",
|
|
8003
|
+
"integrity": "sha512-0ufbra68l1MCsHQUVB6sQ/2VFRrbAEr0632jrw6K6uOFd+azOQQ2H3qCw7QSJ8uYQkSCDgV6rBuGh93e4+HvIA==",
|
|
8004
8004
|
"license": "MIT",
|
|
8005
8005
|
"engines": {
|
|
8006
8006
|
"node": ">=18.16.1",
|
|
@@ -8008,8 +8008,8 @@
|
|
|
8008
8008
|
}
|
|
8009
8009
|
},
|
|
8010
8010
|
"node_modules/@wavemaker/custom-widgets-m3": {
|
|
8011
|
-
"version": "11.11.0-rc.
|
|
8012
|
-
"integrity": "sha512-
|
|
8011
|
+
"version": "11.11.0-rc.6116",
|
|
8012
|
+
"integrity": "sha512-A0IMMdm+oX030r7Rg6U9f+vbdvW66+TMyMGYfHfjoVNIAXfnuqxftJh45ZLVTACJ+IZ9b0XTqJgjEZJOZCvbaA==",
|
|
8013
8013
|
"license": "ISC"
|
|
8014
8014
|
},
|
|
8015
8015
|
"node_modules/@wavemaker/focus-trap": {
|
|
@@ -8022,8 +8022,8 @@
|
|
|
8022
8022
|
}
|
|
8023
8023
|
},
|
|
8024
8024
|
"node_modules/@wavemaker/foundation-css": {
|
|
8025
|
-
"version": "11.11.0-rc.
|
|
8026
|
-
"integrity": "sha512-
|
|
8025
|
+
"version": "11.11.0-rc.6116",
|
|
8026
|
+
"integrity": "sha512-3P62uYy3sGDBL+cjkPZdeweKTgUxtnTybk0PNOVDv9/Db3yoL19wgMYhNE4qggu+ozeSDpeJ9QfdCbsDcW+z4w==",
|
|
8027
8027
|
"license": "ISC",
|
|
8028
8028
|
"dependencies": {
|
|
8029
8029
|
"chroma-js": "^3.1.2"
|
|
@@ -8038,8 +8038,8 @@
|
|
|
8038
8038
|
}
|
|
8039
8039
|
},
|
|
8040
8040
|
"node_modules/@wavemaker/variables": {
|
|
8041
|
-
"version": "11.11.0-rc.
|
|
8042
|
-
"integrity": "sha512-
|
|
8041
|
+
"version": "11.11.0-rc.6116",
|
|
8042
|
+
"integrity": "sha512-p+rGqulFbc6Xn5glf6StuzivZPCjmgUVD2LO4RyS5fltEozVqo0kwm4oZcWZ/12aogm46tPOQWZMSuWgtL9EjA==",
|
|
8043
8043
|
"license": "ISC",
|
|
8044
8044
|
"dependencies": {
|
|
8045
8045
|
"@metrichor/jmespath": "^0.3.1",
|
|
@@ -9553,8 +9553,8 @@
|
|
|
9553
9553
|
}
|
|
9554
9554
|
},
|
|
9555
9555
|
"node_modules/caniuse-lite": {
|
|
9556
|
-
"version": "1.0.
|
|
9557
|
-
"integrity": "sha512-
|
|
9556
|
+
"version": "1.0.30001715",
|
|
9557
|
+
"integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==",
|
|
9558
9558
|
"dev": true,
|
|
9559
9559
|
"funding": [
|
|
9560
9560
|
{
|
|
@@ -11635,8 +11635,8 @@
|
|
|
11635
11635
|
}
|
|
11636
11636
|
},
|
|
11637
11637
|
"node_modules/electron-to-chromium": {
|
|
11638
|
-
"version": "1.5.
|
|
11639
|
-
"integrity": "sha512-
|
|
11638
|
+
"version": "1.5.140",
|
|
11639
|
+
"integrity": "sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==",
|
|
11640
11640
|
"dev": true,
|
|
11641
11641
|
"license": "ISC"
|
|
11642
11642
|
},
|
|
@@ -12714,8 +12714,8 @@
|
|
|
12714
12714
|
}
|
|
12715
12715
|
},
|
|
12716
12716
|
"node_modules/fdir": {
|
|
12717
|
-
"version": "6.4.
|
|
12718
|
-
"integrity": "sha512-
|
|
12717
|
+
"version": "6.4.4",
|
|
12718
|
+
"integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==",
|
|
12719
12719
|
"dev": true,
|
|
12720
12720
|
"license": "MIT",
|
|
12721
12721
|
"peerDependencies": {
|
|
@@ -22785,8 +22785,8 @@
|
|
|
22785
22785
|
"license": "MIT"
|
|
22786
22786
|
},
|
|
22787
22787
|
"node_modules/tablesort": {
|
|
22788
|
-
"version": "5.
|
|
22789
|
-
"integrity": "sha512
|
|
22788
|
+
"version": "5.6.0",
|
|
22789
|
+
"integrity": "sha512-cZZXK3G089PbpxH8N7vN7Z21SEKqXAaCiSVOmZdR/v7z8TFCsF/OFr0rzjhQuFlQQHy9uQtW9P2oQFJzJFGVrg==",
|
|
22790
22790
|
"dev": true,
|
|
22791
22791
|
"license": "MIT",
|
|
22792
22792
|
"engines": {
|
|
@@ -23055,12 +23055,12 @@
|
|
|
23055
23055
|
"license": "MIT"
|
|
23056
23056
|
},
|
|
23057
23057
|
"node_modules/tinyglobby": {
|
|
23058
|
-
"version": "0.2.
|
|
23059
|
-
"integrity": "sha512-
|
|
23058
|
+
"version": "0.2.13",
|
|
23059
|
+
"integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==",
|
|
23060
23060
|
"dev": true,
|
|
23061
23061
|
"license": "MIT",
|
|
23062
23062
|
"dependencies": {
|
|
23063
|
-
"fdir": "^6.4.
|
|
23063
|
+
"fdir": "^6.4.4",
|
|
23064
23064
|
"picomatch": "^4.0.2"
|
|
23065
23065
|
},
|
|
23066
23066
|
"engines": {
|
package/angular-app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@fullcalendar/list": "6.1.15",
|
|
38
38
|
"@fullcalendar/timegrid": "6.1.15",
|
|
39
39
|
"@metrichor/jmespath": "0.3.1",
|
|
40
|
-
"@wavemaker/custom-widgets-m3": "11.11.0-rc.
|
|
40
|
+
"@wavemaker/custom-widgets-m3": "11.11.0-rc.6116",
|
|
41
41
|
"@wavemaker/focus-trap": "1.0.1",
|
|
42
|
-
"@wavemaker/foundation-css": "11.11.0-rc.
|
|
42
|
+
"@wavemaker/foundation-css": "11.11.0-rc.6116",
|
|
43
43
|
"@wavemaker/nvd3": "1.8.12",
|
|
44
|
-
"@wavemaker/variables": "11.11.0-rc.
|
|
44
|
+
"@wavemaker/variables": "11.11.0-rc.6116",
|
|
45
45
|
"@ztree/ztree_v3": "3.5.48",
|
|
46
46
|
"angular-imask": "^7.6.1",
|
|
47
47
|
"angular2-websocket": "0.9.7",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tslib": "2.4.1",
|
|
68
68
|
"x2js": "3.4.4",
|
|
69
69
|
"zone.js": "0.14.10",
|
|
70
|
-
"@wavemaker/app-ng-runtime": "11.11.0-rc.
|
|
70
|
+
"@wavemaker/app-ng-runtime": "11.11.0-rc.6116"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
package/angular-app/src/main.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { WMAppProperties } from './app/wmProperties';
|
|
|
6
6
|
import * as fontConfig from './font.config';
|
|
7
7
|
import { appConfig } from './app/app.config';
|
|
8
8
|
import { AppComponent } from '@wm/runtime/base';
|
|
9
|
-
import { BootstrapWrapperComponent } from './app/bootstrap-wrapper.component';
|
|
10
9
|
|
|
11
10
|
// Format Accept-Language header
|
|
12
11
|
const formatAcceptHeader = (languages: string[]): string => {
|
|
@@ -51,10 +50,9 @@ if (environment.production) {
|
|
|
51
50
|
|
|
52
51
|
document.addEventListener('DOMContentLoaded', () => {
|
|
53
52
|
new Promise<Event | void>(resolve => {
|
|
54
|
-
|
|
53
|
+
resolve();
|
|
55
54
|
}).then(() => bootstrapApplication(AppComponent, appConfig))
|
|
56
55
|
.then((appRef: ApplicationRef) => {
|
|
57
|
-
appRef.bootstrap(BootstrapWrapperComponent);
|
|
58
56
|
window.addEventListener('unload', () => {
|
|
59
57
|
appRef.components.map(c => c?.destroy());
|
|
60
58
|
});
|
package/build-angular-app.js
CHANGED
|
@@ -148,10 +148,11 @@ const buildAngularApp = async (args) => {
|
|
|
148
148
|
if (!fs.existsSync(SUCCESS_FILE)) {
|
|
149
149
|
// Check if another process is already installing
|
|
150
150
|
if (fs.existsSync(LOCK_FILE)) {
|
|
151
|
-
console.log(
|
|
151
|
+
console.log(`Waiting for another build to complete npm install... for package ${PACKAGE_NAME}`);
|
|
152
152
|
await waitForLock(LOCK_FILE, 20 * 60 * 1000); // Wait for 20 minutes (timeout in milliseconds)
|
|
153
153
|
} else {
|
|
154
154
|
// Acquire the lock
|
|
155
|
+
fs.mkdirSync(TARBALL_DOWNLOAD_PATH, { recursive: true });
|
|
155
156
|
fs.writeFileSync(LOCK_FILE, "PROGRESS");
|
|
156
157
|
await processAngularAppPackage(TARBALL_DOWNLOAD_PATH, TARBALL_DOWNLOAD_PATH, PACKAGE_NAME, true);
|
|
157
158
|
fs.writeFileSync(SUCCESS_FILE, "SUCCESS");
|
|
@@ -166,11 +167,13 @@ const buildAngularApp = async (args) => {
|
|
|
166
167
|
}
|
|
167
168
|
} catch (err) {
|
|
168
169
|
deleteFiles([SUCCESS_FILE, LOCK_FILE])
|
|
169
|
-
console.log(MSG_NG_RUNTIME_LOG +
|
|
170
|
+
console.log(MSG_NG_RUNTIME_LOG + `Something went wrong - for package ${PACKAGE_NAME}`, err);
|
|
170
171
|
process.exit(err.code || err.pid);
|
|
171
172
|
} finally {
|
|
172
173
|
//cleanup : in windows / optimizeUIBuild is false, we need to delete the temp downloaded package
|
|
173
|
-
|
|
174
|
+
if (args.optimizeUIBuild) {
|
|
175
|
+
deleteFiles([path.join(TARBALL_DOWNLOAD_PATH, 'package'), path.join(TARBALL_DOWNLOAD_PATH, ANGULAR_APP_TARBALL_NAME), LOCK_FILE])
|
|
176
|
+
}
|
|
174
177
|
}
|
|
175
178
|
|
|
176
179
|
let ngBuildParams = updateDeployUrl(args);
|
|
@@ -308,9 +311,10 @@ const copyRecursiveSync = (src, dest) => {
|
|
|
308
311
|
* Install the app-runtime-wm-build if package not yet installed.
|
|
309
312
|
* Based on the platform type copy the bundle script into '/src/main/webapp'
|
|
310
313
|
* @param {*} sourceDir
|
|
314
|
+
* @param {*} baseDir
|
|
311
315
|
* @returns
|
|
312
316
|
*/
|
|
313
|
-
const buildAppInWMMode = (sourceDir, baseDir) => {
|
|
317
|
+
const buildAppInWMMode = async (sourceDir, baseDir) => {
|
|
314
318
|
|
|
315
319
|
/**
|
|
316
320
|
* Download app-runtime-wm-build package and install if it doesn't exist
|
|
@@ -325,7 +329,7 @@ const buildAppInWMMode = (sourceDir, baseDir) => {
|
|
|
325
329
|
};
|
|
326
330
|
|
|
327
331
|
appRuntimeWMBuildPackageInfo.baseDir = baseDir;
|
|
328
|
-
const PATH_WAVEMAKER_APP_RUNTIME_WM_BUILD = downloadNPMPackage(appRuntimeWMBuildPackageInfo);
|
|
332
|
+
const PATH_WAVEMAKER_APP_RUNTIME_WM_BUILD = await downloadNPMPackage(appRuntimeWMBuildPackageInfo);
|
|
329
333
|
|
|
330
334
|
const FILE_PATH_WAVEMAKER_APP_RUNTIME_WM_BUILD = PATH_WAVEMAKER_APP_RUNTIME_WM_BUILD + '/node_modules/' + appRuntimeWMBuildPackageInfo.scope + '/' + appRuntimeWMBuildPackageInfo.name + '/';
|
|
331
335
|
|
|
@@ -456,7 +460,7 @@ const initBuild = async (buildConfigObj) => {
|
|
|
456
460
|
const sourceDir = buildConfigObj.appSrc;
|
|
457
461
|
let appTarget = buildConfigObj.appTarget;
|
|
458
462
|
|
|
459
|
-
let baseDir = buildConfigObj.optimizeUIBuild ? undefined : appTarget.split('/').slice(0, 2).join('/') + '/';
|
|
463
|
+
let baseDir = buildConfigObj.optimizeUIBuild ? undefined : appTarget.split('/').slice(0, -2).join('/') + '/';
|
|
460
464
|
if (buildConfigObj.generateOverrideCSS) {
|
|
461
465
|
const { generateOverrideCSS } = require(CODEGEN_INSTALLATION + 'src/gen-app-override-css.js');
|
|
462
466
|
await generateOverrideCSS(buildConfigObj, sourceDir, baseDir);
|
|
@@ -469,7 +473,7 @@ const initBuild = async (buildConfigObj) => {
|
|
|
469
473
|
console.log('Angular app generation mode');
|
|
470
474
|
await generateAngularApp(sourceDir, getNgBuildParams(), CODEGEN_INSTALLATION, appTarget, baseDir);
|
|
471
475
|
} else if (buildType === BUILD_TYPE.WM) {
|
|
472
|
-
buildAppInWMMode(sourceDir, baseDir);
|
|
476
|
+
await buildAppInWMMode(sourceDir, baseDir);
|
|
473
477
|
} else if (buildType === BUILD_TYPE.ANGULAR) {
|
|
474
478
|
if(!isWebComponentBuild) {
|
|
475
479
|
await generateAngularApp(sourceDir, getNgBuildParams(), CODEGEN_INSTALLATION, appTarget, baseDir);
|
package/download-packages.js
CHANGED
|
@@ -2,6 +2,7 @@ const fs = require('fs');
|
|
|
2
2
|
const { executeSyncCmd } = require('./build-util');
|
|
3
3
|
const os = require('os');
|
|
4
4
|
const path = require('path');
|
|
5
|
+
const rimraf = require('rimraf');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -16,7 +17,6 @@ const isNPMPackageExist = (path, msg) => {
|
|
|
16
17
|
if (successMsg == msg) {
|
|
17
18
|
return true;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
20
|
} else {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
@@ -29,52 +29,120 @@ const isNPMPackageExist = (path, msg) => {
|
|
|
29
29
|
* Run npm install
|
|
30
30
|
* Write success file to be make sure it was installed successfully.
|
|
31
31
|
*/
|
|
32
|
-
const downloadNPMPackage = (packageInfo) => {
|
|
32
|
+
const downloadNPMPackage = async (packageInfo) => {
|
|
33
33
|
const HOME_DIR = os.homedir();
|
|
34
34
|
const PATH_NPM_PACKAGE = (packageInfo.baseDir || HOME_DIR + '/.wm/node_modules/') + packageInfo.name + '/' + packageInfo.version;
|
|
35
|
-
const PATH_NPM_PACKAGE_SUCCESS = PATH_NPM_PACKAGE + '/.SUCCESS';
|
|
35
|
+
const PATH_NPM_PACKAGE_SUCCESS = PATH_NPM_PACKAGE + '/.SUCCESS', LOCK_FILE = path.join(PATH_NPM_PACKAGE, ".LOCK");
|
|
36
36
|
let isError = false;
|
|
37
|
+
try {
|
|
38
|
+
if (!packageInfo.baseDir) { // going to install in the .wm folder if baseDir is not defined(optimizeUIBuild true)
|
|
39
|
+
// To check node modules.
|
|
40
|
+
if (!isNPMPackageExist(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg)) {
|
|
41
|
+
// Check if another process is already installing
|
|
42
|
+
if (fs.existsSync(LOCK_FILE)) {
|
|
43
|
+
console.log(`Waiting for another build to complete npm install... for package ${packageInfo.name}`);
|
|
44
|
+
await waitForLock(LOCK_FILE, 20 * 60 * 1000); // Wait for 20 minutes (timeout in milliseconds)
|
|
45
|
+
} else {
|
|
46
|
+
// Acquire the lock
|
|
47
|
+
fs.mkdirSync(PATH_NPM_PACKAGE, { recursive: true });
|
|
48
|
+
fs.writeFileSync(LOCK_FILE, "PROGRESS");
|
|
49
|
+
|
|
50
|
+
await processPackage(packageInfo, PATH_NPM_PACKAGE);
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
fs.copyFileSync(packageInfo.packageJsonFile, PATH_NPM_PACKAGE + '/package.json');
|
|
44
|
-
try {
|
|
45
|
-
//expecting this lock file to be present for exact versions to be downloaded from private registry
|
|
46
|
-
fs.copyFileSync(`${path.dirname(packageInfo.packageJsonFile)} + /package-lock.json`, `${PATH_NPM_PACKAGE} + /package-lock.json`);
|
|
47
|
-
} catch (err) {
|
|
48
|
-
if (err.code === 'ENOENT') {
|
|
49
|
-
console.error(`Info: package-lock.json file not found at ${path.dirname(packageInfo.packageJsonFile)}`);
|
|
52
|
+
//only create a .SUCCESS file when there is no error
|
|
53
|
+
if(!isError) {
|
|
54
|
+
isError = false;
|
|
55
|
+
fs.writeFileSync(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg);
|
|
56
|
+
}
|
|
50
57
|
}
|
|
58
|
+
} else {
|
|
59
|
+
console.log(packageInfo.infoMsg + ` Node packages already installed! for package ${packageInfo.name}`);
|
|
51
60
|
}
|
|
52
61
|
} else {
|
|
53
|
-
|
|
54
|
-
npmInstallCMD += packageInfo.skipPackageVersion === true
|
|
55
|
-
? packageInfo.name
|
|
56
|
-
: packageInfo.scope + '/' + packageInfo.name + '@' + packageInfo.version;
|
|
62
|
+
await processPackage(packageInfo, PATH_NPM_PACKAGE);
|
|
57
63
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
isError = false;
|
|
67
|
-
fs.writeFileSync(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg);
|
|
64
|
+
} catch (err) {
|
|
65
|
+
deleteFiles([PATH_NPM_PACKAGE_SUCCESS, LOCK_FILE])
|
|
66
|
+
console.log(`Something went wrong while installing - for package ${packageInfo.name}`, err);
|
|
67
|
+
process.exit(err.code || err.pid);
|
|
68
|
+
} finally {
|
|
69
|
+
//cleanup : in windows / optimizeUIBuild is false, we need to delete the temp downloaded package
|
|
70
|
+
if (!packageInfo.baseDir) {
|
|
71
|
+
deleteFiles([LOCK_FILE]);
|
|
68
72
|
}
|
|
73
|
+
}
|
|
74
|
+
return PATH_NPM_PACKAGE;
|
|
75
|
+
}
|
|
69
76
|
|
|
77
|
+
const processPackage = (packageInfo, PATH_NPM_PACKAGE) => {
|
|
78
|
+
let npmInstallCMD = 'npm install --legacy-peer-deps ';
|
|
79
|
+
if (packageInfo.packageJsonFile && fs.existsSync(packageInfo.packageJsonFile)) {
|
|
80
|
+
fs.copyFileSync(packageInfo.packageJsonFile, PATH_NPM_PACKAGE + '/package.json');
|
|
81
|
+
try {
|
|
82
|
+
//expecting this lock file to be present for exact versions to be downloaded from private registry
|
|
83
|
+
fs.copyFileSync(`${path.dirname(packageInfo.packageJsonFile)} + /package-lock.json`, `${PATH_NPM_PACKAGE} + /package-lock.json`);
|
|
84
|
+
} catch (err) {
|
|
85
|
+
if (err.code === 'ENOENT') {
|
|
86
|
+
console.error(`Info: package-lock.json file not found at ${path.dirname(packageInfo.packageJsonFile)}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
70
89
|
} else {
|
|
71
|
-
|
|
90
|
+
npmInstallCMD = 'npm init -y && ' + npmInstallCMD;
|
|
91
|
+
npmInstallCMD += packageInfo.skipPackageVersion === true
|
|
92
|
+
? packageInfo.name
|
|
93
|
+
: packageInfo.scope + '/' + packageInfo.name + '@' + packageInfo.version;
|
|
72
94
|
}
|
|
73
95
|
|
|
74
|
-
|
|
96
|
+
fs.mkdirSync(PATH_NPM_PACKAGE, { recursive: true });
|
|
97
|
+
executeSyncCmd('cd ' + PATH_NPM_PACKAGE + ' && ' + npmInstallCMD, (errMsg) => {
|
|
98
|
+
console.log(packageInfo.infoMsg + ' Something wrong with npm installation ', errMsg);
|
|
99
|
+
throw Error(errMsg);
|
|
100
|
+
}, packageInfo.infoMsg);
|
|
101
|
+
}
|
|
75
102
|
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
const deleteFiles = (files) => {
|
|
107
|
+
files.forEach(file => {
|
|
108
|
+
try {
|
|
109
|
+
rimraf.sync(file);
|
|
110
|
+
console.log(`Successfully deleted file - ${file}`);
|
|
111
|
+
} catch (err) {
|
|
112
|
+
console.error(`Error while deleting file ${file}`, err);
|
|
113
|
+
throw new Error(`Error while deleting file: ${file}, Error: ${err}`);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
76
116
|
}
|
|
77
117
|
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @param lockFile
|
|
121
|
+
* @param timeout
|
|
122
|
+
* @returns {Promise<void>}
|
|
123
|
+
*/
|
|
124
|
+
const waitForLock = async (lockFile, timeout) => {
|
|
125
|
+
timeout = timeout || 20 * 60 * 1000 // Wait for 20 minutes (timeout in milliseconds)
|
|
126
|
+
// Helper function to wait for the lock to be released with a timeout
|
|
127
|
+
const startTime = Date.now();
|
|
128
|
+
while (fs.existsSync(lockFile)) {
|
|
129
|
+
if (Date.now() - startTime > timeout) {
|
|
130
|
+
console.error('Timeout!! - waiting for the lock to be released. Exiting...');
|
|
131
|
+
process.exit(1); // Terminate the process with an error code
|
|
132
|
+
}
|
|
133
|
+
await sleep(1000); // Wait for 1 second before checking again
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @param ms
|
|
140
|
+
* @returns {Promise<unknown>}
|
|
141
|
+
*/
|
|
142
|
+
const sleep = (ms) => {
|
|
143
|
+
// Helper function to sleep for a given time
|
|
144
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
145
|
+
};
|
|
78
146
|
|
|
79
147
|
module.exports = {
|
|
80
148
|
downloadNPMPackage
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-codegen",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-codegen",
|
|
9
|
-
"version": "11.11.0-rc.
|
|
9
|
+
"version": "11.11.0-rc.6116",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker/angular-app": "11.11.0-rc.
|
|
12
|
+
"@wavemaker/angular-app": "11.11.0-rc.6116",
|
|
13
13
|
"archiver": "^7.0.1",
|
|
14
14
|
"cheerio": "1.0.0-rc.12",
|
|
15
15
|
"decode-uri-component": "^0.2.0",
|
|
@@ -1411,8 +1411,8 @@
|
|
|
1411
1411
|
"license": "MIT"
|
|
1412
1412
|
},
|
|
1413
1413
|
"node_modules/@wavemaker/angular-app": {
|
|
1414
|
-
"version": "11.11.0-rc.
|
|
1415
|
-
"integrity": "sha512-
|
|
1414
|
+
"version": "11.11.0-rc.6116",
|
|
1415
|
+
"integrity": "sha512-neUFRoF/PJPeycxP/r5DtM+9SeKNqDCEa4TMrImzMyPhWu6edrEwICcmgWDI58YAqKmFRS3pj62vjyCCo5KjwQ==",
|
|
1416
1416
|
"dependencies": {
|
|
1417
1417
|
"@angular/animations": "18.2.13",
|
|
1418
1418
|
"@angular/common": "18.2.13",
|
|
@@ -1430,12 +1430,12 @@
|
|
|
1430
1430
|
"@fullcalendar/list": "6.1.15",
|
|
1431
1431
|
"@fullcalendar/timegrid": "6.1.15",
|
|
1432
1432
|
"@metrichor/jmespath": "0.3.1",
|
|
1433
|
-
"@wavemaker/app-ng-runtime": "11.11.0-rc.
|
|
1434
|
-
"@wavemaker/custom-widgets-m3": "11.11.0-rc.
|
|
1433
|
+
"@wavemaker/app-ng-runtime": "11.11.0-rc.6116",
|
|
1434
|
+
"@wavemaker/custom-widgets-m3": "11.11.0-rc.6116",
|
|
1435
1435
|
"@wavemaker/focus-trap": "1.0.1",
|
|
1436
|
-
"@wavemaker/foundation-css": "11.11.0-rc.
|
|
1436
|
+
"@wavemaker/foundation-css": "11.11.0-rc.6116",
|
|
1437
1437
|
"@wavemaker/nvd3": "1.8.12",
|
|
1438
|
-
"@wavemaker/variables": "11.11.0-rc.
|
|
1438
|
+
"@wavemaker/variables": "11.11.0-rc.6116",
|
|
1439
1439
|
"@ztree/ztree_v3": "3.5.48",
|
|
1440
1440
|
"angular-imask": "^7.6.1",
|
|
1441
1441
|
"angular2-websocket": "0.9.7",
|
|
@@ -1474,8 +1474,8 @@
|
|
|
1474
1474
|
}
|
|
1475
1475
|
},
|
|
1476
1476
|
"node_modules/@wavemaker/app-ng-runtime": {
|
|
1477
|
-
"version": "11.11.0-rc.
|
|
1478
|
-
"integrity": "sha512-
|
|
1477
|
+
"version": "11.11.0-rc.6116",
|
|
1478
|
+
"integrity": "sha512-0ufbra68l1MCsHQUVB6sQ/2VFRrbAEr0632jrw6K6uOFd+azOQQ2H3qCw7QSJ8uYQkSCDgV6rBuGh93e4+HvIA==",
|
|
1479
1479
|
"license": "MIT",
|
|
1480
1480
|
"engines": {
|
|
1481
1481
|
"node": ">=18.16.1",
|
|
@@ -1483,8 +1483,8 @@
|
|
|
1483
1483
|
}
|
|
1484
1484
|
},
|
|
1485
1485
|
"node_modules/@wavemaker/custom-widgets-m3": {
|
|
1486
|
-
"version": "11.11.0-rc.
|
|
1487
|
-
"integrity": "sha512-
|
|
1486
|
+
"version": "11.11.0-rc.6116",
|
|
1487
|
+
"integrity": "sha512-A0IMMdm+oX030r7Rg6U9f+vbdvW66+TMyMGYfHfjoVNIAXfnuqxftJh45ZLVTACJ+IZ9b0XTqJgjEZJOZCvbaA==",
|
|
1488
1488
|
"license": "ISC"
|
|
1489
1489
|
},
|
|
1490
1490
|
"node_modules/@wavemaker/focus-trap": {
|
|
@@ -1497,8 +1497,8 @@
|
|
|
1497
1497
|
}
|
|
1498
1498
|
},
|
|
1499
1499
|
"node_modules/@wavemaker/foundation-css": {
|
|
1500
|
-
"version": "11.11.0-rc.
|
|
1501
|
-
"integrity": "sha512-
|
|
1500
|
+
"version": "11.11.0-rc.6116",
|
|
1501
|
+
"integrity": "sha512-3P62uYy3sGDBL+cjkPZdeweKTgUxtnTybk0PNOVDv9/Db3yoL19wgMYhNE4qggu+ozeSDpeJ9QfdCbsDcW+z4w==",
|
|
1502
1502
|
"license": "ISC",
|
|
1503
1503
|
"dependencies": {
|
|
1504
1504
|
"chroma-js": "^3.1.2"
|
|
@@ -1513,8 +1513,8 @@
|
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
"node_modules/@wavemaker/variables": {
|
|
1516
|
-
"version": "11.11.0-rc.
|
|
1517
|
-
"integrity": "sha512-
|
|
1516
|
+
"version": "11.11.0-rc.6116",
|
|
1517
|
+
"integrity": "sha512-p+rGqulFbc6Xn5glf6StuzivZPCjmgUVD2LO4RyS5fltEozVqo0kwm4oZcWZ/12aogm46tPOQWZMSuWgtL9EjA==",
|
|
1518
1518
|
"license": "ISC",
|
|
1519
1519
|
"dependencies": {
|
|
1520
1520
|
"@metrichor/jmespath": "^0.3.1",
|
|
@@ -2191,8 +2191,8 @@
|
|
|
2191
2191
|
}
|
|
2192
2192
|
},
|
|
2193
2193
|
"node_modules/caniuse-lite": {
|
|
2194
|
-
"version": "1.0.
|
|
2195
|
-
"integrity": "sha512-
|
|
2194
|
+
"version": "1.0.30001715",
|
|
2195
|
+
"integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==",
|
|
2196
2196
|
"dev": true,
|
|
2197
2197
|
"funding": [
|
|
2198
2198
|
{
|
|
@@ -3270,8 +3270,8 @@
|
|
|
3270
3270
|
"license": "MIT"
|
|
3271
3271
|
},
|
|
3272
3272
|
"node_modules/electron-to-chromium": {
|
|
3273
|
-
"version": "1.5.
|
|
3274
|
-
"integrity": "sha512-
|
|
3273
|
+
"version": "1.5.140",
|
|
3274
|
+
"integrity": "sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==",
|
|
3275
3275
|
"dev": true,
|
|
3276
3276
|
"license": "ISC"
|
|
3277
3277
|
},
|
package/package-lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-codegen",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-codegen",
|
|
9
|
-
"version": "11.11.0-rc.
|
|
9
|
+
"version": "11.11.0-rc.6116",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker/angular-app": "11.11.0-rc.
|
|
12
|
+
"@wavemaker/angular-app": "11.11.0-rc.6116",
|
|
13
13
|
"archiver": "^7.0.1",
|
|
14
14
|
"cheerio": "1.0.0-rc.12",
|
|
15
15
|
"decode-uri-component": "^0.2.0",
|
|
@@ -1411,8 +1411,8 @@
|
|
|
1411
1411
|
"license": "MIT"
|
|
1412
1412
|
},
|
|
1413
1413
|
"node_modules/@wavemaker/angular-app": {
|
|
1414
|
-
"version": "11.11.0-rc.
|
|
1415
|
-
"integrity": "sha512-
|
|
1414
|
+
"version": "11.11.0-rc.6116",
|
|
1415
|
+
"integrity": "sha512-neUFRoF/PJPeycxP/r5DtM+9SeKNqDCEa4TMrImzMyPhWu6edrEwICcmgWDI58YAqKmFRS3pj62vjyCCo5KjwQ==",
|
|
1416
1416
|
"dependencies": {
|
|
1417
1417
|
"@angular/animations": "18.2.13",
|
|
1418
1418
|
"@angular/common": "18.2.13",
|
|
@@ -1430,12 +1430,12 @@
|
|
|
1430
1430
|
"@fullcalendar/list": "6.1.15",
|
|
1431
1431
|
"@fullcalendar/timegrid": "6.1.15",
|
|
1432
1432
|
"@metrichor/jmespath": "0.3.1",
|
|
1433
|
-
"@wavemaker/app-ng-runtime": "11.11.0-rc.
|
|
1434
|
-
"@wavemaker/custom-widgets-m3": "11.11.0-rc.
|
|
1433
|
+
"@wavemaker/app-ng-runtime": "11.11.0-rc.6116",
|
|
1434
|
+
"@wavemaker/custom-widgets-m3": "11.11.0-rc.6116",
|
|
1435
1435
|
"@wavemaker/focus-trap": "1.0.1",
|
|
1436
|
-
"@wavemaker/foundation-css": "11.11.0-rc.
|
|
1436
|
+
"@wavemaker/foundation-css": "11.11.0-rc.6116",
|
|
1437
1437
|
"@wavemaker/nvd3": "1.8.12",
|
|
1438
|
-
"@wavemaker/variables": "11.11.0-rc.
|
|
1438
|
+
"@wavemaker/variables": "11.11.0-rc.6116",
|
|
1439
1439
|
"@ztree/ztree_v3": "3.5.48",
|
|
1440
1440
|
"angular-imask": "^7.6.1",
|
|
1441
1441
|
"angular2-websocket": "0.9.7",
|
|
@@ -1474,8 +1474,8 @@
|
|
|
1474
1474
|
}
|
|
1475
1475
|
},
|
|
1476
1476
|
"node_modules/@wavemaker/app-ng-runtime": {
|
|
1477
|
-
"version": "11.11.0-rc.
|
|
1478
|
-
"integrity": "sha512-
|
|
1477
|
+
"version": "11.11.0-rc.6116",
|
|
1478
|
+
"integrity": "sha512-0ufbra68l1MCsHQUVB6sQ/2VFRrbAEr0632jrw6K6uOFd+azOQQ2H3qCw7QSJ8uYQkSCDgV6rBuGh93e4+HvIA==",
|
|
1479
1479
|
"license": "MIT",
|
|
1480
1480
|
"engines": {
|
|
1481
1481
|
"node": ">=18.16.1",
|
|
@@ -1483,8 +1483,8 @@
|
|
|
1483
1483
|
}
|
|
1484
1484
|
},
|
|
1485
1485
|
"node_modules/@wavemaker/custom-widgets-m3": {
|
|
1486
|
-
"version": "11.11.0-rc.
|
|
1487
|
-
"integrity": "sha512-
|
|
1486
|
+
"version": "11.11.0-rc.6116",
|
|
1487
|
+
"integrity": "sha512-A0IMMdm+oX030r7Rg6U9f+vbdvW66+TMyMGYfHfjoVNIAXfnuqxftJh45ZLVTACJ+IZ9b0XTqJgjEZJOZCvbaA==",
|
|
1488
1488
|
"license": "ISC"
|
|
1489
1489
|
},
|
|
1490
1490
|
"node_modules/@wavemaker/focus-trap": {
|
|
@@ -1497,8 +1497,8 @@
|
|
|
1497
1497
|
}
|
|
1498
1498
|
},
|
|
1499
1499
|
"node_modules/@wavemaker/foundation-css": {
|
|
1500
|
-
"version": "11.11.0-rc.
|
|
1501
|
-
"integrity": "sha512-
|
|
1500
|
+
"version": "11.11.0-rc.6116",
|
|
1501
|
+
"integrity": "sha512-3P62uYy3sGDBL+cjkPZdeweKTgUxtnTybk0PNOVDv9/Db3yoL19wgMYhNE4qggu+ozeSDpeJ9QfdCbsDcW+z4w==",
|
|
1502
1502
|
"license": "ISC",
|
|
1503
1503
|
"dependencies": {
|
|
1504
1504
|
"chroma-js": "^3.1.2"
|
|
@@ -1513,8 +1513,8 @@
|
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
"node_modules/@wavemaker/variables": {
|
|
1516
|
-
"version": "11.11.0-rc.
|
|
1517
|
-
"integrity": "sha512-
|
|
1516
|
+
"version": "11.11.0-rc.6116",
|
|
1517
|
+
"integrity": "sha512-p+rGqulFbc6Xn5glf6StuzivZPCjmgUVD2LO4RyS5fltEozVqo0kwm4oZcWZ/12aogm46tPOQWZMSuWgtL9EjA==",
|
|
1518
1518
|
"license": "ISC",
|
|
1519
1519
|
"dependencies": {
|
|
1520
1520
|
"@metrichor/jmespath": "^0.3.1",
|
|
@@ -2191,8 +2191,8 @@
|
|
|
2191
2191
|
}
|
|
2192
2192
|
},
|
|
2193
2193
|
"node_modules/caniuse-lite": {
|
|
2194
|
-
"version": "1.0.
|
|
2195
|
-
"integrity": "sha512-
|
|
2194
|
+
"version": "1.0.30001715",
|
|
2195
|
+
"integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==",
|
|
2196
2196
|
"dev": true,
|
|
2197
2197
|
"funding": [
|
|
2198
2198
|
{
|
|
@@ -3270,8 +3270,8 @@
|
|
|
3270
3270
|
"license": "MIT"
|
|
3271
3271
|
},
|
|
3272
3272
|
"node_modules/electron-to-chromium": {
|
|
3273
|
-
"version": "1.5.
|
|
3274
|
-
"integrity": "sha512-
|
|
3273
|
+
"version": "1.5.140",
|
|
3274
|
+
"integrity": "sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==",
|
|
3275
3275
|
"dev": true,
|
|
3276
3276
|
"license": "ISC"
|
|
3277
3277
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-codegen",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.6116",
|
|
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.11.0-rc.
|
|
18
|
+
"@wavemaker/angular-app": "11.11.0-rc.6116",
|
|
19
19
|
"archiver": "^7.0.1",
|
|
20
20
|
"cheerio": "1.0.0-rc.12",
|
|
21
21
|
"decode-uri-component": "^0.2.0",
|
package/src/gen-index-html.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const{getIndexHtmlPath:getIndexHtmlPath,readFile:readFile,writeFile:writeFile,isMobileProject:isMobileProject,createDir:createDir}=require("./wm-utils"),{addToScripts:addToScripts}=require("./update-angular-json"),cheerio=require("cheerio"),prettier=require("prettier"),isResourceJS=e=>/^resources\/./.test(e),generateIndexHtml=async(e,r,t,i,n,s)=>{const o=await readFile(getIndexHtmlPath(e),"utf8"),a=cheerio.load(o);let c=[],l=[],m=!1,p=0,d=[];const h=["application/ld+json"];await createDir(r+"/resources/wm-inline",{recursive:!0}),a("script").each((e,r)=>{d.push(r)});for(const e of d){let t=a(e).attr("src");if(t)!m&&t.includes("wm-libs.min.js")&&(m=!0),isResourceJS(t)&&(m?l.push(t):c.push(t),a(e).remove());else if(!h.includes(a(e).attr("type"))){t=`resources/wm-inline/wm-inline-${++p}.js`;try{await writeFile(`${r}/${t}`,a(e).html()),m?l.push(t):c.push(t),a(e).remove()}catch(e){console.log(`WM-CODEGEN | Error in inline script generation | ${e}`)}}}await addToScripts(e,r,c,l),a('script[src$="/wm-loader.min.js"]').remove(),a('script[src$="/wm-libs.min.js"]').remove(),a('script[src$="/wm-mobileloader.min.js"]').remove();const u=a('meta[name="description"]');u.attr("content")||u.attr("content","App built on wavemaker"),isMobileProject(t)&&a("body").append(a('script[src="cordova.js"]')),a('link[href$="/wm-style.css"]').remove(),a('link[href="print.css"]').remove(),a('link[theme="wmtheme"]').remove(),a('link[href$="wm-responsive.css"]').remove(),a('link[href^="themes"][href$="style.css"]').remove(),a('link[href="app.css"]').remove(),a('link[href$="foundation.css"]').remove(),a('link[href$="app.override.css"]').remove(),a("*").contents().each(function(){8===this.nodeType&&a(this).remove()});process.env.APPMETRICS_ENABLED,process.env.APPMETRICS_SERVER_URL;i?a('meta[name="cdnUrl"]').attr("content",i):a('meta[name="cdnUrl"]').remove(),s&&a("head").append('<meta name="apiUrl" content="'+s+'" />'),a('link[href^="favicon."]').attr("rel","icon"),n&&(a("head").append('<meta name="theme-color" content="#2c3049" />'),a("head").append('<link rel="manifest" href="manifest.json">'),a("head").append('<link rel="apple-touch-icon" href="ng-bundle/assets/icons/icon-192x192.png">')),
|
|
1
|
+
const{getIndexHtmlPath:getIndexHtmlPath,readFile:readFile,writeFile:writeFile,isMobileProject:isMobileProject,createDir:createDir}=require("./wm-utils"),{addToScripts:addToScripts}=require("./update-angular-json"),cheerio=require("cheerio"),prettier=require("prettier"),isResourceJS=e=>/^resources\/./.test(e),generateIndexHtml=async(e,r,t,i,n,s)=>{const o=await readFile(getIndexHtmlPath(e),"utf8"),a=cheerio.load(o);let c=[],l=[],m=!1,p=0,d=[];const h=["application/ld+json"];await createDir(r+"/resources/wm-inline",{recursive:!0}),a("script").each((e,r)=>{d.push(r)});for(const e of d){let t=a(e).attr("src");if(t)!m&&t.includes("wm-libs.min.js")&&(m=!0),isResourceJS(t)&&(m?l.push(t):c.push(t),a(e).remove());else if(!h.includes(a(e).attr("type"))){t=`resources/wm-inline/wm-inline-${++p}.js`;try{await writeFile(`${r}/${t}`,a(e).html()),m?l.push(t):c.push(t),a(e).remove()}catch(e){console.log(`WM-CODEGEN | Error in inline script generation | ${e}`)}}}await addToScripts(e,r,c,l),a('script[src$="/wm-loader.min.js"]').remove(),a('script[src$="/wm-libs.min.js"]').remove(),a('script[src$="/wm-mobileloader.min.js"]').remove();const u=a('meta[name="description"]');u.attr("content")||u.attr("content","App built on wavemaker"),isMobileProject(t)&&a("body").append(a('script[src="cordova.js"]')),a('link[href$="/wm-style.css"]').remove(),a('link[href="print.css"]').remove(),a('link[theme="wmtheme"]').remove(),a('link[href$="wm-responsive.css"]').remove(),a('link[href^="themes"][href$="style.css"]').remove(),a('link[href="app.css"]').remove(),a('link[href$="foundation.css"]').remove(),a('link[href$="app.override.css"]').remove(),a("*").contents().each(function(){8===this.nodeType&&a(this).remove()});process.env.APPMETRICS_ENABLED,process.env.APPMETRICS_SERVER_URL;i?a('meta[name="cdnUrl"]').attr("content",i):a('meta[name="cdnUrl"]').remove(),s&&a("head").append('<meta name="apiUrl" content="'+s+'" />'),a('link[href^="favicon."]').attr("rel","icon"),n&&(a("head").append('<meta name="theme-color" content="#2c3049" />'),a("head").append('<link rel="manifest" href="manifest.json">'),a("head").append('<link rel="apple-touch-icon" href="ng-bundle/assets/icons/icon-192x192.png">')),await writeFile(`${r}/src/index.html`,prettier.format(a.html(),{htmlWhitespaceSensitivity:"ignore",parser:"html",tabWidth:4}))};module.exports={generateIndexHtml:generateIndexHtml};
|
|
@@ -72,7 +72,10 @@ const wmModules = [
|
|
|
72
72
|
BsDatepickerModule.forRoot(),
|
|
73
73
|
NgCircleProgressModule.forRoot(),
|
|
74
74
|
WmComponentsModule.forRoot(),
|
|
75
|
-
RuntimeBaseModule.forRoot()
|
|
75
|
+
RuntimeBaseModule.forRoot(),
|
|
76
|
+
{{#if isPwa}}
|
|
77
|
+
ServiceWorkerModule.register("wmsw-worker.js", { enabled: environment.production })
|
|
78
|
+
{{/if}}
|
|
76
79
|
)
|
|
77
80
|
];
|
|
78
81
|
export const xsrfHeaderName = "{{xsrfTokenHeaderName}}";
|
|
@@ -120,9 +123,6 @@ export const appConfig: ApplicationConfig = {
|
|
|
120
123
|
// Other application-wide services
|
|
121
124
|
CanDeactivateNgPageGuard,
|
|
122
125
|
LazyLoadScriptsResolve,
|
|
123
|
-
...wmModules
|
|
124
|
-
{{#if isPwa}}
|
|
125
|
-
ServiceWorkerModule.register("wmsw-worker.js", { enabled: environment.production })
|
|
126
|
-
{{/if}}
|
|
126
|
+
...wmModules
|
|
127
127
|
]
|
|
128
128
|
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
standalone: true,
|
|
6
|
-
template: `<ng-content></ng-content>`,
|
|
7
|
-
imports: [CommonModule],
|
|
8
|
-
selector: 'bootstrap-wrapper',
|
|
9
|
-
})
|
|
10
|
-
export class BootstrapWrapperComponent { }
|