zova-module-a-bean 5.1.35 → 5.1.36

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.
@@ -22,6 +22,7 @@ export async function generateFilePage(
22
22
  importStyleFirst,
23
23
  hasStyleFirst,
24
24
  classNameStyleFirst,
25
+ hasComponentOptions,
25
26
  } = controllerInfo;
26
27
  const { nameSchemaParams, hasSchemaParams, nameSchemaQuery, hasSchemaQuery } = controllerInfo;
27
28
  const contentImports: string[] = [];
@@ -68,7 +69,8 @@ export async function generateFilePage(
68
69
  }`);
69
70
  }
70
71
  // page
71
- const contentPage = `export const ZPage${nameCapitalize} = createZovaComponentPage(${className}, ${hasRenderFirst ? classNameRenderFirst : undefined}, ${hasStyleFirst ? classNameStyleFirst : undefined});`;
72
+ const componentOptions = hasComponentOptions ? `${className}.$componentOptions` : undefined;
73
+ const contentPage = `export const ZPage${nameCapitalize} = createZovaComponentPage(${className}, ${hasRenderFirst ? classNameRenderFirst : undefined}, ${hasStyleFirst ? classNameStyleFirst : undefined}${componentOptions ? `, ${componentOptions}` : ''});`;
72
74
  // content
73
75
  const content = `${contentImports.join('\n')}
74
76
  ${combineContentRenderAndStyle(controllerInfo, moduleName, className, '', '')}
@@ -2,7 +2,7 @@ import { combineContentRenderAndStyle } from "./utils.js";
2
2
  export async function generateFilePage(options, globFile, controllerInfo) {
3
3
  const { moduleName } = options;
4
4
  const { className } = globFile;
5
- const { name, nameCapitalize, controllerExtJs, importRenderFirst, hasRenderFirst, classNameRenderFirst, importStyleFirst, hasStyleFirst, classNameStyleFirst, } = controllerInfo;
5
+ const { name, nameCapitalize, controllerExtJs, importRenderFirst, hasRenderFirst, classNameRenderFirst, importStyleFirst, hasStyleFirst, classNameStyleFirst, hasComponentOptions, } = controllerInfo;
6
6
  const { nameSchemaParams, hasSchemaParams, nameSchemaQuery, hasSchemaQuery } = controllerInfo;
7
7
  const contentImports = [];
8
8
  // controller
@@ -46,7 +46,8 @@ export async function generateFilePage(options, globFile, controllerInfo) {
46
46
  }`);
47
47
  }
48
48
  // page
49
- const contentPage = `export const ZPage${nameCapitalize} = createZovaComponentPage(${className}, ${hasRenderFirst ? classNameRenderFirst : undefined}, ${hasStyleFirst ? classNameStyleFirst : undefined});`;
49
+ const componentOptions = hasComponentOptions ? `${className}.$componentOptions` : undefined;
50
+ const contentPage = `export const ZPage${nameCapitalize} = createZovaComponentPage(${className}, ${hasRenderFirst ? classNameRenderFirst : undefined}, ${hasStyleFirst ? classNameStyleFirst : undefined}${componentOptions ? `, ${componentOptions}` : ''});`;
50
51
  // content
51
52
  const content = `${contentImports.join('\n')}
52
53
  ${combineContentRenderAndStyle(controllerInfo, moduleName, className, '', '')}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-bean",
3
- "version": "5.1.35",
4
- "gitHead": "8b6fc2eac777e5ce3dc5d02d160c002ff0528c0d",
3
+ "version": "5.1.36",
4
+ "gitHead": "b88abae0ef9cbe59388093d012c1193d5fa14175",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"