@wavemaker/angular-codegen 11.14.0-rc.6276 → 11.14.1-3.6306

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.14.0-rc.6276",
3
+ "version": "11.14.1-3.6306",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
@@ -36,12 +36,13 @@
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.0-rc.6276",
39
+ "@wavemaker/custom-widgets-m3": "11.14.1-3.6306",
40
40
  "@wavemaker/focus-trap": "1.0.1",
41
- "@wavemaker/foundation-css": "11.14.0-rc.6276",
42
- "@wavemaker/nvd3": "1.8.13",
43
- "@wavemaker/variables": "11.14.0-rc.6276",
41
+ "@wavemaker/foundation-css": "11.14.1-3.6306",
42
+ "@wavemaker/nvd3": "1.8.15",
43
+ "@wavemaker/variables": "11.14.1-3.6306",
44
44
  "@ztree/ztree_v3": "3.5.48",
45
+ "acorn": "^8.15.0",
45
46
  "angular-imask": "7.6.1",
46
47
  "angular2-websocket": "0.9.8",
47
48
  "d3": "7.8.5",
@@ -61,7 +62,7 @@
61
62
  "tslib": "2.8.1",
62
63
  "x2js": "3.4.4",
63
64
  "zone.js": "0.15.1",
64
- "@wavemaker/app-ng-runtime": "11.14.0-rc.6276"
65
+ "@wavemaker/app-ng-runtime": "11.14.1-3.6306"
65
66
  },
66
67
  "devDependencies": {
67
68
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -1,7 +1,5 @@
1
1
  const CompressionPlugin = require(`compression-webpack-plugin`);
2
2
  const path = require(`path`);
3
- const {ConcatSource} = require("webpack-sources");
4
-
5
3
  const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
6
4
 
7
5
  const wmPropertiesPath = path.join(__dirname, '/src/app/wmProperties.js');
@@ -12,65 +10,7 @@ const localesToKeep = Object.values(WMAppProperties.supportedLanguages)
12
10
  .map(lang => lang.moment)
13
11
  .filter(locale => locale !== null);
14
12
 
15
- const includeMomentPlugin = WMAppProperties.languageBundleSources === "STATIC";
16
-
17
- class ModifyCssAssetUrlsPlugin {
18
- apply(compiler) {
19
- compiler.hooks.compilation.tap('ModifyCssAssetUrlsPlugin', compilation => {
20
- compilation.hooks.optimizeAssets.tapAsync('ModifyCssAssetUrlsPlugin', (assets, callback) => {
21
- let publicPath = compilation.options.output.publicPath;
22
- let isResourceWithDeployUrl = false;
23
- for (const assetName in assets) {
24
- if (!assets.hasOwnProperty(assetName)) continue;
25
-
26
- const asset = assets[assetName];
27
- if (asset.sourceAndMap) {
28
- const sourceAndMap = asset.sourceAndMap();
29
- let updatedSource = sourceAndMap.source;
30
- // Handle potential non-string source (e.g., convert to string)
31
- if (typeof updatedSource !== 'string') {
32
- updatedSource = updatedSource.toString('utf-8');
33
- }
34
- let modifiedSource = updatedSource.replace(/url\((.*?)\)/g, (match, url) => {
35
- isResourceWithDeployUrl = true;
36
-
37
- let qUrl = url.slice(1, -1);
38
-
39
- if (!qUrl.startsWith(publicPath)) {
40
- return match;
41
- } else {
42
- const newUrl = this.modifyUrl(publicPath, qUrl);
43
- let urlString = `url('${newUrl}')`;
44
- return urlString;
45
- }
46
-
47
- });
48
- if (isResourceWithDeployUrl) {
49
- isResourceWithDeployUrl = false;
50
- assets[assetName] = new ConcatSource(modifiedSource);
51
- }
52
- }
53
- }
54
- callback(null, assets);
55
- });
56
- });
57
- }
58
-
59
- modifyUrl(publicPath, url) {
60
- let qUrl = url;
61
- let resourceName = qUrl;
62
- try {
63
- const parsedUrl = new URL(qUrl);
64
- resourceName = parsedUrl.pathname.split('/').pop();
65
- } catch (e) {
66
- //this is relative url
67
- let parts = qUrl.split('/');
68
- resourceName = parts[parts.length - 1];
69
- }
70
- let newUrl = `ng-bundle/${resourceName}`;
71
- return newUrl;
72
- }
73
- };
13
+ const includeMomentPlugin = WMAppProperties.languageBundleSources === "STATIC";
74
14
 
75
15
  module.exports = {
76
16
  resolve:{
@@ -79,7 +19,6 @@ module.exports = {
79
19
  }
80
20
  },
81
21
  plugins:[
82
- new ModifyCssAssetUrlsPlugin(),
83
22
  new CompressionPlugin({
84
23
  test: /\.(js|css|html|svg|txt|eot|otf|ttf|gif)$/,
85
24
  filename: "[name].gzip[ext]",
@@ -91,7 +30,7 @@ module.exports = {
91
30
  algorithm: "brotliCompress"
92
31
  }),
93
32
  // On STATIC WMAppProperties.languageBundleSources, required moment locales are included in the bundle
94
-
33
+
95
34
  /**
96
35
  * MomentLocalesPlugin is used to include only the required moment locales in the bundle.
97
36
  */