@wavemaker/angular-codegen 12.0.0-next.141131 → 12.0.0-next.141138
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 +13 -1
- angular-codegen/angular-app/build-scripts/update-version.js +24 -0
- angular-codegen/angular-app/package-lock.json +8431 -10702
- angular-codegen/angular-app/package.json +18 -14
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/angular-app/src/framework/util/page-util.ts +1 -3
- angular-codegen/angular-app/src/setup-jest.js +1 -0
- angular-codegen/angular-app/tsconfig.json +0 -3
- angular-codegen/dependencies/expression-parser.cjs.js +1 -40
- angular-codegen/dependencies/pipe-provider.cjs.js +41 -303
- angular-codegen/dependencies/transpilation-mobile.cjs.js +418 -598
- angular-codegen/dependencies/transpilation-web.cjs.js +418 -598
- 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-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 +1 -5
- angular-codegen/templates/page/page.module.ts.hbs +0 -11
- angular-codegen/angular-app/src/framework/services/customwidget-config-provider.service.ts +0 -13
- angular-codegen/dependencies/custom-widgets-bundle.cjs.js +0 -390
- angular-codegen/src/gen-customwidget-config.js +0 -1
- angular-codegen/templates/component.config.ts.hbs +0 -1
- angular-codegen/templates/customwidget/customwidget-config.ts.hbs +0 -6
- angular-codegen/templates/customwidget/customwidget.component.script.js.hbs +0 -3
- angular-codegen/templates/customwidget/customwidget.component.ts.hbs +0 -42
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
const prefabConfigs = new Map<string, any>();
|
|
2
|
-
const customWidgetConfigs = new Map<string, any>();
|
|
3
2
|
|
|
4
3
|
export const registerPrefabConfig = (prefabName: string, config: any) => prefabConfigs.set(prefabName, config);
|
|
5
4
|
export const getPrefabConfig = prefabName => prefabConfigs.get(prefabName);
|
|
6
|
-
|
|
7
|
-
export const getCustomWidgetConfig = customWidget => customWidgetConfigs.get(customWidget);
|
|
5
|
+
|
|
@@ -37,9 +37,6 @@
|
|
|
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
|
-
],
|
|
43
40
|
"@wm/components/base": [
|
|
44
41
|
"node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
|
|
45
42
|
],
|
|
@@ -4975,45 +4975,6 @@ class AbstractJsEmitterVisitor extends AbstractEmitterVisitor {
|
|
|
4975
4975
|
this.visitAllObjects(param => ctx.print(null, param.name), params, ctx, ',');
|
|
4976
4976
|
}
|
|
4977
4977
|
}
|
|
4978
|
-
|
|
4979
|
-
/**
|
|
4980
|
-
* @fileoverview
|
|
4981
|
-
* A module to facilitate use of a Trusted Types policy within the JIT
|
|
4982
|
-
* compiler. It lazily constructs the Trusted Types policy, providing helper
|
|
4983
|
-
* utilities for promoting strings to Trusted Types. When Trusted Types are not
|
|
4984
|
-
* available, strings are used as a fallback.
|
|
4985
|
-
* @security All use of this module is security-sensitive and should go through
|
|
4986
|
-
* security review.
|
|
4987
|
-
*/
|
|
4988
|
-
/**
|
|
4989
|
-
* The Trusted Types policy, or null if Trusted Types are not
|
|
4990
|
-
* enabled/supported, or undefined if the policy has not been created yet.
|
|
4991
|
-
*/
|
|
4992
|
-
let policy;
|
|
4993
|
-
/**
|
|
4994
|
-
* Returns the Trusted Types policy, or null if Trusted Types are not
|
|
4995
|
-
* enabled/supported. The first call to this function will create the policy.
|
|
4996
|
-
*/
|
|
4997
|
-
function getPolicy() {
|
|
4998
|
-
if (policy === undefined) {
|
|
4999
|
-
const trustedTypes = _global['trustedTypes'];
|
|
5000
|
-
policy = null;
|
|
5001
|
-
if (trustedTypes) {
|
|
5002
|
-
try {
|
|
5003
|
-
policy = trustedTypes.createPolicy('angular#unsafe-jit', {
|
|
5004
|
-
createScript: (s) => s,
|
|
5005
|
-
});
|
|
5006
|
-
}
|
|
5007
|
-
catch {
|
|
5008
|
-
// trustedTypes.createPolicy throws if called with a name that is
|
|
5009
|
-
// already registered, even in report-only mode. Until the API changes,
|
|
5010
|
-
// catch the error not to break the applications functionally. In such
|
|
5011
|
-
// cases, the code will fall back to using strings.
|
|
5012
|
-
}
|
|
5013
|
-
}
|
|
5014
|
-
}
|
|
5015
|
-
return policy;
|
|
5016
|
-
}
|
|
5017
4978
|
/**
|
|
5018
4979
|
* Unsafely promote a string to a TrustedScript, falling back to strings when
|
|
5019
4980
|
* Trusted Types are not available.
|
|
@@ -5022,7 +4983,7 @@ function getPolicy() {
|
|
|
5022
4983
|
* interpreted and executed as a script by a browser, e.g. when calling eval.
|
|
5023
4984
|
*/
|
|
5024
4985
|
function trustedScriptFromString(script) {
|
|
5025
|
-
return
|
|
4986
|
+
return script;
|
|
5026
4987
|
}
|
|
5027
4988
|
/**
|
|
5028
4989
|
* Unsafely call the Function constructor with the given string arguments.
|