@wavemaker/angular-app 11.8.0-rc.5775 → 11.10.0-next.25079
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.json +48 -10
- package/build-scripts/post-build.js +2 -0
- package/build-scripts/update-version.js +24 -0
- package/dependencies/custom-widgets-bundle.cjs.js +415 -0
- package/dependencies/expression-parser.cjs.js +13909 -17363
- package/dependencies/pipe-provider.cjs.js +38224 -37600
- package/dependencies/transpilation-mobile.cjs.js +23874 -23476
- package/dependencies/transpilation-web.cjs.js +23891 -23492
- package/dependency-report.html +124 -0
- package/generate-dependency-report.js +240 -0
- package/npm-shrinkwrap.json +25409 -0
- package/package-lock.json +14723 -14365
- package/package.json +44 -30
- package/src/framework/services/customwidget-config-provider.service.ts +13 -0
- package/src/framework/util/page-util.ts +3 -1
- package/src/main.ts +37 -0
- package/src/setup-jest.js +1 -0
- package/tsconfig.json +37 -44
package/angular.json
CHANGED
|
@@ -28,12 +28,8 @@
|
|
|
28
28
|
"tsConfig": "src/tsconfig.app.json",
|
|
29
29
|
"assets": [
|
|
30
30
|
"src/favicon.ico",
|
|
31
|
+
"src/favicon.png",
|
|
31
32
|
"src/assets",
|
|
32
|
-
{
|
|
33
|
-
"glob": "print.css",
|
|
34
|
-
"input": "src/assets/",
|
|
35
|
-
"output": "."
|
|
36
|
-
},
|
|
37
33
|
{
|
|
38
34
|
"glob": "**/*",
|
|
39
35
|
"input": "libraries/locales/",
|
|
@@ -43,6 +39,19 @@
|
|
|
43
39
|
"glob": "**/*",
|
|
44
40
|
"input": "node_modules/@wavemaker/app-ng-runtime/locales/",
|
|
45
41
|
"output": "/locales/"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"glob": "**/*",
|
|
45
|
+
"input": "src/servicedefs",
|
|
46
|
+
"output": "/servicedefs/"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"glob": "**/*",
|
|
50
|
+
"input": "resources",
|
|
51
|
+
"output": "/resources/",
|
|
52
|
+
"ignore": [
|
|
53
|
+
"**/*.txt"
|
|
54
|
+
]
|
|
46
55
|
}
|
|
47
56
|
],
|
|
48
57
|
"styles": [
|
|
@@ -58,6 +67,11 @@
|
|
|
58
67
|
"input": "src/assets/app.css",
|
|
59
68
|
"inject": false,
|
|
60
69
|
"bundleName": "wm-styles"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"input": "src/assets/print.css",
|
|
73
|
+
"inject": false,
|
|
74
|
+
"bundleName": "print"
|
|
61
75
|
}
|
|
62
76
|
],
|
|
63
77
|
"scripts": [
|
|
@@ -65,6 +79,7 @@
|
|
|
65
79
|
"./node_modules/d3/dist/d3.min.js",
|
|
66
80
|
"./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
|
|
67
81
|
"./node_modules/jquery/dist/jquery.min.js",
|
|
82
|
+
"./node_modules/lodash/lodash.min.js",
|
|
68
83
|
"./node_modules/jquery-ui/ui/disable-selection.js",
|
|
69
84
|
"./node_modules/jquery-ui/ui/version.js",
|
|
70
85
|
"./node_modules/jquery-ui/ui/widget.js",
|
|
@@ -188,18 +203,29 @@
|
|
|
188
203
|
"tsConfig": "src/tsconfig.app.json",
|
|
189
204
|
"assets": [
|
|
190
205
|
"src/favicon.ico",
|
|
206
|
+
"src/favicon.png",
|
|
191
207
|
"src/assets",
|
|
192
208
|
{
|
|
193
|
-
"glob": "
|
|
194
|
-
"input": "src/
|
|
195
|
-
"output": "
|
|
209
|
+
"glob": "**/*",
|
|
210
|
+
"input": "src/servicedefs",
|
|
211
|
+
"output": "/servicedefs/"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"glob": "**/*",
|
|
215
|
+
"input": "src/resources",
|
|
216
|
+
"output": "/resources/"
|
|
196
217
|
}
|
|
197
218
|
],
|
|
198
219
|
"styles": [
|
|
199
220
|
"src/styles.css",
|
|
200
221
|
"src/assets/styles/css/wm-style.css",
|
|
201
222
|
"src/assets/themes/material/style.css",
|
|
202
|
-
"src/assets/app.css"
|
|
223
|
+
"src/assets/app.css",
|
|
224
|
+
{
|
|
225
|
+
"input": "src/assets/print.css",
|
|
226
|
+
"inject": false,
|
|
227
|
+
"bundleName": "print"
|
|
228
|
+
}
|
|
203
229
|
],
|
|
204
230
|
"scripts": [
|
|
205
231
|
"./node_modules/x2js/x2js.js",
|
|
@@ -259,11 +285,23 @@
|
|
|
259
285
|
"options": {
|
|
260
286
|
"buildTarget": "angular-app:build"
|
|
261
287
|
}
|
|
288
|
+
},
|
|
289
|
+
"lint": {
|
|
290
|
+
"builder": "@angular-eslint/builder:lint",
|
|
291
|
+
"options": {
|
|
292
|
+
"lintFilePatterns": [
|
|
293
|
+
"src/**/*.ts",
|
|
294
|
+
"src/**/*.html"
|
|
295
|
+
]
|
|
296
|
+
}
|
|
262
297
|
}
|
|
263
298
|
}
|
|
264
299
|
}
|
|
265
300
|
},
|
|
266
301
|
"cli": {
|
|
267
|
-
"analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6"
|
|
302
|
+
"analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6",
|
|
303
|
+
"schematicCollections": [
|
|
304
|
+
"@angular-eslint/schematics"
|
|
305
|
+
]
|
|
268
306
|
}
|
|
269
307
|
}
|
|
@@ -294,6 +294,8 @@ const generateSha1 = (content) => {
|
|
|
294
294
|
|
|
295
295
|
//this is required to download all the assets
|
|
296
296
|
$('head').append(`<meta name="deployUrl" content=${deployUrl} />`);
|
|
297
|
+
$('script[src$="services/application/wmProperties.js"]').remove();
|
|
298
|
+
$('link[href$="favicon.png"]').attr('href', './ng-bundle/favicon.png');
|
|
297
299
|
|
|
298
300
|
const htmlContent = $.html();
|
|
299
301
|
await writeFile(`./dist/index.html`, htmlContent);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const yargs = require('yargs');
|
|
4
|
+
const argv = yargs(process.argv).argv;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Updates the @wavemaker/app-ng-runtime dependency in the specified package.json file.
|
|
8
|
+
* @param {string} path - The path to the package.json file to update.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const updateNgRuntimePackage = (path) => {
|
|
12
|
+
if (fs.existsSync(path)) {
|
|
13
|
+
const packageJSON = require('../' + path);
|
|
14
|
+
packageJSON['dependencies']['@wavemaker/app-ng-runtime'] = argv["publish-version"];
|
|
15
|
+
fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));
|
|
16
|
+
} else {
|
|
17
|
+
console.log('package.json not found at ' + path);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const init = () => {
|
|
21
|
+
updateNgRuntimePackage('../wavemaker-studio-runtime-integration/package.json');
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
init();
|