@wavemaker/angular-codegen 11.14.1-rc.241 → 11.14.1-rc.6301

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.
@@ -69,7 +69,7 @@
69
69
  <body>
70
70
  <div class="header">
71
71
  <h1>Angular Project Dependencies Report</h1>
72
- <p class="timestamp">Generated on: 11/25/2025, 8:17:58 PM</p>
72
+ <p class="timestamp">Generated on: 11/25/2025, 11:38:01 AM</p>
73
73
  </div>
74
74
 
75
75
  <div class="section">
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-app",
9
- "version": "11.14.1-rc.241",
9
+ "version": "11.14.1-rc.6301",
10
10
  "dependencies": {
11
11
  "@angular/animations": "18.2.13",
12
12
  "@angular/common": "18.2.13",
@@ -23,12 +23,12 @@
23
23
  "@fullcalendar/list": "6.1.18",
24
24
  "@fullcalendar/timegrid": "6.1.18",
25
25
  "@metrichor/jmespath": "0.3.1",
26
- "@wavemaker/app-ng-runtime": "11.14.1-rc.241",
27
- "@wavemaker/custom-widgets-m3": "11.14.1-rc.241",
26
+ "@wavemaker/app-ng-runtime": "11.14.1-rc.6301",
27
+ "@wavemaker/custom-widgets-m3": "11.14.1-rc.6301",
28
28
  "@wavemaker/focus-trap": "1.0.1",
29
- "@wavemaker/foundation-css": "11.14.1-rc.241",
30
- "@wavemaker/nvd3": "1.8.16",
31
- "@wavemaker/variables": "11.14.1-rc.241",
29
+ "@wavemaker/foundation-css": "11.14.1-rc.6301",
30
+ "@wavemaker/nvd3": "1.8.15",
31
+ "@wavemaker/variables": "11.14.1-rc.6301",
32
32
  "@ztree/ztree_v3": "3.5.48",
33
33
  "acorn": "^8.15.0",
34
34
  "angular-imask": "7.6.1",
@@ -568,12 +568,12 @@
568
568
  }
569
569
  },
570
570
  "node_modules/@angular-devkit/schematics": {
571
- "version": "20.3.12",
572
- "integrity": "sha512-JqJ1u59y+Ud51k/8MHYzSP+aQOeC2PJBaDmMnvqfWVaIt6n3x4gc/VtuhqhpJ0SKulbFuOWgAfI6QbPFrgUYQQ==",
571
+ "version": "20.3.11",
572
+ "integrity": "sha512-ePbARvd3xaN2a+ozFWaoYQHz1pzyzzu247rxRoS4hSOr5jqCsogMqPoGxdBCx6nFlDlP/CYenFR7cFx5OBT4tg==",
573
573
  "dev": true,
574
574
  "license": "MIT",
575
575
  "dependencies": {
576
- "@angular-devkit/core": "20.3.12",
576
+ "@angular-devkit/core": "20.3.11",
577
577
  "jsonc-parser": "3.3.1",
578
578
  "magic-string": "0.30.17",
579
579
  "ora": "8.2.0",
@@ -586,8 +586,8 @@
586
586
  }
587
587
  },
588
588
  "node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": {
589
- "version": "20.3.12",
590
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
589
+ "version": "20.3.11",
590
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
591
591
  "dev": true,
592
592
  "license": "MIT",
593
593
  "dependencies": {
@@ -794,12 +794,12 @@
794
794
  }
795
795
  },
796
796
  "node_modules/@angular-eslint/builder/node_modules/@angular-devkit/architect": {
797
- "version": "0.2003.12",
798
- "integrity": "sha512-5H40lAFF4CKY32C4HOp6bTlOF1f4WsGCwe7FjFQp9A+T7yoCBiHpIWt2JKTwV4sBoTKVDZOnuf0GG+UVKjQT4A==",
797
+ "version": "0.2003.11",
798
+ "integrity": "sha512-/56v/Le9UruIPqQXINoggns0//W2/BIaDd54kvjNK5PjQUyKKj6nmhMA1RgB0yDTBFh7lksLf8IyyGx9ZchGRA==",
799
799
  "dev": true,
800
800
  "license": "MIT",
801
801
  "dependencies": {
802
- "@angular-devkit/core": "20.3.12",
802
+ "@angular-devkit/core": "20.3.11",
803
803
  "rxjs": "7.8.2"
804
804
  },
805
805
  "engines": {
@@ -809,8 +809,8 @@
809
809
  }
810
810
  },
811
811
  "node_modules/@angular-eslint/builder/node_modules/@angular-devkit/core": {
812
- "version": "20.3.12",
813
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
812
+ "version": "20.3.11",
813
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
814
814
  "dev": true,
815
815
  "license": "MIT",
816
816
  "dependencies": {
@@ -913,8 +913,8 @@
913
913
  }
914
914
  },
915
915
  "node_modules/@angular-eslint/schematics/node_modules/@angular-devkit/core": {
916
- "version": "20.3.12",
917
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
916
+ "version": "20.3.11",
917
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
918
918
  "dev": true,
919
919
  "license": "MIT",
920
920
  "dependencies": {
@@ -8693,8 +8693,8 @@
8693
8693
  }
8694
8694
  },
8695
8695
  "node_modules/@wavemaker/app-ng-runtime": {
8696
- "version": "11.14.1-rc.241",
8697
- "integrity": "sha512-FlRphpC20abWD7Ygkt1BM6apyNNglvK4X5F9T0WKcnV6lbqY9M7adkfdH73vQg4FFS2NKR+7RyuCvpxlnx0l6g==",
8696
+ "version": "11.14.1-rc.6301",
8697
+ "integrity": "sha512-vT9m3x2plFSbAudAz0L76hbZG0KcSjwYpxImgJueQYsJEMQMOaSWRYW9Dg2rrc/6tAAQkW5K5dZlVwNl0oCGmg==",
8698
8698
  "license": "MIT",
8699
8699
  "engines": {
8700
8700
  "node": ">=18.16.1",
@@ -8702,8 +8702,8 @@
8702
8702
  }
8703
8703
  },
8704
8704
  "node_modules/@wavemaker/custom-widgets-m3": {
8705
- "version": "11.14.1-rc.241",
8706
- "integrity": "sha512-BnSNp6yZpLtJ3v40bBUMItEOCeBX+riO7/t8ePUQIbobUuMHu/Bg0MroLcb466PArG5dhw+jpAlAxfkB2sCXiw==",
8705
+ "version": "11.14.1-rc.6301",
8706
+ "integrity": "sha512-wiVECJ42P6i086VtJ2caBG5/6S43S65mZi1f/MbQT2LWugQESorDTMgj1E5seeMlJWC4dDBVCXrx0QZ4bEL+YQ==",
8707
8707
  "license": "ISC"
8708
8708
  },
8709
8709
  "node_modules/@wavemaker/focus-trap": {
@@ -8716,24 +8716,24 @@
8716
8716
  }
8717
8717
  },
8718
8718
  "node_modules/@wavemaker/foundation-css": {
8719
- "version": "11.14.1-rc.241",
8720
- "integrity": "sha512-Fu8qa8v0Ipvc+nzQJE6LpJP9jGIbl0KE7v8TLV0qNm6lnz+lDebW5w0Cz26WHHL1Q21teFQNYgmIg/9Wi0KEQg==",
8719
+ "version": "11.14.1-rc.6301",
8720
+ "integrity": "sha512-lMa1j5UdNZn3/rySs9rtQvbiDIjn9kG2gXOUIoba4tkaeiq2Sqi8wdzd9t0CE/qKMJ031OWkcJmiMwrVHqCV6g==",
8721
8721
  "license": "ISC",
8722
8722
  "dependencies": {
8723
8723
  "chroma-js": "^3.1.2"
8724
8724
  }
8725
8725
  },
8726
8726
  "node_modules/@wavemaker/nvd3": {
8727
- "version": "1.8.16",
8728
- "integrity": "sha512-gzgcW3Gr3MYUpYqbhWXVlUq8NhWpBFCz/QKF+Ekvi6pUjTHDLfe264HgiyrPs0PbCPsqN7Z/cFNbQTYJZC+fzQ==",
8727
+ "version": "1.8.15",
8728
+ "integrity": "sha512-ufRoz09lG1vAMfc+Qc0TC912m/bTmzQYTCJpaQ0T525i6J3+tjmT7dLbTLxRlA1KTsRFRHTaLi410R8RCYMjRg==",
8729
8729
  "license": "Apache-2.0",
8730
8730
  "peerDependencies": {
8731
8731
  "d3": "7.8.5"
8732
8732
  }
8733
8733
  },
8734
8734
  "node_modules/@wavemaker/variables": {
8735
- "version": "11.14.1-rc.241",
8736
- "integrity": "sha512-AXsQyKkK9YnT2BSGvJRlAF9jkPjYx42CoVf5pFP+GbUPIsJu/wIg98fsTyBWMY/eNOMvJDWd9PUibSy1uozIFA==",
8735
+ "version": "11.14.1-rc.6301",
8736
+ "integrity": "sha512-yY3OXHVvR3kIbHwyZS4Xulf02SpPTDmdQm1die1d1LGSZa+YRg4IIX3Pa2QgPZnBZH8sGF7Q12TZ3eVbIet8XA==",
8737
8737
  "license": "ISC",
8738
8738
  "dependencies": {
8739
8739
  "@metrichor/jmespath": "^0.3.1",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-app",
9
- "version": "11.14.1-rc.241",
9
+ "version": "11.14.1-rc.6301",
10
10
  "dependencies": {
11
11
  "@angular/animations": "18.2.13",
12
12
  "@angular/common": "18.2.13",
@@ -23,12 +23,12 @@
23
23
  "@fullcalendar/list": "6.1.18",
24
24
  "@fullcalendar/timegrid": "6.1.18",
25
25
  "@metrichor/jmespath": "0.3.1",
26
- "@wavemaker/app-ng-runtime": "11.14.1-rc.241",
27
- "@wavemaker/custom-widgets-m3": "11.14.1-rc.241",
26
+ "@wavemaker/app-ng-runtime": "11.14.1-rc.6301",
27
+ "@wavemaker/custom-widgets-m3": "11.14.1-rc.6301",
28
28
  "@wavemaker/focus-trap": "1.0.1",
29
- "@wavemaker/foundation-css": "11.14.1-rc.241",
30
- "@wavemaker/nvd3": "1.8.16",
31
- "@wavemaker/variables": "11.14.1-rc.241",
29
+ "@wavemaker/foundation-css": "11.14.1-rc.6301",
30
+ "@wavemaker/nvd3": "1.8.15",
31
+ "@wavemaker/variables": "11.14.1-rc.6301",
32
32
  "@ztree/ztree_v3": "3.5.48",
33
33
  "acorn": "^8.15.0",
34
34
  "angular-imask": "7.6.1",
@@ -568,12 +568,12 @@
568
568
  }
569
569
  },
570
570
  "node_modules/@angular-devkit/schematics": {
571
- "version": "20.3.12",
572
- "integrity": "sha512-JqJ1u59y+Ud51k/8MHYzSP+aQOeC2PJBaDmMnvqfWVaIt6n3x4gc/VtuhqhpJ0SKulbFuOWgAfI6QbPFrgUYQQ==",
571
+ "version": "20.3.11",
572
+ "integrity": "sha512-ePbARvd3xaN2a+ozFWaoYQHz1pzyzzu247rxRoS4hSOr5jqCsogMqPoGxdBCx6nFlDlP/CYenFR7cFx5OBT4tg==",
573
573
  "dev": true,
574
574
  "license": "MIT",
575
575
  "dependencies": {
576
- "@angular-devkit/core": "20.3.12",
576
+ "@angular-devkit/core": "20.3.11",
577
577
  "jsonc-parser": "3.3.1",
578
578
  "magic-string": "0.30.17",
579
579
  "ora": "8.2.0",
@@ -586,8 +586,8 @@
586
586
  }
587
587
  },
588
588
  "node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": {
589
- "version": "20.3.12",
590
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
589
+ "version": "20.3.11",
590
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
591
591
  "dev": true,
592
592
  "license": "MIT",
593
593
  "dependencies": {
@@ -794,12 +794,12 @@
794
794
  }
795
795
  },
796
796
  "node_modules/@angular-eslint/builder/node_modules/@angular-devkit/architect": {
797
- "version": "0.2003.12",
798
- "integrity": "sha512-5H40lAFF4CKY32C4HOp6bTlOF1f4WsGCwe7FjFQp9A+T7yoCBiHpIWt2JKTwV4sBoTKVDZOnuf0GG+UVKjQT4A==",
797
+ "version": "0.2003.11",
798
+ "integrity": "sha512-/56v/Le9UruIPqQXINoggns0//W2/BIaDd54kvjNK5PjQUyKKj6nmhMA1RgB0yDTBFh7lksLf8IyyGx9ZchGRA==",
799
799
  "dev": true,
800
800
  "license": "MIT",
801
801
  "dependencies": {
802
- "@angular-devkit/core": "20.3.12",
802
+ "@angular-devkit/core": "20.3.11",
803
803
  "rxjs": "7.8.2"
804
804
  },
805
805
  "engines": {
@@ -809,8 +809,8 @@
809
809
  }
810
810
  },
811
811
  "node_modules/@angular-eslint/builder/node_modules/@angular-devkit/core": {
812
- "version": "20.3.12",
813
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
812
+ "version": "20.3.11",
813
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
814
814
  "dev": true,
815
815
  "license": "MIT",
816
816
  "dependencies": {
@@ -913,8 +913,8 @@
913
913
  }
914
914
  },
915
915
  "node_modules/@angular-eslint/schematics/node_modules/@angular-devkit/core": {
916
- "version": "20.3.12",
917
- "integrity": "sha512-ReFxd/UOoVDr3+kIUjmYILQZF89qg62POdY7a7OqBH7plmInFlYVSEDouJvGqj3LVCPiqTk2ZOSChbhS/eLxXA==",
916
+ "version": "20.3.11",
917
+ "integrity": "sha512-KZDhMemUci42D9CNziM+GxQK5wEMP+TDL9ssUHIkvrr1lsFViHIO+pfzs7QfyM8n6hr7at4gQN9IZRV4rRKyQQ==",
918
918
  "dev": true,
919
919
  "license": "MIT",
920
920
  "dependencies": {
@@ -8693,8 +8693,8 @@
8693
8693
  }
8694
8694
  },
8695
8695
  "node_modules/@wavemaker/app-ng-runtime": {
8696
- "version": "11.14.1-rc.241",
8697
- "integrity": "sha512-FlRphpC20abWD7Ygkt1BM6apyNNglvK4X5F9T0WKcnV6lbqY9M7adkfdH73vQg4FFS2NKR+7RyuCvpxlnx0l6g==",
8696
+ "version": "11.14.1-rc.6301",
8697
+ "integrity": "sha512-vT9m3x2plFSbAudAz0L76hbZG0KcSjwYpxImgJueQYsJEMQMOaSWRYW9Dg2rrc/6tAAQkW5K5dZlVwNl0oCGmg==",
8698
8698
  "license": "MIT",
8699
8699
  "engines": {
8700
8700
  "node": ">=18.16.1",
@@ -8702,8 +8702,8 @@
8702
8702
  }
8703
8703
  },
8704
8704
  "node_modules/@wavemaker/custom-widgets-m3": {
8705
- "version": "11.14.1-rc.241",
8706
- "integrity": "sha512-BnSNp6yZpLtJ3v40bBUMItEOCeBX+riO7/t8ePUQIbobUuMHu/Bg0MroLcb466PArG5dhw+jpAlAxfkB2sCXiw==",
8705
+ "version": "11.14.1-rc.6301",
8706
+ "integrity": "sha512-wiVECJ42P6i086VtJ2caBG5/6S43S65mZi1f/MbQT2LWugQESorDTMgj1E5seeMlJWC4dDBVCXrx0QZ4bEL+YQ==",
8707
8707
  "license": "ISC"
8708
8708
  },
8709
8709
  "node_modules/@wavemaker/focus-trap": {
@@ -8716,24 +8716,24 @@
8716
8716
  }
8717
8717
  },
8718
8718
  "node_modules/@wavemaker/foundation-css": {
8719
- "version": "11.14.1-rc.241",
8720
- "integrity": "sha512-Fu8qa8v0Ipvc+nzQJE6LpJP9jGIbl0KE7v8TLV0qNm6lnz+lDebW5w0Cz26WHHL1Q21teFQNYgmIg/9Wi0KEQg==",
8719
+ "version": "11.14.1-rc.6301",
8720
+ "integrity": "sha512-lMa1j5UdNZn3/rySs9rtQvbiDIjn9kG2gXOUIoba4tkaeiq2Sqi8wdzd9t0CE/qKMJ031OWkcJmiMwrVHqCV6g==",
8721
8721
  "license": "ISC",
8722
8722
  "dependencies": {
8723
8723
  "chroma-js": "^3.1.2"
8724
8724
  }
8725
8725
  },
8726
8726
  "node_modules/@wavemaker/nvd3": {
8727
- "version": "1.8.16",
8728
- "integrity": "sha512-gzgcW3Gr3MYUpYqbhWXVlUq8NhWpBFCz/QKF+Ekvi6pUjTHDLfe264HgiyrPs0PbCPsqN7Z/cFNbQTYJZC+fzQ==",
8727
+ "version": "1.8.15",
8728
+ "integrity": "sha512-ufRoz09lG1vAMfc+Qc0TC912m/bTmzQYTCJpaQ0T525i6J3+tjmT7dLbTLxRlA1KTsRFRHTaLi410R8RCYMjRg==",
8729
8729
  "license": "Apache-2.0",
8730
8730
  "peerDependencies": {
8731
8731
  "d3": "7.8.5"
8732
8732
  }
8733
8733
  },
8734
8734
  "node_modules/@wavemaker/variables": {
8735
- "version": "11.14.1-rc.241",
8736
- "integrity": "sha512-AXsQyKkK9YnT2BSGvJRlAF9jkPjYx42CoVf5pFP+GbUPIsJu/wIg98fsTyBWMY/eNOMvJDWd9PUibSy1uozIFA==",
8735
+ "version": "11.14.1-rc.6301",
8736
+ "integrity": "sha512-yY3OXHVvR3kIbHwyZS4Xulf02SpPTDmdQm1die1d1LGSZa+YRg4IIX3Pa2QgPZnBZH8sGF7Q12TZ3eVbIet8XA==",
8737
8737
  "license": "ISC",
8738
8738
  "dependencies": {
8739
8739
  "@metrichor/jmespath": "^0.3.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
@@ -36,11 +36,11 @@
36
36
  "@fullcalendar/list": "6.1.18",
37
37
  "@fullcalendar/timegrid": "6.1.18",
38
38
  "@metrichor/jmespath": "0.3.1",
39
- "@wavemaker/custom-widgets-m3": "11.14.1-rc.241",
39
+ "@wavemaker/custom-widgets-m3": "11.14.1-rc.6301",
40
40
  "@wavemaker/focus-trap": "1.0.1",
41
- "@wavemaker/foundation-css": "11.14.1-rc.241",
42
- "@wavemaker/nvd3": "1.8.16",
43
- "@wavemaker/variables": "11.14.1-rc.241",
41
+ "@wavemaker/foundation-css": "11.14.1-rc.6301",
42
+ "@wavemaker/nvd3": "1.8.15",
43
+ "@wavemaker/variables": "11.14.1-rc.6301",
44
44
  "@ztree/ztree_v3": "3.5.48",
45
45
  "acorn": "^8.15.0",
46
46
  "angular-imask": "7.6.1",
@@ -62,7 +62,7 @@
62
62
  "tslib": "2.8.1",
63
63
  "x2js": "3.4.4",
64
64
  "zone.js": "0.15.1",
65
- "@wavemaker/app-ng-runtime": "11.14.1-rc.241"
65
+ "@wavemaker/app-ng-runtime": "11.14.1-rc.6301"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -150692,14 +150692,14 @@ class ToDatePipe extends WmPipe {
150692
150692
  }
150693
150693
  return this.returnFn('', arguments, this.app.Variables);
150694
150694
  }
150695
- constructor(datePipe, i18nService, app, customPipeManager) {
150695
+ constructor(datePipe, i18nService, customPipeManager) {
150696
150696
  super('toDate', customPipeManager);
150697
150697
  this.datePipe = datePipe;
150698
150698
  this.i18nService = i18nService;
150699
- this.app = app;
150700
150699
  this.customPipeManager = customPipeManager;
150700
+ this.app = inject(App);
150701
150701
  }
150702
- static { this.ɵfac = function ToDatePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16), ɵɵdirectiveInject(App, 16), ɵɵdirectiveInject(CustomPipeManager$1, 16)); }; }
150702
+ static { this.ɵfac = function ToDatePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16), ɵɵdirectiveInject(CustomPipeManager$1, 16)); }; }
150703
150703
  static { this.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true, standalone: true }); }
150704
150704
  }
150705
150705
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ToDatePipe, [{
@@ -150708,7 +150708,7 @@ class ToDatePipe extends WmPipe {
150708
150708
  standalone: true,
150709
150709
  name: 'toDate'
150710
150710
  }]
150711
- }], () => [{ type: DatePipe }, { type: AbstractI18nService$1 }, { type: App }, { type: CustomPipeManager$1 }], null); })();
150711
+ }], () => [{ type: DatePipe }, { type: AbstractI18nService$1 }, { type: CustomPipeManager$1 }], null); })();
150712
150712
  class ToNumberPipe {
150713
150713
  transform(data, fracSize) {
150714
150714
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
@@ -150796,9 +150796,9 @@ class SuffixPipe {
150796
150796
  * Custom pipe: It is work as interceptor between the user custom pipe function and angular pipe
150797
150797
  */
150798
150798
  class CustomPipe {
150799
- constructor(app, custmeUserPipe) {
150800
- this.app = app;
150799
+ constructor(custmeUserPipe) {
150801
150800
  this.custmeUserPipe = custmeUserPipe;
150801
+ this.app = inject(App);
150802
150802
  }
150803
150803
  transform(data, pipename) {
150804
150804
  let argumentArr = [];
@@ -150818,7 +150818,7 @@ class CustomPipe {
150818
150818
  return data;
150819
150819
  }
150820
150820
  }
150821
- static { this.ɵfac = function CustomPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CustomPipe)(ɵɵdirectiveInject(App, 16), ɵɵdirectiveInject(CustomPipeManager$1, 16)); }; }
150821
+ static { this.ɵfac = function CustomPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CustomPipe)(ɵɵdirectiveInject(CustomPipeManager$1, 16)); }; }
150822
150822
  static { this.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "custom", type: CustomPipe, pure: true, standalone: true }); }
150823
150823
  }
150824
150824
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CustomPipe, [{
@@ -150827,7 +150827,7 @@ class CustomPipe {
150827
150827
  standalone: true,
150828
150828
  name: 'custom'
150829
150829
  }]
150830
- }], () => [{ type: App }, { type: CustomPipeManager$1 }], null); })();
150830
+ }], () => [{ type: CustomPipeManager$1 }], null); })();
150831
150831
  class TimeFromNowPipe {
150832
150832
  transform(data) {
150833
150833
  let timestamp;
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-codegen",
9
- "version": "11.14.1-rc.241",
9
+ "version": "11.14.1-rc.6301",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker/angular-app": "11.14.1-rc.241",
12
+ "@wavemaker/angular-app": "11.14.1-rc.6301",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -1376,8 +1376,8 @@
1376
1376
  "license": "MIT"
1377
1377
  },
1378
1378
  "node_modules/@wavemaker/angular-app": {
1379
- "version": "11.14.1-rc.241",
1380
- "integrity": "sha512-aTEMExpv6J7K91Q+myH3HDVWRbVPn/+ygjt35mbkorFzu5RCL3V0d78joPZ5dv+AIqf01rc9soTUTHRlLUNhow==",
1379
+ "version": "11.14.1-rc.6301",
1380
+ "integrity": "sha512-mA+J2RvHhnmYhrSzTwqtcWB/t2L8P2OH7n/dHnSuAAeIzmOFQdzKcCkghByInFBZjaobcWr58g+XV6rT9wFRCg==",
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-rc.241",
1398
- "@wavemaker/custom-widgets-m3": "11.14.1-rc.241",
1397
+ "@wavemaker/app-ng-runtime": "11.14.1-rc.6301",
1398
+ "@wavemaker/custom-widgets-m3": "11.14.1-rc.6301",
1399
1399
  "@wavemaker/focus-trap": "1.0.1",
1400
- "@wavemaker/foundation-css": "11.14.1-rc.241",
1401
- "@wavemaker/nvd3": "1.8.16",
1402
- "@wavemaker/variables": "11.14.1-rc.241",
1400
+ "@wavemaker/foundation-css": "11.14.1-rc.6301",
1401
+ "@wavemaker/nvd3": "1.8.15",
1402
+ "@wavemaker/variables": "11.14.1-rc.6301",
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.14.1-rc.241",
1438
- "integrity": "sha512-FlRphpC20abWD7Ygkt1BM6apyNNglvK4X5F9T0WKcnV6lbqY9M7adkfdH73vQg4FFS2NKR+7RyuCvpxlnx0l6g==",
1437
+ "version": "11.14.1-rc.6301",
1438
+ "integrity": "sha512-vT9m3x2plFSbAudAz0L76hbZG0KcSjwYpxImgJueQYsJEMQMOaSWRYW9Dg2rrc/6tAAQkW5K5dZlVwNl0oCGmg==",
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-rc.241",
1447
- "integrity": "sha512-BnSNp6yZpLtJ3v40bBUMItEOCeBX+riO7/t8ePUQIbobUuMHu/Bg0MroLcb466PArG5dhw+jpAlAxfkB2sCXiw==",
1446
+ "version": "11.14.1-rc.6301",
1447
+ "integrity": "sha512-wiVECJ42P6i086VtJ2caBG5/6S43S65mZi1f/MbQT2LWugQESorDTMgj1E5seeMlJWC4dDBVCXrx0QZ4bEL+YQ==",
1448
1448
  "license": "ISC"
1449
1449
  },
1450
1450
  "node_modules/@wavemaker/focus-trap": {
@@ -1457,24 +1457,24 @@
1457
1457
  }
1458
1458
  },
1459
1459
  "node_modules/@wavemaker/foundation-css": {
1460
- "version": "11.14.1-rc.241",
1461
- "integrity": "sha512-Fu8qa8v0Ipvc+nzQJE6LpJP9jGIbl0KE7v8TLV0qNm6lnz+lDebW5w0Cz26WHHL1Q21teFQNYgmIg/9Wi0KEQg==",
1460
+ "version": "11.14.1-rc.6301",
1461
+ "integrity": "sha512-lMa1j5UdNZn3/rySs9rtQvbiDIjn9kG2gXOUIoba4tkaeiq2Sqi8wdzd9t0CE/qKMJ031OWkcJmiMwrVHqCV6g==",
1462
1462
  "license": "ISC",
1463
1463
  "dependencies": {
1464
1464
  "chroma-js": "^3.1.2"
1465
1465
  }
1466
1466
  },
1467
1467
  "node_modules/@wavemaker/nvd3": {
1468
- "version": "1.8.16",
1469
- "integrity": "sha512-gzgcW3Gr3MYUpYqbhWXVlUq8NhWpBFCz/QKF+Ekvi6pUjTHDLfe264HgiyrPs0PbCPsqN7Z/cFNbQTYJZC+fzQ==",
1468
+ "version": "1.8.15",
1469
+ "integrity": "sha512-ufRoz09lG1vAMfc+Qc0TC912m/bTmzQYTCJpaQ0T525i6J3+tjmT7dLbTLxRlA1KTsRFRHTaLi410R8RCYMjRg==",
1470
1470
  "license": "Apache-2.0",
1471
1471
  "peerDependencies": {
1472
1472
  "d3": "7.8.5"
1473
1473
  }
1474
1474
  },
1475
1475
  "node_modules/@wavemaker/variables": {
1476
- "version": "11.14.1-rc.241",
1477
- "integrity": "sha512-AXsQyKkK9YnT2BSGvJRlAF9jkPjYx42CoVf5pFP+GbUPIsJu/wIg98fsTyBWMY/eNOMvJDWd9PUibSy1uozIFA==",
1476
+ "version": "11.14.1-rc.6301",
1477
+ "integrity": "sha512-yY3OXHVvR3kIbHwyZS4Xulf02SpPTDmdQm1die1d1LGSZa+YRg4IIX3Pa2QgPZnBZH8sGF7Q12TZ3eVbIet8XA==",
1478
1478
  "license": "ISC",
1479
1479
  "dependencies": {
1480
1480
  "@metrichor/jmespath": "^0.3.1",
package/package-lock.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-codegen",
9
- "version": "11.14.1-rc.241",
9
+ "version": "11.14.1-rc.6301",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker/angular-app": "11.14.1-rc.241",
12
+ "@wavemaker/angular-app": "11.14.1-rc.6301",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -1376,8 +1376,8 @@
1376
1376
  "license": "MIT"
1377
1377
  },
1378
1378
  "node_modules/@wavemaker/angular-app": {
1379
- "version": "11.14.1-rc.241",
1380
- "integrity": "sha512-aTEMExpv6J7K91Q+myH3HDVWRbVPn/+ygjt35mbkorFzu5RCL3V0d78joPZ5dv+AIqf01rc9soTUTHRlLUNhow==",
1379
+ "version": "11.14.1-rc.6301",
1380
+ "integrity": "sha512-mA+J2RvHhnmYhrSzTwqtcWB/t2L8P2OH7n/dHnSuAAeIzmOFQdzKcCkghByInFBZjaobcWr58g+XV6rT9wFRCg==",
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-rc.241",
1398
- "@wavemaker/custom-widgets-m3": "11.14.1-rc.241",
1397
+ "@wavemaker/app-ng-runtime": "11.14.1-rc.6301",
1398
+ "@wavemaker/custom-widgets-m3": "11.14.1-rc.6301",
1399
1399
  "@wavemaker/focus-trap": "1.0.1",
1400
- "@wavemaker/foundation-css": "11.14.1-rc.241",
1401
- "@wavemaker/nvd3": "1.8.16",
1402
- "@wavemaker/variables": "11.14.1-rc.241",
1400
+ "@wavemaker/foundation-css": "11.14.1-rc.6301",
1401
+ "@wavemaker/nvd3": "1.8.15",
1402
+ "@wavemaker/variables": "11.14.1-rc.6301",
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.14.1-rc.241",
1438
- "integrity": "sha512-FlRphpC20abWD7Ygkt1BM6apyNNglvK4X5F9T0WKcnV6lbqY9M7adkfdH73vQg4FFS2NKR+7RyuCvpxlnx0l6g==",
1437
+ "version": "11.14.1-rc.6301",
1438
+ "integrity": "sha512-vT9m3x2plFSbAudAz0L76hbZG0KcSjwYpxImgJueQYsJEMQMOaSWRYW9Dg2rrc/6tAAQkW5K5dZlVwNl0oCGmg==",
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-rc.241",
1447
- "integrity": "sha512-BnSNp6yZpLtJ3v40bBUMItEOCeBX+riO7/t8ePUQIbobUuMHu/Bg0MroLcb466PArG5dhw+jpAlAxfkB2sCXiw==",
1446
+ "version": "11.14.1-rc.6301",
1447
+ "integrity": "sha512-wiVECJ42P6i086VtJ2caBG5/6S43S65mZi1f/MbQT2LWugQESorDTMgj1E5seeMlJWC4dDBVCXrx0QZ4bEL+YQ==",
1448
1448
  "license": "ISC"
1449
1449
  },
1450
1450
  "node_modules/@wavemaker/focus-trap": {
@@ -1457,24 +1457,24 @@
1457
1457
  }
1458
1458
  },
1459
1459
  "node_modules/@wavemaker/foundation-css": {
1460
- "version": "11.14.1-rc.241",
1461
- "integrity": "sha512-Fu8qa8v0Ipvc+nzQJE6LpJP9jGIbl0KE7v8TLV0qNm6lnz+lDebW5w0Cz26WHHL1Q21teFQNYgmIg/9Wi0KEQg==",
1460
+ "version": "11.14.1-rc.6301",
1461
+ "integrity": "sha512-lMa1j5UdNZn3/rySs9rtQvbiDIjn9kG2gXOUIoba4tkaeiq2Sqi8wdzd9t0CE/qKMJ031OWkcJmiMwrVHqCV6g==",
1462
1462
  "license": "ISC",
1463
1463
  "dependencies": {
1464
1464
  "chroma-js": "^3.1.2"
1465
1465
  }
1466
1466
  },
1467
1467
  "node_modules/@wavemaker/nvd3": {
1468
- "version": "1.8.16",
1469
- "integrity": "sha512-gzgcW3Gr3MYUpYqbhWXVlUq8NhWpBFCz/QKF+Ekvi6pUjTHDLfe264HgiyrPs0PbCPsqN7Z/cFNbQTYJZC+fzQ==",
1468
+ "version": "1.8.15",
1469
+ "integrity": "sha512-ufRoz09lG1vAMfc+Qc0TC912m/bTmzQYTCJpaQ0T525i6J3+tjmT7dLbTLxRlA1KTsRFRHTaLi410R8RCYMjRg==",
1470
1470
  "license": "Apache-2.0",
1471
1471
  "peerDependencies": {
1472
1472
  "d3": "7.8.5"
1473
1473
  }
1474
1474
  },
1475
1475
  "node_modules/@wavemaker/variables": {
1476
- "version": "11.14.1-rc.241",
1477
- "integrity": "sha512-AXsQyKkK9YnT2BSGvJRlAF9jkPjYx42CoVf5pFP+GbUPIsJu/wIg98fsTyBWMY/eNOMvJDWd9PUibSy1uozIFA==",
1476
+ "version": "11.14.1-rc.6301",
1477
+ "integrity": "sha512-yY3OXHVvR3kIbHwyZS4Xulf02SpPTDmdQm1die1d1LGSZa+YRg4IIX3Pa2QgPZnBZH8sGF7Q12TZ3eVbIet8XA==",
1478
1478
  "license": "ISC",
1479
1479
  "dependencies": {
1480
1480
  "@metrichor/jmespath": "^0.3.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.14.1-rc.241",
3
+ "version": "11.14.1-rc.6301",
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-rc.241",
18
+ "@wavemaker/angular-app": "11.14.1-rc.6301",
19
19
  "archiver": "^7.0.1",
20
20
  "cheerio": "1.0.0-rc.12",
21
21
  "decode-uri-component": "^0.2.0",
@@ -1 +1 @@
1
- const path=require("path"),fs=require("fs"),{downloadNPMPackage:downloadNPMPackage}=require("../download-packages"),{isPrismProject:isPrismProject,DESIGN_TOKENS_DIR_NAME:DESIGN_TOKENS_DIR_NAME,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH}=require("./wm-utils"),{getLegacyWmProjectProperties:getLegacyWmProjectProperties}=require("./project-meta"),groupFilesByMode=e=>{const s={default:[]};return fs.readdirSync(e).forEach(o=>{const t=path.join(e,o),r=fs.statSync(t);if(r.isDirectory()){const e=groupFilesByMode(t);for(const o in e)s[o]||(s[o]=[]),s[o].push(...e[o])}else if(r.isFile()&&".json"===path.extname(t)){const e=o.match(/\.([^.]+)\.json$/);if(e){const o=e[1];s[o]||(s[o]=[]),s[o].push(t)}else s.default.push(t)}}),s},generateModeConfigs=(e,s,o,t)=>{const r=o&&o.name||"css/variables",n=t&&t.name||"css/variables",i=[];for(const o in e){const t=e[o].flatMap(e=>{const o=e.replace(s+"/","");return[{destination:o.replace(/\.json$/,".css"),options:{outputReferences:!0,selector:":root"},format:r,filter:function(s){var o;const t=e=>e?e.replace(/\\/g,"/"):e;o=t(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath),e=t(e);var r=o&&-1!==o.indexOf("overrides")||s.filePath&&-1!==s.filePath.indexOf("overrides"),n=o&&(e.includes(o)||e.includes(t(s.filePath)))&&!s.path.includes("appearances")&&!s.path.includes("states");return r&&n}},{destination:o.replace(/\.json$/,"variant.css"),options:{outputReferences:!0,selector:":root"},format:n,filter:s=>{let o;const t=(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath)&&-1!==o.indexOf("overrides"),r=o&&(e.includes(o)||e.includes(s.filePath))&&(s.path.includes("appearances")||s.path.includes("states"));return t&&r}}]});i.push({mode:o,files:t})}return i},accessFile=e=>{const s=path.dirname(e);fs.existsSync(s)||(fs.mkdirSync(s,{recursive:!0}),console.log(`Directory created: ${s}`)),fs.access(e,fs.constants.F_OK,s=>{if(s){console.log(`${e} does not exist. Creating file...`);const s=JSON.stringify({});fs.writeFile(e,s,s=>{if(s)throw s;console.log(`${e} was created successfully.`)})}})};async function setupSymlink(e,s){try{await fs.promises.mkdir(path.dirname(s),{recursive:!0});try{fs.existsSync(s)&&await fs.promises.unlink(s)}catch(e){console.error("Error removing existing symlink:",e)}const o="win32"===process.platform?"junction":"dir";await fs.promises.symlink(e,s,o),console.log("Symlink created successfully at:",s)}catch(e){console.error("Error creating symlink:",s,e)}}const getStyleDictionaryConfig=(e,s,o,t)=>{t.endsWith("/")||(t+="/");let r="";return{log:{verbosity:"verbose"},source:[r="default"===o?`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/!(*.*).json`:`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/*.${o}.json`],include:[`${s.replace(/\\/g,"/")}/**/!(*.dark|*.light).json`,`${t.replace(/\\/g,"/")}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/global/**/*.json`],platforms:{css:{transformGroup:"css",prefix:"--wm",files:e}}}};async function removeSymlink(e){const s=path.resolve(e);try{fs.lstatSync(s).isSymbolicLink()?(await fs.promises.unlink(s),console.log("Symlink removed successfully:",s)):console.warn("Not a symlink, skipping unlink:",s)}catch(e){console.error("Error during symlink removal:",e)}}async function getCustomFormatters(e,s){try{const o=await import(`${e}/node_modules/style-dictionary/lib/utils/index.js`),{usesReferences:t,getReferences:r}=o,n=await import(`${s}/node_modules/@wavemaker/foundation-css/src/utils/style-dictionary-utils.js`),{cssVarCalcMixFormatter:i,componentVariantsFormatter:a}=n,c="web";return{cssVarCalcMixFormatter:i(t,r),componentVariantsFormatter:a(t,r,c)}}catch(e){return console.error("Failed to load CssVarCalcMixFormatter:",e),null}}function processCSSFiles(e,s){for(const{destination:o}of e)try{if(o.endsWith(".css")&&fs.existsSync(o)){const e=fs.readFileSync(o,"utf-8"),t=/(:root\s*\{[^}]*\})/,r=path.basename(o).split(".");let n=e;if(3===r.length&&"light"!==r[1]){const o=r[0],t=r[1];s+=(n=e.replace(/:root/g,`:root[${o}='${t}']`))+"\n"}else{const o=s.match(t),r=e.match(t);if(o&&r){const e=o[1],t=r[1].replace(/:root\s*\{|\}/g,"").trim(),n=e.replace("}",`\n${t}\n}`);s=s.replace(e,n)}else s+=n+"\n"}fs.unlink(o,()=>{})}}catch(e){console.error(`\nStyle dictionary, Error processing file ${o}:`,e)}return s}const generateOverrideCSS=async(e,s,o)=>{e=e||{};const t=await getLegacyWmProjectProperties(s);if(isPrismProject(t)){const t=path.join(s+"/src/main/webapp/",OVERRIDE_TOKENS_PATH),r=s+`/src/main/webapp/${APP_OVERRIDE_CSS_PATH}`;if(accessFile(r),fs.existsSync(t)){console.log("CODEGEN ANGULAR APP: generating override css...");let n={scope:"",name:"style-dictionary",version:"4.1.0",packageJsonFile:"",successMsg:"STYLE DICTIONARY SUCCESS",infoMsg:"STYLE DICTIONARY PACKAGE : ",skipPackageVersion:!1};n.baseDir=o;const i=await downloadNPMPackage(n);let a={scope:"@wavemaker",name:"foundation-css",version:e.runtimeUIVersion,packageJsonFile:"",successMsg:"Foundation-CSS SUCCESS",infoMsg:"Foundation-CSS PACKAGE : "};a.baseDir=o;const c=await downloadNPMPackage(a);console.log("FOUNDATION_CSS_PATH",c,"SourceDir",s),await(async()=>{const e=await import(`${i}/node_modules/style-dictionary/lib/StyleDictionary.js`).then(e=>e.default),o=path.join(c,"/node_modules/@wavemaker/foundation-css/src/tokens/web"),{cssVarCalcMixFormatter:n,componentVariantsFormatter:a}=await getCustomFormatters(i,c);n&&a||(n||console.error("cssVarCalcMixFormatter failed to load."),a||console.error("cssVariantFormatter failed to load.")),n&&e.registerFormat(n),a&&e.registerFormat(a);const l=path.resolve(s,"src","main","webapp",DESIGN_TOKENS_DIR_NAME,"temp-tokens"),d=groupFilesByMode(t),f=generateModeConfigs(d,s,n,a);let m="";try{console.log("\nSetting up foundation tokens symlink..."),await setupSymlink(o,l);for(const{mode:o,files:t}of f){console.log(`\nBuilding CSS for mode: ${o}...`);try{const n=getStyleDictionaryConfig(t,l,o,s);console.log(n,o);const i=new e(n);await i.buildPlatform("css"),console.log(`Style Dictionary build completed for mode: ${o}`),m=processCSSFiles(t,m),fs.writeFileSync(r,m),console.log(`CSS overrides generated successfully for mode: ${o}`)}catch(e){console.error(`Error during Style Dictionary build for mode: ${o}`,e)}}console.log("CODEGEN ANGULAR APP: generating overrides success !")}catch(e){console.error("Error setting up symlink or processing modes:",e)}finally{await removeSymlink(l)}})()}}};module.exports={generateOverrideCSS:generateOverrideCSS};
1
+ const path=require("path"),fs=require("fs"),{downloadNPMPackage:downloadNPMPackage}=require("../download-packages"),{isPrismProject:isPrismProject,DESIGN_TOKENS_DIR_NAME:DESIGN_TOKENS_DIR_NAME,OVERRIDE_TOKENS_PATH:OVERRIDE_TOKENS_PATH,APP_OVERRIDE_CSS_PATH:APP_OVERRIDE_CSS_PATH}=require("./wm-utils"),{getLegacyWmProjectProperties:getLegacyWmProjectProperties}=require("./project-meta"),groupFilesByMode=e=>{const s={default:[]};return fs.readdirSync(e).forEach(o=>{const t=path.join(e,o),r=fs.statSync(t);if(r.isDirectory()){const e=groupFilesByMode(t);for(const o in e)s[o]||(s[o]=[]),s[o].push(...e[o])}else if(r.isFile()&&".json"===path.extname(t)){const e=o.match(/\.([^.]+)\.json$/);if(e){const o=e[1];s[o]||(s[o]=[]),s[o].push(t)}else s.default.push(t)}}),s},generateModeConfigs=(e,s,o,t)=>{const r=o&&o.name||"css/variables",n=t&&t.name||"css/variables",i=[];for(const o in e){const t=e[o].flatMap(e=>{const o=e.replace(s+"/","");return[{destination:o.replace(/\.json$/,".css"),options:{outputReferences:!0,selector:":root"},format:r,filter:function(s){var o;const t=e=>e?e.replace(/\\/g,"/"):e;o=t(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath),e=t(e);var r=o&&-1!==o.indexOf("overrides")||s.filePath&&-1!==s.filePath.indexOf("overrides"),n=o&&(e.includes(o)||e.includes(t(s.filePath)))&&!s.path.includes("appearances")&&!s.path.includes("states");return r&&n}},{destination:o.replace(/\.json$/,"variant.css"),options:{outputReferences:!0,selector:":root"},format:n,filter:s=>{let o;const t=(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath)&&-1!==o.indexOf("overrides"),r=o&&(e.includes(o)||e.includes(s.filePath))&&(s.path.includes("appearances")||s.path.includes("states"));return t&&r}}]});i.push({mode:o,files:t})}return i},accessFile=e=>{const s=path.dirname(e);fs.existsSync(s)||(fs.mkdirSync(s,{recursive:!0}),console.log(`Directory created: ${s}`)),fs.access(e,fs.constants.F_OK,s=>{if(s){console.log(`${e} does not exist. Creating file...`);const s=JSON.stringify({});fs.writeFile(e,s,s=>{if(s)throw s;console.log(`${e} was created successfully.`)})}})};async function setupSymlink(e,s){try{await fs.promises.mkdir(path.dirname(s),{recursive:!0});try{fs.existsSync(s)&&await fs.promises.unlink(s)}catch(e){console.error("Error removing existing symlink:",e)}const o="win32"===process.platform?"junction":"dir";await fs.promises.symlink(e,s,o),console.log("Symlink created successfully at:",s)}catch(e){console.error("Error creating symlink:",s,e)}}const getStyleDictionaryConfig=(e,s,o,t)=>{t.endsWith("/")||(t+="/");let r="";return{log:{verbosity:"verbose"},source:[r="default"===o?`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/!(*.*).json`:`${t}/src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/*.${o}.json`],include:[path.join(s,"**","!(*.dark|*.light).json"),path.join(t,"src","main","webapp",OVERRIDE_TOKENS_PATH,"global","**","*.json")],platforms:{css:{transformGroup:"css",prefix:"--wm",files:e}}}};async function removeSymlink(e){const s=path.resolve(e);try{fs.lstatSync(s).isSymbolicLink()?(await fs.promises.unlink(s),console.log("Symlink removed successfully:",s)):console.warn("Not a symlink, skipping unlink:",s)}catch(e){console.error("Error during symlink removal:",e)}}async function getCustomFormatters(e,s){try{const o=await import(`${e}/node_modules/style-dictionary/lib/utils/index.js`),{usesReferences:t,getReferences:r}=o,n=await import(`${s}/node_modules/@wavemaker/foundation-css/src/utils/style-dictionary-utils.js`),{cssVarCalcMixFormatter:i,componentVariantsFormatter:a}=n,c="web";return{cssVarCalcMixFormatter:i(t,r),componentVariantsFormatter:a(t,r,c)}}catch(e){return console.error("Failed to load CssVarCalcMixFormatter:",e),null}}function processCSSFiles(e,s){for(const{destination:o}of e)try{if(o.endsWith(".css")&&fs.existsSync(o)){const e=fs.readFileSync(o,"utf-8"),t=/(:root\s*\{[^}]*\})/,r=path.basename(o).split(".");let n=e;if(3===r.length&&"light"!==r[1]){const o=r[0],t=r[1];s+=(n=e.replace(/:root/g,`:root[${o}='${t}']`))+"\n"}else{const o=s.match(t),r=e.match(t);if(o&&r){const e=o[1],t=r[1].replace(/:root\s*\{|\}/g,"").trim(),n=e.replace("}",`\n${t}\n}`);s=s.replace(e,n)}else s+=n+"\n"}fs.unlink(o,()=>{})}}catch(e){console.error(`\nStyle dictionary, Error processing file ${o}:`,e)}return s}const generateOverrideCSS=async(e,s,o)=>{e=e||{};const t=await getLegacyWmProjectProperties(s);if(isPrismProject(t)&&(e.generateOverrideCSS||"angular"===e.buildType)){const t=path.join(s+"/src/main/webapp/",OVERRIDE_TOKENS_PATH),r=s+`/src/main/webapp/${APP_OVERRIDE_CSS_PATH}`;if(accessFile(r),fs.existsSync(t)){console.log("CODEGEN ANGULAR APP: generating override css...");let n={scope:"",name:"style-dictionary",version:"4.1.0",packageJsonFile:"",successMsg:"STYLE DICTIONARY SUCCESS",infoMsg:"STYLE DICTIONARY PACKAGE : ",skipPackageVersion:!1};n.baseDir=o;const i=await downloadNPMPackage(n);let a={scope:"@wavemaker",name:"foundation-css",version:e.runtimeUIVersion,packageJsonFile:"",successMsg:"Foundation-CSS SUCCESS",infoMsg:"Foundation-CSS PACKAGE : "};a.baseDir=o;const c=await downloadNPMPackage(a);console.log("FOUNDATION_CSS_PATH",c,"SourceDir",s),await(async()=>{const e=await import(`${i}/node_modules/style-dictionary/lib/StyleDictionary.js`).then(e=>e.default),o=path.join(c,"/node_modules/@wavemaker/foundation-css/src/tokens/web"),{cssVarCalcMixFormatter:n,componentVariantsFormatter:a}=await getCustomFormatters(i,c);n&&a||(n||console.error("cssVarCalcMixFormatter failed to load."),a||console.error("cssVariantFormatter failed to load.")),n&&e.registerFormat(n),a&&e.registerFormat(a);const l=path.resolve(s,"src","main","webapp",DESIGN_TOKENS_DIR_NAME,"temp-tokens"),d=groupFilesByMode(t),f=generateModeConfigs(d,s,n,a);let m="";try{console.log("\nSetting up foundation tokens symlink..."),await setupSymlink(o,l);for(const{mode:o,files:t}of f){console.log(`\nBuilding CSS for mode: ${o}...`);try{const n=getStyleDictionaryConfig(t,l,o,s);console.log(n,o);const i=new e(n);await i.buildPlatform("css"),console.log(`Style Dictionary build completed for mode: ${o}`),m=processCSSFiles(t,m),fs.writeFileSync(r,m),console.log(`CSS overrides generated successfully for mode: ${o}`)}catch(e){console.error(`Error during Style Dictionary build for mode: ${o}`,e)}}console.log("CODEGEN ANGULAR APP: generating overrides success !")}catch(e){console.error("Error setting up symlink or processing modes:",e)}finally{await removeSymlink(l)}})()}}};module.exports={generateOverrideCSS:generateOverrideCSS};