@memberjunction/codegen-lib 0.9.23 → 0.9.25
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.
|
@@ -69,7 +69,7 @@ import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
|
69
69
|
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
70
70
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
71
71
|
import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
72
|
-
import {
|
|
72
|
+
import { ExplorerCoreModule } from '@memberjunction/ng-explorer-core';
|
|
73
73
|
import { UserViewGridModule } from '@memberjunction/ng-user-view-grid';
|
|
74
74
|
import { LinkDirectivesModule } from '@memberjunction/ng-link-directives';
|
|
75
75
|
|
|
@@ -89,7 +89,7 @@ imports: [
|
|
|
89
89
|
InputsModule,
|
|
90
90
|
ButtonsModule,
|
|
91
91
|
DateInputsModule,
|
|
92
|
-
|
|
92
|
+
ExplorerCoreModule,
|
|
93
93
|
UserViewGridModule,
|
|
94
94
|
LinkDirectivesModule
|
|
95
95
|
],
|
|
@@ -117,13 +117,13 @@ function generateSingleEntityTypeScriptForAngular(entity, sections) {
|
|
|
117
117
|
return `import { Component } from '@angular/core';
|
|
118
118
|
import { ${entityObjectClass}Entity } from '${entity.SchemaName === config_1.mjCoreSchema ? '@memberjunction/core-entities' : 'mj_generatedentities'}';
|
|
119
119
|
import { RegisterClass } from '@memberjunction/global';
|
|
120
|
-
import { BaseFormComponent } from '
|
|
120
|
+
import { BaseFormComponent } from '@memberjunction/ng-explorer-core';
|
|
121
121
|
${sectionImports}
|
|
122
122
|
@RegisterClass(BaseFormComponent, '${entity.Name}') // Tell MemberJunction about this class
|
|
123
123
|
@Component({
|
|
124
124
|
selector: 'gen-${entity.ClassName.toLowerCase()}-form',
|
|
125
125
|
templateUrl: './${entity.ClassName.toLowerCase()}.form.component.html',
|
|
126
|
-
styleUrls: ['
|
|
126
|
+
styleUrls: ['../../../../shared/form-styles.css']
|
|
127
127
|
})
|
|
128
128
|
export class ${entity.ClassName}FormComponent extends BaseFormComponent {
|
|
129
129
|
public record: ${entityObjectClass}Entity | null = null;
|
|
@@ -195,13 +195,13 @@ function generateAngularAdditionalSections(entity, startIndex) {
|
|
|
195
195
|
const { readModeHTML, editModeHTML } = generateSectionHTMLForAngular(entity, section);
|
|
196
196
|
section.ComponentCode = `import { Component, Input } from '@angular/core';
|
|
197
197
|
import { RegisterClass } from '@memberjunction/global';
|
|
198
|
-
import { BaseFormSectionComponent } from '
|
|
198
|
+
import { BaseFormSectionComponent } from '@memberjunction/ng-explorer-core';
|
|
199
199
|
import { ${entity.ClassName}Entity } from '${entity.SchemaName === config_1.mjCoreSchema ? '@memberjunction/core-entities' : 'mj_generatedentities'}';
|
|
200
200
|
|
|
201
201
|
@RegisterClass(BaseFormSectionComponent, '${entity.Name}.${sectionName}') // Tell MemberJunction about this class
|
|
202
202
|
@Component({
|
|
203
203
|
selector: 'gen-${entity.ClassName.toLowerCase()}-form-${sectionName}',
|
|
204
|
-
styleUrls: ['
|
|
204
|
+
styleUrls: ['../../../../../shared/form-styles.css'],
|
|
205
205
|
template: \`<div *ngIf="this.record">
|
|
206
206
|
<div *ngIf="this.EditMode" class="record-form">
|
|
207
207
|
${editModeHTML}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/codegen-lib",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.25",
|
|
4
4
|
"description": "Library used by the CodeGen executable to generate code for the MemberJunction platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@memberjunction/core": "^0.9.59",
|
|
23
23
|
"@memberjunction/global": "^0.9.62",
|
|
24
|
-
"@memberjunction/sqlserver-dataprovider": "^0.9.
|
|
24
|
+
"@memberjunction/sqlserver-dataprovider": "^0.9.59",
|
|
25
25
|
"env-var": "^7.4.1",
|
|
26
26
|
"fs-extra": "^11.1.1",
|
|
27
27
|
"typeorm": "^0.3.17"
|