@wavemaker/angular-codegen 12.0.0-next.140535 → 12.0.0-next.141131
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.
- angular-codegen/angular-app/angular.json +2 -0
- angular-codegen/angular-app/package-lock.json +8449 -3742
- angular-codegen/angular-app/package.json +12 -8
- angular-codegen/angular-app/src/framework/services/customwidget-config-provider.service.ts +13 -0
- angular-codegen/angular-app/src/framework/util/page-util.ts +3 -1
- angular-codegen/angular-app/src/setup-jest.js +0 -1
- angular-codegen/angular-app/tsconfig.json +3 -0
- angular-codegen/dependencies/custom-widgets-bundle.cjs.js +390 -0
- angular-codegen/dependencies/expression-parser.cjs.js +40 -1
- angular-codegen/dependencies/pipe-provider.cjs.js +300 -12060
- angular-codegen/dependencies/transpilation-mobile.cjs.js +602 -1180
- angular-codegen/dependencies/transpilation-web.cjs.js +602 -6425
- angular-codegen/package.json +1 -1
- angular-codegen/src/codegen.js +1 -1
- angular-codegen/src/gen-components.js +1 -1
- angular-codegen/src/gen-customwidget-config.js +1 -0
- angular-codegen/src/gen-index-html.js +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/src/pages-util.js +1 -1
- angular-codegen/src/update-angular-json.js +1 -1
- angular-codegen/templates/app.module.ts.hbs +5 -1
- angular-codegen/templates/component.config.ts.hbs +1 -0
- angular-codegen/templates/customwidget/customwidget-config.ts.hbs +6 -0
- angular-codegen/templates/customwidget/customwidget.component.script.js.hbs +3 -0
- angular-codegen/templates/customwidget/customwidget.component.ts.hbs +42 -0
- angular-codegen/templates/page/page.module.ts.hbs +11 -0
- angular-codegen/angular-app/build-scripts/update-version.js +0 -24
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"@babel/runtime": "7.14.8",
|
|
45
45
|
"@metrichor/jmespath": "0.3.1",
|
|
46
46
|
"@wavemaker/focus-trap": "1.0.1",
|
|
47
|
-
"@wavemaker/nvd3": "1.8.
|
|
48
|
-
"@wavemaker/
|
|
47
|
+
"@wavemaker/nvd3": "1.8.11",
|
|
48
|
+
"@wavemaker/foundation-css": "12.0.0-next.141131",
|
|
49
|
+
"@wavemaker/custom-widgets-m3": "12.0.0-next.141131",
|
|
50
|
+
"@wavemaker/variables": "12.0.0-next.141131",
|
|
49
51
|
"@ztree/ztree_v3": "3.5.48",
|
|
50
52
|
"angular-imask": "^7.6.1",
|
|
51
53
|
"angular2-websocket": "0.9.7",
|
|
@@ -65,12 +67,12 @@
|
|
|
65
67
|
"ngx-toastr": "17.0.2",
|
|
66
68
|
"rxjs": "6.6.0",
|
|
67
69
|
"rxjs-compat": "6.4.0",
|
|
68
|
-
"summernote": "0.8.
|
|
70
|
+
"summernote": "0.8.18",
|
|
69
71
|
"ts-jest": "29.1.1",
|
|
70
72
|
"tslib": "2.4.1",
|
|
71
73
|
"x2js": "3.4.4",
|
|
72
74
|
"zone.js": "0.14.7",
|
|
73
|
-
"@wavemaker/app-ng-runtime": "12.0.0-next.
|
|
75
|
+
"@wavemaker/app-ng-runtime": "12.0.0-next.141131"
|
|
74
76
|
},
|
|
75
77
|
"devDependencies": {
|
|
76
78
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -80,20 +82,22 @@
|
|
|
80
82
|
"@angular/compiler-cli": "17.3.11",
|
|
81
83
|
"@angular/language-service": "17.3.11",
|
|
82
84
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
83
|
-
"@compodoc/compodoc": "^1.1.
|
|
85
|
+
"@compodoc/compodoc": "^1.1.19",
|
|
84
86
|
"@rollup/plugin-alias": "4.0.2",
|
|
85
87
|
"@rollup/plugin-commonjs": "24.0.0",
|
|
86
88
|
"@rollup/plugin-multi-entry": "6.0.0",
|
|
87
89
|
"@rollup/plugin-node-resolve": "15.0.1",
|
|
90
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
88
91
|
"@types/jest": "^29.5.12",
|
|
89
92
|
"@types/jquery": "3.3.22",
|
|
90
93
|
"@types/lodash-es": "4.17.12",
|
|
91
94
|
"@types/node": "12.11.1",
|
|
92
95
|
"@types/sizzle": "^2.3.3",
|
|
93
96
|
"babel-loader": "^9.1.2",
|
|
94
|
-
"cheerio": "1.0.0-rc.12",
|
|
97
|
+
"cheerio": "^1.0.0-rc.12",
|
|
95
98
|
"codelyzer": "5.1.2",
|
|
96
99
|
"compression-webpack-plugin": "10.0.0",
|
|
100
|
+
"core-js-builder": "2.5.7",
|
|
97
101
|
"fs": "0.0.1-security",
|
|
98
102
|
"fs-extra": "7.0.1",
|
|
99
103
|
"jest": "^29.7.0",
|
|
@@ -103,11 +107,11 @@
|
|
|
103
107
|
"moment-timezone": "^0.5.34",
|
|
104
108
|
"ng-packagr": "17.3.0",
|
|
105
109
|
"npm-run-all": "4.1.5",
|
|
106
|
-
"owasp-dependency-check": "0.0.
|
|
110
|
+
"owasp-dependency-check": "0.0.21",
|
|
107
111
|
"rimraf": "2.6.3",
|
|
108
112
|
"rollup": "4.9.5",
|
|
109
113
|
"rollup-plugin-includepaths": "0.2.3",
|
|
110
|
-
"sonarqube-scanner": "
|
|
114
|
+
"sonarqube-scanner": "^2.8.2",
|
|
111
115
|
"terser": "^5.15.1",
|
|
112
116
|
"ts-node": "7.0.1",
|
|
113
117
|
"tslint": "~6.1.0",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { CustomwidgetConfigProvider } from '@wm/runtime/base';
|
|
4
|
+
|
|
5
|
+
import { getCustomWidgetConfig } from '../util/page-util';
|
|
6
|
+
|
|
7
|
+
@Injectable()
|
|
8
|
+
export class CustomwidgetConfigProviderService extends CustomwidgetConfigProvider {
|
|
9
|
+
|
|
10
|
+
public getConfig(widgetname: string): Promise<any> {
|
|
11
|
+
return Promise.resolve(getCustomWidgetConfig(widgetname));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const prefabConfigs = new Map<string, any>();
|
|
2
|
+
const customWidgetConfigs = new Map<string, any>();
|
|
2
3
|
|
|
3
4
|
export const registerPrefabConfig = (prefabName: string, config: any) => prefabConfigs.set(prefabName, config);
|
|
4
5
|
export const getPrefabConfig = prefabName => prefabConfigs.get(prefabName);
|
|
5
|
-
|
|
6
|
+
export const registerCustomWidgetConfig = (customWidget: string, config: any) => customWidgetConfigs.set(customWidget, config);
|
|
7
|
+
export const getCustomWidgetConfig = customWidget => customWidgetConfigs.get(customWidget);
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"@wavemaker/variables": [
|
|
38
38
|
"node_modules/@wavemaker/variables/"
|
|
39
39
|
],
|
|
40
|
+
"@wavemaker/custom-widgets-m3": [
|
|
41
|
+
"node_modules/@wavemaker/custom-widgets-m3/"
|
|
42
|
+
],
|
|
40
43
|
"@wm/components/base": [
|
|
41
44
|
"node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
|
|
42
45
|
],
|