zova-cli-set-front 1.2.35 → 1.2.37

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -371,12 +371,15 @@ class CliBinBuildRest extends BeanCliBase {
371
371
  export type { IIconRecord } from 'zova-module-a-icon';
372
372
  import type { TypePagePathSchema } from 'zova-module-a-router';
373
373
  export type { IPagePathRecord } from 'zova-module-a-router';
374
+ import type { IActionRecord, TypeActionOptions } from 'zova-module-a-action';
375
+ export type { IActionRecord } from 'zova-module-a-action';
374
376
  export type {
375
377
  IResourceComponentActionBulkRecord,
376
378
  IResourceComponentActionRowRecord,
377
379
  IResourceComponentBlockRecord,
378
380
  IResourceComponentFormFieldRecord,
379
381
  IResourceComponentTableCellRecord,
382
+ ISchemaRenderComponentLayoutOptions,
380
383
  } from 'zova-module-a-openapi';
381
384
  `;
382
385
  indexContent += await this._prepareResourcesIndex_rest(srcDir);
@@ -414,6 +417,7 @@ export type {
414
417
  return content;
415
418
  }
416
419
  async _prepareResourcesIndex_providers(_srcDir, projectPath) {
420
+ // openapi
417
421
  const dirBasicOpenapi = path.join(projectPath, './src/suite/cabloy-basic/modules/basic-openapi');
418
422
  const dirStartOpenapi = path.join(projectPath, './src/suite/cabloy-start/modules/start-openapi');
419
423
  let content = '';
@@ -422,6 +426,10 @@ export type {
422
426
  } else if (fse.existsSync(dirStartOpenapi)) {
423
427
  content += `import 'zova-module-start-openapi';\n`;
424
428
  }
429
+ content += `export function Action<K extends keyof IActionRecord>(options: TypeActionOptions<K>) {
430
+ return options.name.replace(':','.action.');
431
+ }
432
+ `;
425
433
  return content;
426
434
  }
427
435
  async _prepareResourcesIndex_pages(_srcDir) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.35",
4
- "gitHead": "a247f88a55c663d313296039f874560ee5a13e01",
3
+ "version": "1.2.37",
4
+ "gitHead": "da650d644d8851a92a8da4babaebfef74c9e8a5d",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
7
7
  "framework",