@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 +0,0 @@
|
|
|
1
|
-
const{createDir:createDir,writeFile:writeFile}=require("./wm-utils"),{getHandlebarTemplate:getHandlebarTemplate}=require("./handlebar-helpers"),generateCustomWidgetConfigFile=async(e={},t)=>{await createDir(`${t}/src/app/customwidgets`,{recursive:!0});const i=getHandlebarTemplate("customwidget-config")({customWidgetConfigMap:e});await writeFile(`${t}/src/app/customwidgets/customwidget-config.ts`,i)};module.exports={generateCustomWidgetConfigFile:generateCustomWidgetConfigFile};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const config = {{config}};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Component, Injector, Optional, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { UserDefinedExecutionContext } from '@wm/core';
|
|
4
|
-
|
|
5
|
-
import { initScript } from './{{name}}.component.script';
|
|
6
|
-
import { getVariables } from './{{name}}.component.variables';
|
|
7
|
-
import { AppRef, BaseCustomWidgetComponent } from '@wm/runtime/base';
|
|
8
|
-
{{WMComponentsImportStmts requiredWMComponents}}
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
standalone: true,
|
|
12
|
-
selector: 'app-custom-{{name}}',
|
|
13
|
-
templateUrl: './{{name}}.component.html',
|
|
14
|
-
styleUrls: ['./{{name}}.component.css'],
|
|
15
|
-
encapsulation: ViewEncapsulation.None,
|
|
16
|
-
imports: [ {{WMComponentModuleStmts requiredWMComponents}}],
|
|
17
|
-
providers: [
|
|
18
|
-
{
|
|
19
|
-
provide: UserDefinedExecutionContext,
|
|
20
|
-
useExisting: {{componentName}}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
})
|
|
24
|
-
export class {{componentName}} extends BaseCustomWidgetComponent {
|
|
25
|
-
|
|
26
|
-
override customWidgetName = '{{name}}';
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
{{#if enableSpa}}spa = true;{{/if}}
|
|
29
|
-
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
super.init();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
getVariables() {
|
|
36
|
-
return getVariables();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
evalUserScript(Widget, App, Utils) {
|
|
40
|
-
initScript(Widget, App, Utils);
|
|
41
|
-
}
|
|
42
|
-
}
|