@wavemaker/angular-codegen 11.10.5-next.27901 → 11.10.5-rc.207

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.
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.10.5-next.27901",
3
+ "version": "11.10.5-rc.207",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-codegen",
9
- "version": "11.10.5-next.27901",
9
+ "version": "11.10.5-rc.207",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker/angular-app": "11.10.5-next.27901",
12
+ "@wavemaker/angular-app": "11.10.5-rc.207",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -463,13 +463,13 @@
463
463
  "license": "MIT"
464
464
  },
465
465
  "node_modules/@babel/generator": {
466
- "version": "7.26.10",
467
- "integrity": "sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang==",
466
+ "version": "7.27.0",
467
+ "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==",
468
468
  "dev": true,
469
469
  "license": "MIT",
470
470
  "dependencies": {
471
- "@babel/parser": "^7.26.10",
472
- "@babel/types": "^7.26.10",
471
+ "@babel/parser": "^7.27.0",
472
+ "@babel/types": "^7.27.0",
473
473
  "@jridgewell/gen-mapping": "^0.3.5",
474
474
  "@jridgewell/trace-mapping": "^0.3.25",
475
475
  "jsesc": "^3.0.2"
@@ -479,12 +479,12 @@
479
479
  }
480
480
  },
481
481
  "node_modules/@babel/helper-compilation-targets": {
482
- "version": "7.26.5",
483
- "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==",
482
+ "version": "7.27.0",
483
+ "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==",
484
484
  "dev": true,
485
485
  "license": "MIT",
486
486
  "dependencies": {
487
- "@babel/compat-data": "^7.26.5",
487
+ "@babel/compat-data": "^7.26.8",
488
488
  "@babel/helper-validator-option": "^7.25.9",
489
489
  "browserslist": "^4.24.0",
490
490
  "lru-cache": "^5.1.1",
@@ -561,25 +561,25 @@
561
561
  }
562
562
  },
563
563
  "node_modules/@babel/helpers": {
564
- "version": "7.26.10",
565
- "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",
564
+ "version": "7.27.0",
565
+ "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==",
566
566
  "dev": true,
567
567
  "license": "MIT",
568
568
  "dependencies": {
569
- "@babel/template": "^7.26.9",
570
- "@babel/types": "^7.26.10"
569
+ "@babel/template": "^7.27.0",
570
+ "@babel/types": "^7.27.0"
571
571
  },
572
572
  "engines": {
573
573
  "node": ">=6.9.0"
574
574
  }
575
575
  },
576
576
  "node_modules/@babel/parser": {
577
- "version": "7.26.10",
578
- "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
577
+ "version": "7.27.0",
578
+ "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==",
579
579
  "dev": true,
580
580
  "license": "MIT",
581
581
  "dependencies": {
582
- "@babel/types": "^7.26.10"
582
+ "@babel/types": "^7.27.0"
583
583
  },
584
584
  "bin": {
585
585
  "parser": "bin/babel-parser.js"
@@ -807,8 +807,8 @@
807
807
  }
808
808
  },
809
809
  "node_modules/@babel/runtime-corejs3": {
810
- "version": "7.26.10",
811
- "integrity": "sha512-uITFQYO68pMEYR46AHgQoyBg7KPPJDAbGn4jUTIRgCFJIp88MIBUianVOplhZDEec07bp9zIyr4Kp0FCyQzmWg==",
810
+ "version": "7.27.0",
811
+ "integrity": "sha512-UWjX6t+v+0ckwZ50Y5ShZLnlk95pP5MyW/pon9tiYzl3+18pkTHTFNTKr7rQbfRXPkowt2QAn30o1b6oswszew==",
812
812
  "license": "MIT",
813
813
  "dependencies": {
814
814
  "core-js-pure": "^3.30.2",
@@ -824,30 +824,30 @@
824
824
  "license": "MIT"
825
825
  },
826
826
  "node_modules/@babel/template": {
827
- "version": "7.26.9",
828
- "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",
827
+ "version": "7.27.0",
828
+ "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==",
829
829
  "dev": true,
830
830
  "license": "MIT",
831
831
  "dependencies": {
832
832
  "@babel/code-frame": "^7.26.2",
833
- "@babel/parser": "^7.26.9",
834
- "@babel/types": "^7.26.9"
833
+ "@babel/parser": "^7.27.0",
834
+ "@babel/types": "^7.27.0"
835
835
  },
836
836
  "engines": {
837
837
  "node": ">=6.9.0"
838
838
  }
839
839
  },
840
840
  "node_modules/@babel/traverse": {
841
- "version": "7.26.10",
842
- "integrity": "sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A==",
841
+ "version": "7.27.0",
842
+ "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==",
843
843
  "dev": true,
844
844
  "license": "MIT",
845
845
  "dependencies": {
846
846
  "@babel/code-frame": "^7.26.2",
847
- "@babel/generator": "^7.26.10",
848
- "@babel/parser": "^7.26.10",
849
- "@babel/template": "^7.26.9",
850
- "@babel/types": "^7.26.10",
847
+ "@babel/generator": "^7.27.0",
848
+ "@babel/parser": "^7.27.0",
849
+ "@babel/template": "^7.27.0",
850
+ "@babel/types": "^7.27.0",
851
851
  "debug": "^4.3.1",
852
852
  "globals": "^11.1.0"
853
853
  },
@@ -879,8 +879,8 @@
879
879
  "license": "MIT"
880
880
  },
881
881
  "node_modules/@babel/types": {
882
- "version": "7.26.10",
883
- "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
882
+ "version": "7.27.0",
883
+ "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==",
884
884
  "dev": true,
885
885
  "license": "MIT",
886
886
  "dependencies": {
@@ -1474,8 +1474,8 @@
1474
1474
  }
1475
1475
  },
1476
1476
  "node_modules/@types/babel__traverse": {
1477
- "version": "7.20.6",
1478
- "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==",
1477
+ "version": "7.20.7",
1478
+ "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==",
1479
1479
  "dev": true,
1480
1480
  "license": "MIT",
1481
1481
  "dependencies": {
@@ -1518,8 +1518,8 @@
1518
1518
  }
1519
1519
  },
1520
1520
  "node_modules/@types/node": {
1521
- "version": "22.13.11",
1522
- "integrity": "sha512-iEUCUJoU0i3VnrCmgoWCXttklWcvoCIx4jzcP22fioIVSdTmjgoEvmAO/QPw6TcS9k5FrNgn4w7q5lGOd1CT5g==",
1521
+ "version": "22.13.14",
1522
+ "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==",
1523
1523
  "license": "MIT",
1524
1524
  "dependencies": {
1525
1525
  "undici-types": "~6.20.0"
@@ -1552,8 +1552,8 @@
1552
1552
  "license": "MIT"
1553
1553
  },
1554
1554
  "node_modules/@wavemaker/angular-app": {
1555
- "version": "11.10.5-next.27901",
1556
- "integrity": "sha512-+1hgOlq7K/ARWCntD/65ymqDNB2CjBAuX7Blq4QlYm2K39iK/u8MRk4R5pu8ZWH0fUPHulvrRnOyPGWkF9cCxA==",
1555
+ "version": "11.10.5-rc.207",
1556
+ "integrity": "sha512-jHCOxre8IiwfUYRITB6LP8o07jy7JXahe68ou3t4KKjkay7mkv29Pm0RlPtmg4J88L21Qzax34bvZSmRGg92Mg==",
1557
1557
  "dependencies": {
1558
1558
  "@angular/animations": "18.2.13",
1559
1559
  "@angular/common": "18.2.13",
@@ -1581,12 +1581,12 @@
1581
1581
  "@awesome-cordova-plugins/vibration": "5.39.1",
1582
1582
  "@babel/runtime": "7.14.8",
1583
1583
  "@metrichor/jmespath": "0.3.1",
1584
- "@wavemaker/app-ng-runtime": "11.10.5-next.27901",
1585
- "@wavemaker/custom-widgets-m3": "11.10.5-next.27901",
1584
+ "@wavemaker/app-ng-runtime": "11.10.5-rc.207",
1585
+ "@wavemaker/custom-widgets-m3": "11.10.5-rc.207",
1586
1586
  "@wavemaker/focus-trap": "1.0.1",
1587
- "@wavemaker/foundation-css": "11.10.5-next.27901",
1587
+ "@wavemaker/foundation-css": "11.10.5-rc.207",
1588
1588
  "@wavemaker/nvd3": "1.8.12",
1589
- "@wavemaker/variables": "11.10.5-next.27901",
1589
+ "@wavemaker/variables": "11.10.5-rc.207",
1590
1590
  "@ztree/ztree_v3": "3.5.48",
1591
1591
  "angular-imask": "^7.6.1",
1592
1592
  "angular2-websocket": "0.9.7",
@@ -1626,8 +1626,8 @@
1626
1626
  }
1627
1627
  },
1628
1628
  "node_modules/@wavemaker/app-ng-runtime": {
1629
- "version": "11.10.5-next.27901",
1630
- "integrity": "sha512-r4MkdnNex8IQp4eq73rQ4pwhJypBCJwmNZcefD1flOTpdQsB2qNGNnOSv+Q9MCjgVW/zJpnqGxepSMXmtkH1vQ==",
1629
+ "version": "11.10.5-rc.207",
1630
+ "integrity": "sha512-SuU4j/35+6352XJQGg3gCBhnCXRaaUd0UgjrA7e+kpiarxE3D44rJw9W1sVIL11KAA0VNsy791ZpPXaPji5bQQ==",
1631
1631
  "license": "MIT",
1632
1632
  "engines": {
1633
1633
  "node": ">=18.16.1",
@@ -1635,8 +1635,8 @@
1635
1635
  }
1636
1636
  },
1637
1637
  "node_modules/@wavemaker/custom-widgets-m3": {
1638
- "version": "11.10.5-next.27901",
1639
- "integrity": "sha512-oM2xudUdYQVRTJvD0M03qMeELaR6b5UVRoulF4HKjIBG+sMTr+mBQpXvZqP+6flozNX73mJF41wMRbg/2qo4WA==",
1638
+ "version": "11.10.5-rc.207",
1639
+ "integrity": "sha512-94S9lOAsfqj1dV5TS923bhHrzUcossTOzlJF+S9hVNT1D7Fv9r6WPn4ckylV5Oh8qjid5PnlCCk64YD2DYiMPA==",
1640
1640
  "license": "ISC"
1641
1641
  },
1642
1642
  "node_modules/@wavemaker/focus-trap": {
@@ -1649,8 +1649,8 @@
1649
1649
  }
1650
1650
  },
1651
1651
  "node_modules/@wavemaker/foundation-css": {
1652
- "version": "11.10.5-next.27901",
1653
- "integrity": "sha512-SugzI6JSROmyuleKIM4NTOKzuID8BQG9fVoduU/iyc+UswMT8qeRf9OmrV0dnohvIJ5pc5/tHCFhi2y9ZNv0aQ==",
1652
+ "version": "11.10.5-rc.207",
1653
+ "integrity": "sha512-ckC2Fx3iFLAFqVDOuY/BjcucX7HWp4PNdZKHRmCtAnLHnJocRddxsroYP0IJuo6UawYpGQrrwoOXwzD4tMpa9w==",
1654
1654
  "license": "ISC",
1655
1655
  "dependencies": {
1656
1656
  "chroma-js": "^3.1.2"
@@ -1665,8 +1665,8 @@
1665
1665
  }
1666
1666
  },
1667
1667
  "node_modules/@wavemaker/variables": {
1668
- "version": "11.10.5-next.27901",
1669
- "integrity": "sha512-/iuJhF7rRsfDTHmTkUS31dcaOtQE8HlEd8G+7mOmhzb4FsAS+Km56cWvR3OU19610XZVC8IcdyQ/gT8pypTgqg==",
1668
+ "version": "11.10.5-rc.207",
1669
+ "integrity": "sha512-IraeWzCkCzQzRqYMFUgDvUZ9X8+lwlHDnDcP094Ta1bwYuySK7ItYn0hqbOrqCv2s/gvVNPTfdAaFs+GlA/R7A==",
1670
1670
  "license": "ISC",
1671
1671
  "dependencies": {
1672
1672
  "@metrichor/jmespath": "^0.3.1",
@@ -3422,8 +3422,8 @@
3422
3422
  "license": "MIT"
3423
3423
  },
3424
3424
  "node_modules/electron-to-chromium": {
3425
- "version": "1.5.123",
3426
- "integrity": "sha512-refir3NlutEZqlKaBLK0tzlVLe5P2wDKS7UQt/3SpibizgsRAPOsqQC3ffw1nlv3ze5gjRQZYHoPymgVZkplFA==",
3425
+ "version": "1.5.128",
3426
+ "integrity": "sha512-bo1A4HH/NS522Ws0QNFIzyPcyUUNV/yyy70Ho1xqfGYzPUme2F/xr4tlEOuM6/A538U1vDA7a4XfCd1CKRegKQ==",
3427
3427
  "dev": true,
3428
3428
  "license": "ISC"
3429
3429
  },
@@ -5965,8 +5965,8 @@
5965
5965
  }
5966
5966
  },
5967
5967
  "node_modules/nwsapi": {
5968
- "version": "2.2.19",
5969
- "integrity": "sha512-94bcyI3RsqiZufXjkr3ltkI86iEl+I7uiHVDtcq9wJUTwYQJ5odHDeSzkkrRzi80jJ8MaeZgqKjH1bAWAFw9bA==",
5968
+ "version": "2.2.20",
5969
+ "integrity": "sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA==",
5970
5970
  "dev": true,
5971
5971
  "license": "MIT"
5972
5972
  },
@@ -6336,8 +6336,8 @@
6336
6336
  }
6337
6337
  },
6338
6338
  "node_modules/pirates": {
6339
- "version": "4.0.6",
6340
- "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==",
6339
+ "version": "4.0.7",
6340
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
6341
6341
  "dev": true,
6342
6342
  "license": "MIT",
6343
6343
  "engines": {
package/package-lock.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.10.5-next.27901",
3
+ "version": "11.10.5-rc.207",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-codegen",
9
- "version": "11.10.5-next.27901",
9
+ "version": "11.10.5-rc.207",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@wavemaker/angular-app": "11.10.5-next.27901",
12
+ "@wavemaker/angular-app": "11.10.5-rc.207",
13
13
  "archiver": "^7.0.1",
14
14
  "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
@@ -463,13 +463,13 @@
463
463
  "license": "MIT"
464
464
  },
465
465
  "node_modules/@babel/generator": {
466
- "version": "7.26.10",
467
- "integrity": "sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang==",
466
+ "version": "7.27.0",
467
+ "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==",
468
468
  "dev": true,
469
469
  "license": "MIT",
470
470
  "dependencies": {
471
- "@babel/parser": "^7.26.10",
472
- "@babel/types": "^7.26.10",
471
+ "@babel/parser": "^7.27.0",
472
+ "@babel/types": "^7.27.0",
473
473
  "@jridgewell/gen-mapping": "^0.3.5",
474
474
  "@jridgewell/trace-mapping": "^0.3.25",
475
475
  "jsesc": "^3.0.2"
@@ -479,12 +479,12 @@
479
479
  }
480
480
  },
481
481
  "node_modules/@babel/helper-compilation-targets": {
482
- "version": "7.26.5",
483
- "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==",
482
+ "version": "7.27.0",
483
+ "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==",
484
484
  "dev": true,
485
485
  "license": "MIT",
486
486
  "dependencies": {
487
- "@babel/compat-data": "^7.26.5",
487
+ "@babel/compat-data": "^7.26.8",
488
488
  "@babel/helper-validator-option": "^7.25.9",
489
489
  "browserslist": "^4.24.0",
490
490
  "lru-cache": "^5.1.1",
@@ -561,25 +561,25 @@
561
561
  }
562
562
  },
563
563
  "node_modules/@babel/helpers": {
564
- "version": "7.26.10",
565
- "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",
564
+ "version": "7.27.0",
565
+ "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==",
566
566
  "dev": true,
567
567
  "license": "MIT",
568
568
  "dependencies": {
569
- "@babel/template": "^7.26.9",
570
- "@babel/types": "^7.26.10"
569
+ "@babel/template": "^7.27.0",
570
+ "@babel/types": "^7.27.0"
571
571
  },
572
572
  "engines": {
573
573
  "node": ">=6.9.0"
574
574
  }
575
575
  },
576
576
  "node_modules/@babel/parser": {
577
- "version": "7.26.10",
578
- "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
577
+ "version": "7.27.0",
578
+ "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==",
579
579
  "dev": true,
580
580
  "license": "MIT",
581
581
  "dependencies": {
582
- "@babel/types": "^7.26.10"
582
+ "@babel/types": "^7.27.0"
583
583
  },
584
584
  "bin": {
585
585
  "parser": "bin/babel-parser.js"
@@ -807,8 +807,8 @@
807
807
  }
808
808
  },
809
809
  "node_modules/@babel/runtime-corejs3": {
810
- "version": "7.26.10",
811
- "integrity": "sha512-uITFQYO68pMEYR46AHgQoyBg7KPPJDAbGn4jUTIRgCFJIp88MIBUianVOplhZDEec07bp9zIyr4Kp0FCyQzmWg==",
810
+ "version": "7.27.0",
811
+ "integrity": "sha512-UWjX6t+v+0ckwZ50Y5ShZLnlk95pP5MyW/pon9tiYzl3+18pkTHTFNTKr7rQbfRXPkowt2QAn30o1b6oswszew==",
812
812
  "license": "MIT",
813
813
  "dependencies": {
814
814
  "core-js-pure": "^3.30.2",
@@ -824,30 +824,30 @@
824
824
  "license": "MIT"
825
825
  },
826
826
  "node_modules/@babel/template": {
827
- "version": "7.26.9",
828
- "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",
827
+ "version": "7.27.0",
828
+ "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==",
829
829
  "dev": true,
830
830
  "license": "MIT",
831
831
  "dependencies": {
832
832
  "@babel/code-frame": "^7.26.2",
833
- "@babel/parser": "^7.26.9",
834
- "@babel/types": "^7.26.9"
833
+ "@babel/parser": "^7.27.0",
834
+ "@babel/types": "^7.27.0"
835
835
  },
836
836
  "engines": {
837
837
  "node": ">=6.9.0"
838
838
  }
839
839
  },
840
840
  "node_modules/@babel/traverse": {
841
- "version": "7.26.10",
842
- "integrity": "sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A==",
841
+ "version": "7.27.0",
842
+ "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==",
843
843
  "dev": true,
844
844
  "license": "MIT",
845
845
  "dependencies": {
846
846
  "@babel/code-frame": "^7.26.2",
847
- "@babel/generator": "^7.26.10",
848
- "@babel/parser": "^7.26.10",
849
- "@babel/template": "^7.26.9",
850
- "@babel/types": "^7.26.10",
847
+ "@babel/generator": "^7.27.0",
848
+ "@babel/parser": "^7.27.0",
849
+ "@babel/template": "^7.27.0",
850
+ "@babel/types": "^7.27.0",
851
851
  "debug": "^4.3.1",
852
852
  "globals": "^11.1.0"
853
853
  },
@@ -879,8 +879,8 @@
879
879
  "license": "MIT"
880
880
  },
881
881
  "node_modules/@babel/types": {
882
- "version": "7.26.10",
883
- "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
882
+ "version": "7.27.0",
883
+ "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==",
884
884
  "dev": true,
885
885
  "license": "MIT",
886
886
  "dependencies": {
@@ -1474,8 +1474,8 @@
1474
1474
  }
1475
1475
  },
1476
1476
  "node_modules/@types/babel__traverse": {
1477
- "version": "7.20.6",
1478
- "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==",
1477
+ "version": "7.20.7",
1478
+ "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==",
1479
1479
  "dev": true,
1480
1480
  "license": "MIT",
1481
1481
  "dependencies": {
@@ -1518,8 +1518,8 @@
1518
1518
  }
1519
1519
  },
1520
1520
  "node_modules/@types/node": {
1521
- "version": "22.13.11",
1522
- "integrity": "sha512-iEUCUJoU0i3VnrCmgoWCXttklWcvoCIx4jzcP22fioIVSdTmjgoEvmAO/QPw6TcS9k5FrNgn4w7q5lGOd1CT5g==",
1521
+ "version": "22.13.14",
1522
+ "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==",
1523
1523
  "license": "MIT",
1524
1524
  "dependencies": {
1525
1525
  "undici-types": "~6.20.0"
@@ -1552,8 +1552,8 @@
1552
1552
  "license": "MIT"
1553
1553
  },
1554
1554
  "node_modules/@wavemaker/angular-app": {
1555
- "version": "11.10.5-next.27901",
1556
- "integrity": "sha512-+1hgOlq7K/ARWCntD/65ymqDNB2CjBAuX7Blq4QlYm2K39iK/u8MRk4R5pu8ZWH0fUPHulvrRnOyPGWkF9cCxA==",
1555
+ "version": "11.10.5-rc.207",
1556
+ "integrity": "sha512-jHCOxre8IiwfUYRITB6LP8o07jy7JXahe68ou3t4KKjkay7mkv29Pm0RlPtmg4J88L21Qzax34bvZSmRGg92Mg==",
1557
1557
  "dependencies": {
1558
1558
  "@angular/animations": "18.2.13",
1559
1559
  "@angular/common": "18.2.13",
@@ -1581,12 +1581,12 @@
1581
1581
  "@awesome-cordova-plugins/vibration": "5.39.1",
1582
1582
  "@babel/runtime": "7.14.8",
1583
1583
  "@metrichor/jmespath": "0.3.1",
1584
- "@wavemaker/app-ng-runtime": "11.10.5-next.27901",
1585
- "@wavemaker/custom-widgets-m3": "11.10.5-next.27901",
1584
+ "@wavemaker/app-ng-runtime": "11.10.5-rc.207",
1585
+ "@wavemaker/custom-widgets-m3": "11.10.5-rc.207",
1586
1586
  "@wavemaker/focus-trap": "1.0.1",
1587
- "@wavemaker/foundation-css": "11.10.5-next.27901",
1587
+ "@wavemaker/foundation-css": "11.10.5-rc.207",
1588
1588
  "@wavemaker/nvd3": "1.8.12",
1589
- "@wavemaker/variables": "11.10.5-next.27901",
1589
+ "@wavemaker/variables": "11.10.5-rc.207",
1590
1590
  "@ztree/ztree_v3": "3.5.48",
1591
1591
  "angular-imask": "^7.6.1",
1592
1592
  "angular2-websocket": "0.9.7",
@@ -1626,8 +1626,8 @@
1626
1626
  }
1627
1627
  },
1628
1628
  "node_modules/@wavemaker/app-ng-runtime": {
1629
- "version": "11.10.5-next.27901",
1630
- "integrity": "sha512-r4MkdnNex8IQp4eq73rQ4pwhJypBCJwmNZcefD1flOTpdQsB2qNGNnOSv+Q9MCjgVW/zJpnqGxepSMXmtkH1vQ==",
1629
+ "version": "11.10.5-rc.207",
1630
+ "integrity": "sha512-SuU4j/35+6352XJQGg3gCBhnCXRaaUd0UgjrA7e+kpiarxE3D44rJw9W1sVIL11KAA0VNsy791ZpPXaPji5bQQ==",
1631
1631
  "license": "MIT",
1632
1632
  "engines": {
1633
1633
  "node": ">=18.16.1",
@@ -1635,8 +1635,8 @@
1635
1635
  }
1636
1636
  },
1637
1637
  "node_modules/@wavemaker/custom-widgets-m3": {
1638
- "version": "11.10.5-next.27901",
1639
- "integrity": "sha512-oM2xudUdYQVRTJvD0M03qMeELaR6b5UVRoulF4HKjIBG+sMTr+mBQpXvZqP+6flozNX73mJF41wMRbg/2qo4WA==",
1638
+ "version": "11.10.5-rc.207",
1639
+ "integrity": "sha512-94S9lOAsfqj1dV5TS923bhHrzUcossTOzlJF+S9hVNT1D7Fv9r6WPn4ckylV5Oh8qjid5PnlCCk64YD2DYiMPA==",
1640
1640
  "license": "ISC"
1641
1641
  },
1642
1642
  "node_modules/@wavemaker/focus-trap": {
@@ -1649,8 +1649,8 @@
1649
1649
  }
1650
1650
  },
1651
1651
  "node_modules/@wavemaker/foundation-css": {
1652
- "version": "11.10.5-next.27901",
1653
- "integrity": "sha512-SugzI6JSROmyuleKIM4NTOKzuID8BQG9fVoduU/iyc+UswMT8qeRf9OmrV0dnohvIJ5pc5/tHCFhi2y9ZNv0aQ==",
1652
+ "version": "11.10.5-rc.207",
1653
+ "integrity": "sha512-ckC2Fx3iFLAFqVDOuY/BjcucX7HWp4PNdZKHRmCtAnLHnJocRddxsroYP0IJuo6UawYpGQrrwoOXwzD4tMpa9w==",
1654
1654
  "license": "ISC",
1655
1655
  "dependencies": {
1656
1656
  "chroma-js": "^3.1.2"
@@ -1665,8 +1665,8 @@
1665
1665
  }
1666
1666
  },
1667
1667
  "node_modules/@wavemaker/variables": {
1668
- "version": "11.10.5-next.27901",
1669
- "integrity": "sha512-/iuJhF7rRsfDTHmTkUS31dcaOtQE8HlEd8G+7mOmhzb4FsAS+Km56cWvR3OU19610XZVC8IcdyQ/gT8pypTgqg==",
1668
+ "version": "11.10.5-rc.207",
1669
+ "integrity": "sha512-IraeWzCkCzQzRqYMFUgDvUZ9X8+lwlHDnDcP094Ta1bwYuySK7ItYn0hqbOrqCv2s/gvVNPTfdAaFs+GlA/R7A==",
1670
1670
  "license": "ISC",
1671
1671
  "dependencies": {
1672
1672
  "@metrichor/jmespath": "^0.3.1",
@@ -3422,8 +3422,8 @@
3422
3422
  "license": "MIT"
3423
3423
  },
3424
3424
  "node_modules/electron-to-chromium": {
3425
- "version": "1.5.123",
3426
- "integrity": "sha512-refir3NlutEZqlKaBLK0tzlVLe5P2wDKS7UQt/3SpibizgsRAPOsqQC3ffw1nlv3ze5gjRQZYHoPymgVZkplFA==",
3425
+ "version": "1.5.128",
3426
+ "integrity": "sha512-bo1A4HH/NS522Ws0QNFIzyPcyUUNV/yyy70Ho1xqfGYzPUme2F/xr4tlEOuM6/A538U1vDA7a4XfCd1CKRegKQ==",
3427
3427
  "dev": true,
3428
3428
  "license": "ISC"
3429
3429
  },
@@ -5965,8 +5965,8 @@
5965
5965
  }
5966
5966
  },
5967
5967
  "node_modules/nwsapi": {
5968
- "version": "2.2.19",
5969
- "integrity": "sha512-94bcyI3RsqiZufXjkr3ltkI86iEl+I7uiHVDtcq9wJUTwYQJ5odHDeSzkkrRzi80jJ8MaeZgqKjH1bAWAFw9bA==",
5968
+ "version": "2.2.20",
5969
+ "integrity": "sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA==",
5970
5970
  "dev": true,
5971
5971
  "license": "MIT"
5972
5972
  },
@@ -6336,8 +6336,8 @@
6336
6336
  }
6337
6337
  },
6338
6338
  "node_modules/pirates": {
6339
- "version": "4.0.6",
6340
- "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==",
6339
+ "version": "4.0.7",
6340
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
6341
6341
  "dev": true,
6342
6342
  "license": "MIT",
6343
6343
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.10.5-next.27901",
3
+ "version": "11.10.5-rc.207",
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.10.5-next.27901",
18
+ "@wavemaker/angular-app": "11.10.5-rc.207",
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 fs=require("fs"),path=require("path"),{spawnSync:spawnSync}=require("child_process"),codegenCLI=require("./codegen-cli"),{generateRandomHash:generateRandomHash}=require("./wm-utils"),argv=require("yargs").usage("Usage: $0 -s [wavemaker project path] -t [target location] [-c] [-g]").options({deploy_url:{alias:"d",type:"string"},generate_page:{type:"string"},source:{alias:"s",describe:"source project web-app path",type:"string"},target:{alias:"t",describe:"target directory",type:"string"},codegenPath:{describe:"Codegen installation path",type:"string"},pwa:{describe:"Toggle pwa capability",type:"boolean",default:!1},spa:{describe:"Toggle single page application behaviour",type:"boolean",default:!1}}).demandOption(["source","target"],"please provide source project and target directory paths").help().argv,execCommand=async e=>{try{const a=spawnSync(e,{stdio:"inherit",shell:!0});0===a.status?console.log(`Executed the command - ${e} - successfully!`):(console.error("Error during command - ",a.error||a.stderr),process.exit(1))}catch(e){throw console.error(`Synchronous error - ${e}`),e}},setAppRuntimeVersion=async e=>{const a=fs.readFileSync(path.resolve(`${e}/pom.xml`),"utf8");let r="",n=a.indexOf("<wavemaker.app.runtime.ui.version>"),t=a.indexOf("</wavemaker.app.runtime.ui.version>");n&&t&&(n+="<wavemaker.app.runtime.ui.version>".length,r=a.substr(n,t-n).trim()),global.appRuntimeVersion=r,console.log(`App RuntimeVersion : ${global.appRuntimeVersion}`)},invokeMaven=async e=>{let a=-1===global.appRuntimeVersion.indexOf("next")?"mvn clean process-classes":"mvn clean process-classes -Pwavemaker-internal";await execCommand(`cd ${e} && ${a}`)},init=async()=>{await setAppRuntimeVersion(argv.source),global.randomHash=generateRandomHash(),await invokeMaven(argv.source),argv.generate_page&&await codegenCLI.generatePage(argv.source,argv.target,argv.generate_page,argv.codegenPath,argv.csp),argv.generate_page||(argv.deploy_url=argv.deploy_url?`${argv.deploy_url}/ng-bundle/${global.randomHash}/`:`ng-bundle/${global.randomHash}/`,await codegenCLI.generateCodegenAngularApp(argv.source,argv.target,argv.deploy_url,argv.pwa,argv.codegenPath,argv.csp,argv.spa))};init();
1
+ const fs=require("fs"),path=require("path"),{spawnSync:spawnSync}=require("child_process"),codegenCLI=require("./codegen-cli"),{generateRandomHash:generateRandomHash}=require("./wm-utils"),argv=require("yargs").usage("Usage: $0 -s [wavemaker project path] -t [target location] [-c] [-g]").options({deploy_url:{alias:"d",type:"string"},generate_page:{type:"string"},source:{alias:"s",describe:"source project web-app path",type:"string"},target:{alias:"t",describe:"target directory",type:"string"},codegenPath:{describe:"Codegen installation path",type:"string"},pwa:{describe:"Toggle pwa capability",type:"boolean",default:!1},spa:{describe:"Toggle single page application behaviour",type:"boolean",default:!1}}).demandOption(["source","target"],"please provide source project and target directory paths").help().argv,execCommand=async e=>{try{const a=spawnSync(e,{stdio:"inherit",shell:!0});0===a.status?console.log(`Executed the command - ${e} - successfully!`):(console.error("Error during command - ",a.error||a.stderr),process.exit(1))}catch(e){throw console.error(`Synchronous error - ${e}`),e}},setAppRuntimeVersion=async e=>{const a=fs.readFileSync(path.resolve(`${e}/pom.xml`),"utf8");let r="",t=a.indexOf("<wavemaker.app.runtime.ui.version>"),n=a.indexOf("</wavemaker.app.runtime.ui.version>");t&&n&&(t+="<wavemaker.app.runtime.ui.version>".length,r=a.substr(t,n-t).trim()),global.appRuntimeVersion=r,console.log(`App RuntimeVersion : ${global.appRuntimeVersion}`)},invokeMaven=async e=>{},init=async()=>{await setAppRuntimeVersion(argv.source),global.randomHash=generateRandomHash(),argv.generate_page&&await codegenCLI.generatePage(argv.source,argv.target,argv.generate_page,argv.codegenPath,argv.csp),argv.generate_page||(argv.deploy_url=argv.deploy_url?`${argv.deploy_url}/ng-bundle/${global.randomHash}/`:`ng-bundle/${global.randomHash}/`,await codegenCLI.generateCodegenAngularApp(argv.source,argv.target,argv.deploy_url,argv.pwa,argv.codegenPath,argv.csp,argv.spa))};init();
@@ -1 +1 @@
1
- const path=require("path"),fs=require("fs"),{downloadNPMPackage:downloadNPMPackage}=require("../download-packages"),{isPrismProject:isPrismProject}=require("./wm-utils"),{getWmProjectProperties:getWmProjectProperties}=require("./project-meta"),groupFilesByMode=e=>{const s={default:[]};return fs.readdirSync(e).forEach(o=>{const r=path.join(e,o),t=fs.statSync(r);if(t.isDirectory()){const e=groupFilesByMode(r);for(const o in e)s[o]||(s[o]=[]),s[o].push(...e[o])}else if(t.isFile()&&".json"===path.extname(r)){const e=o.match(/\.([^.]+)\.json$/);if(e){const o=e[1];s[o]||(s[o]=[]),s[o].push(r)}else s.default.push(r)}}),s},generateModeConfigs=(e,s,o)=>{const r=o&&o.name||"css/variables",t=[];for(const o in e){const n=e[o].map(e=>{return{destination:e.replace(s+"/","").replace(/\.json$/,".css"),options:{outputReferences:!0,selector:":root"},format:r,filter:s=>e.includes(s.filePath)}});t.push({mode:o,files:n})}return t},accessFile=e=>{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)=>{let r="";return{source:[r="default"===o?"src/main/webapp/themes/overrides/**/!(*.*).json":`src/main/webapp/themes/overrides/**/*.${o}.json`],include:[path.join(s,"**","!(*.dark|*.light).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 getCssVarCalcMixFormatter(e,s){try{const o=await import(`${e}/node_modules/style-dictionary/lib/utils/index.js`),{usesReferences:r,getReferences:t}=o,{cssVarCalcMixFormatter:n}=await import(`${s}/node_modules/@wavemaker/foundation-css/utils/style-dictionary-utils.js`);return n(r,t)}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"),r=/(:root\s*\{[^}]*\})/,t=path.basename(o).split(".");let n=e;if(3===t.length&&"light"!==t[1]){const o=t[0],r=t[1];s+=(n=e.replace(/:root/g,`:root[${o}='${r}']`))+"\n"}else{const o=s.match(r),t=e.match(r);if(o&&t){const e=o[1],r=t[1].replace(/:root\s*\{|\}/g,"").trim(),n=e.replace("}",`\n${r}\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)=>{const r=await getWmProjectProperties(s);if(isPrismProject(r)&&(e.generateOverrideCSS||"angular"===e.buildType)){const r=path.join(s+"/src/main/webapp/themes","overrides"),t=s+"/src/main/webapp/themes/app.override.css";if(accessFile(t),fs.existsSync(r)){console.log("CODEGEN ANGULAR APP: generating override css...");let n={scope:"@wavemaker",name:"style-dictionary",version:e.runtimeUIVersion,packageJsonFile:"",successMsg:"STYLE DICTIONARY SUCCESS",infoMsg:"STYLE DICTIONARY PACKAGE : ",skipPackageVersion:!0};n.baseDir=o;const i=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=downloadNPMPackage(a);console.log("FOUNDATION_CSS_PATH",c),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/tokens"),n=await getCssVarCalcMixFormatter(i,c);n&&e.registerFormat(n);const a=path.join("src","main","webapp","themes","temp-tokens"),l=groupFilesByMode(r),m=generateModeConfigs(l,s,n);let d="";try{console.log("\nSetting up foundation tokens symlink..."),await setupSymlink(o,a);for(const{mode:s,files:o}of m){console.log(`\nBuilding CSS for mode: ${s}...`);try{const r=getStyleDictionaryConfig(o,a,s);console.log(r,s);const n=new e(r);await n.buildPlatform("css"),console.log(`Style Dictionary build completed for mode: ${s}`),d=processCSSFiles(o,d),fs.writeFileSync(t,d),console.log(`CSS overrides generated successfully for mode: ${s}`)}catch(e){console.error(`Error during Style Dictionary build for mode: ${s}`,e)}}console.log("CODEGEN ANGULAR APP: generating overrides success !")}catch(e){console.error("Error setting up symlink or processing modes:",e)}finally{await removeSymlink(a)}})()}}};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"),{getWmProjectProperties:getWmProjectProperties}=require("./project-meta"),groupFilesByMode=e=>{const s={default:[]};return fs.readdirSync(e).forEach(o=>{const r=path.join(e,o),t=fs.statSync(r);if(t.isDirectory()){const e=groupFilesByMode(r);for(const o in e)s[o]||(s[o]=[]),s[o].push(...e[o])}else if(t.isFile()&&".json"===path.extname(r)){const e=o.match(/\.([^.]+)\.json$/);if(e){const o=e[1];s[o]||(s[o]=[]),s[o].push(r)}else s.default.push(r)}}),s},generateModeConfigs=(e,s,o)=>{const r=o&&o.name||"css/variables",t=[];for(const o in e){const n=e[o].map(e=>{return{destination:e.replace(s+"/","").replace(/\.json$/,".css"),options:{outputReferences:!0,selector:":root"},format:r,filter:function(s){var o,r=(o=s["@"]&&s["@"].filePath?s["@"].filePath:s.filePath)&&-1!==o.indexOf("overrides")||s.filePath&&-1!==s.filePath.indexOf("overrides"),t=o&&(e.includes(o)||e.includes(s.filePath));return r&&t}}});t.push({mode:o,files:n})}return t},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)=>{let r="";return{source:[r="default"===o?`src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/!(*.*).json`:`src/main/webapp/${OVERRIDE_TOKENS_PATH}/**/*.${o}.json`],include:[path.join(s,"**","!(*.dark|*.light).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 getCssVarCalcMixFormatter(e,s){try{const o=await import(`${e}/node_modules/style-dictionary/lib/utils/index.js`),{usesReferences:r,getReferences:t}=o,{cssVarCalcMixFormatter:n}=await import(`${s}/node_modules/@wavemaker/foundation-css/utils/style-dictionary-utils.js`);return n(r,t)}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"),r=/(:root\s*\{[^}]*\})/,t=path.basename(o).split(".");let n=e;if(3===t.length&&"light"!==t[1]){const o=t[0],r=t[1];s+=(n=e.replace(/:root/g,`:root[${o}='${r}']`))+"\n"}else{const o=s.match(r),t=e.match(r);if(o&&t){const e=o[1],r=t[1].replace(/:root\s*\{|\}/g,"").trim(),n=e.replace("}",`\n${r}\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)=>{const r=await getWmProjectProperties(s);if(isPrismProject(r)&&(e.generateOverrideCSS||"angular"===e.buildType)){const r=path.join(s+"/src/main/webapp/",OVERRIDE_TOKENS_PATH),t=s+`/src/main/webapp/${APP_OVERRIDE_CSS_PATH}`;if(accessFile(t),fs.existsSync(r)){console.log("CODEGEN ANGULAR APP: generating override css...");let n={scope:"@wavemaker",name:"style-dictionary",version:e.runtimeUIVersion,packageJsonFile:"",successMsg:"STYLE DICTIONARY SUCCESS",infoMsg:"STYLE DICTIONARY PACKAGE : ",skipPackageVersion:!0};n.baseDir=o;const i=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=downloadNPMPackage(a);console.log("FOUNDATION_CSS_PATH",c),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/tokens"),n=await getCssVarCalcMixFormatter(i,c);n&&e.registerFormat(n);const a=`src/main/webapp/${DESIGN_TOKENS_DIR_NAME}/temp-tokens`,l=groupFilesByMode(r),f=generateModeConfigs(l,s,n);let d="";try{console.log("\nSetting up foundation tokens symlink..."),await setupSymlink(o,a);for(const{mode:s,files:o}of f){console.log(`\nBuilding CSS for mode: ${s}...`);try{const r=getStyleDictionaryConfig(o,a,s);console.log(r,s);const n=new e(r);await n.buildPlatform("css"),console.log(`Style Dictionary build completed for mode: ${s}`),d=processCSSFiles(o,d),fs.writeFileSync(t,d),console.log(`CSS overrides generated successfully for mode: ${s}`)}catch(e){console.error(`Error during Style Dictionary build for mode: ${s}`,e)}}console.log("CODEGEN ANGULAR APP: generating overrides success !")}catch(e){console.error("Error setting up symlink or processing modes:",e)}finally{await removeSymlink(a)}})()}}};module.exports={generateOverrideCSS:generateOverrideCSS};