@wavemaker/angular-codegen 11.13.0-rc.6255 → 11.14.0-rc.6276
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-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +8024 -9697
- package/angular-app/package-lock.json +8024 -9697
- package/angular-app/package.json +58 -73
- package/angular-app/src/framework/services/lazy-component-ref-provider.service.ts +22 -30
- package/angular-app/src/setup-jest.js +6 -9
- package/angular-app/tsconfig.json +6 -6
- package/angular-app/tsconfig.web-app.json +2 -2
- package/build-angular-app.js +3 -1
- package/dependencies/custom-widgets-bundle.cjs.js +2 -2
- package/dependencies/expression-parser.cjs.js +496 -17417
- package/dependencies/pipe-provider.cjs.js +56844 -80373
- package/dependencies/transpilation-web.cjs.js +4031 -15228
- package/npm-shrinkwrap.json +191 -362
- package/package-lock.json +191 -362
- package/package.json +4 -4
- package/src/codegen-args-cli.js +1 -1
- package/src/codegen-cli.js +1 -1
- package/src/codegen.js +1 -1
- package/src/gen-app-codegen-module.js +1 -1
- package/src/gen-app-override-css.js +1 -1
- package/src/gen-app-skeleton.js +1 -1
- package/src/gen-components.js +1 -1
- package/src/gen-lazy-module-routes.js +1 -1
- package/src/handlebar-helpers.js +1 -1
- package/src/pages-util.js +1 -1
- package/src/project-meta.js +1 -1
- package/src/update-angular-json.js +1 -1
- package/src/wm-utils.js +1 -1
- package/templates/app-routes.ts.hbs +0 -3
- package/templates/app.config.ts.hbs +88 -15
- package/templates/customwidget/customwidget.component.ts.hbs +1 -2
- package/templates/layout/layout.component.ts.hbs +6 -5
- package/templates/page/page.component.ts.hbs +0 -2
- package/templates/partial/partial.component.ts.hbs +19 -4
- package/templates/prefab/prefab.component.ts.hbs +22 -5
|
@@ -3,14 +3,15 @@ import { UserDefinedExecutionContext } from '@wm/core';
|
|
|
3
3
|
import { BaseLayoutComponent } from '@wm/runtime/base';
|
|
4
4
|
import { expressionData } from './{{name}}.component.expressions';
|
|
5
5
|
import { CommonModule as NgCommonModule } from '@angular/common';
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { RouterOutletDirective } from '@wm/components/page';
|
|
7
|
+
import { RouterModule } from '@angular/router';
|
|
8
8
|
{{WMComponentsImportStmts requiredWMComponents}}
|
|
9
9
|
|
|
10
10
|
{{PartialModuleImportStmts requiredPartials}}
|
|
11
11
|
|
|
12
12
|
const requiredComponentModules = [
|
|
13
|
-
{{WMComponentModuleStmts requiredWMComponents}}
|
|
13
|
+
{{WMComponentModuleStmts requiredWMComponents}},
|
|
14
|
+
RouterOutletDirective
|
|
14
15
|
];
|
|
15
16
|
|
|
16
17
|
const requiredPartialModules = [
|
|
@@ -32,8 +33,8 @@ const requiredPartialModules = [
|
|
|
32
33
|
imports: [
|
|
33
34
|
...requiredComponentModules,
|
|
34
35
|
...requiredPartialModules,
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
NgCommonModule,
|
|
37
|
+
RouterModule
|
|
37
38
|
],
|
|
38
39
|
{{#if hasCustomElement}}
|
|
39
40
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
@@ -4,7 +4,6 @@ import { initScript } from './{{name}}.component.script';
|
|
|
4
4
|
import { getVariables } from './{{name}}.component.variables';
|
|
5
5
|
import { expressionData } from './{{name}}.component.expressions';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { RuntimeBaseModule } from '@wm/runtime/base';
|
|
8
7
|
import { {{#if enableSpa}}BaseSpaPageComponent{{else}}BasePageComponent{{/if}} } from '@wm/runtime/base';
|
|
9
8
|
|
|
10
9
|
{{WMComponentsImportStmts requiredWMComponents}}
|
|
@@ -45,7 +44,6 @@ const requiredPartialModules: any[] = [
|
|
|
45
44
|
...requiredPartialModules,
|
|
46
45
|
...requiredCustomWidgetComponents,
|
|
47
46
|
CommonModule,
|
|
48
|
-
RuntimeBaseModule
|
|
49
47
|
],
|
|
50
48
|
{{#if hasCustomElement}}
|
|
51
49
|
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { Component, Injector, Optional, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
|
|
3
2
|
import { UserDefinedExecutionContext } from '@wm/core';
|
|
4
|
-
|
|
5
3
|
import { initScript } from './{{name}}.component.script';
|
|
6
4
|
import { getVariables } from './{{name}}.component.variables';
|
|
7
5
|
import { expressionData } from './{{name}}.component.expressions';
|
|
8
|
-
|
|
9
6
|
import { AppRef, BasePartialComponent } from '@wm/runtime/base';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
{{WMComponentsImportStmts requiredWMComponents}}
|
|
9
|
+
{{PartialModuleImportStmts requiredPartials}}
|
|
10
|
+
|
|
11
|
+
const requiredComponentModules = [
|
|
12
|
+
{{WMComponentModuleStmts requiredWMComponents}}
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const requiredPartialModules: any[] = [
|
|
16
|
+
{{PartialModuleStmts requiredPartials}}
|
|
17
|
+
];
|
|
18
|
+
|
|
10
19
|
|
|
11
20
|
@Component({
|
|
12
21
|
selector: 'app-partial-{{name}}',
|
|
@@ -18,7 +27,13 @@ import { AppRef, BasePartialComponent } from '@wm/runtime/base';
|
|
|
18
27
|
provide: UserDefinedExecutionContext,
|
|
19
28
|
useExisting: {{componentName}}
|
|
20
29
|
}
|
|
21
|
-
]
|
|
30
|
+
],
|
|
31
|
+
standalone: true,
|
|
32
|
+
imports: [
|
|
33
|
+
...requiredComponentModules,
|
|
34
|
+
...requiredPartialModules,
|
|
35
|
+
CommonModule
|
|
36
|
+
],
|
|
22
37
|
})
|
|
23
38
|
export class {{componentName}} extends BasePartialComponent {
|
|
24
39
|
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import { Component, Injector, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
|
|
1
|
+
import { Component, Injector, ViewEncapsulation, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { CommonModule as NgCommonModule } from '@angular/common';
|
|
3
3
|
import { UserDefinedExecutionContext } from '@wm/core';
|
|
4
|
-
|
|
5
4
|
import { initScript } from './{{name}}.component.script';
|
|
6
5
|
import { getVariables } from './{{name}}.component.variables';
|
|
7
6
|
import { expressionData } from './{{name}}.component.expressions';
|
|
8
|
-
|
|
9
7
|
import { BasePrefabComponent } from '@wm/runtime/base';
|
|
8
|
+
{{WMComponentsImportStmts requiredWMComponents}}
|
|
9
|
+
{{PrefabPartialModuleImportStmts requiredPartials}}
|
|
10
|
+
|
|
11
|
+
const requiredComponentModules = [
|
|
12
|
+
{{WMComponentModuleStmts requiredWMComponents}}
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const requiredPartialModules = [
|
|
16
|
+
{{PartialModuleStmts requiredPartials}}
|
|
17
|
+
];
|
|
10
18
|
|
|
11
19
|
@Component({
|
|
12
20
|
selector: 'app-prefab-{{prefabName}}',
|
|
@@ -18,7 +26,16 @@ import { BasePrefabComponent } from '@wm/runtime/base';
|
|
|
18
26
|
provide: UserDefinedExecutionContext,
|
|
19
27
|
useExisting: {{componentName}}
|
|
20
28
|
}
|
|
21
|
-
]
|
|
29
|
+
],
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [
|
|
32
|
+
...requiredComponentModules,
|
|
33
|
+
...requiredPartialModules,
|
|
34
|
+
NgCommonModule
|
|
35
|
+
],
|
|
36
|
+
{{#if hasCustomElement}}
|
|
37
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
38
|
+
{{/if}}
|
|
22
39
|
})
|
|
23
40
|
export class {{componentName}} extends BasePrefabComponent {
|
|
24
41
|
|