vona-cli-set-api 1.1.132 → 1.1.134

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.
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>Create extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>Create extends IDeco
12
13
  blocks: [
13
14
  ZovaRender.block('basic-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('basic-pageentry:blockForm'),
16
+ ZovaRender.block('basic-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('basic-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('basic-pageentry:blockToolbarRow', {
17
35
  actions: [
18
36
  ZovaRender.formActionRow('basic-form:actionSubmit', {
@@ -14,7 +14,29 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>SelectResItem extend
14
14
  blocks: [
15
15
  ZovaRender.block('basic-page:blockPage', {
16
16
  blocks: [
17
- ZovaRender.block('basic-page:blockFilter'),
17
+ ZovaRender.block('basic-page:blockFilter', {
18
+ formFieldLayout: { inline: true },
19
+ blocks: [
20
+ ZovaRender.block('basic-form:blockFormLayout', {
21
+ formLayout: {
22
+ children: [
23
+ {
24
+ type: 'section',
25
+ layout: 'flow',
26
+ children: [
27
+ { type: 'field', name: 'name' },
28
+ { type: 'field', name: 'createdAt' },
29
+ {
30
+ type: 'block',
31
+ block: ZovaRender.block('basic-page:blockFilterActions'),
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ },
37
+ }),
38
+ ],
39
+ }),
18
40
  ZovaRender.block('basic-page:blockToolbarBulk', {
19
41
  actions: [ZovaRender.tableActionBulk('basic-table:actionCreate')],
20
42
  }),
@@ -29,7 +51,10 @@ export class Dto<%=argv.resourceNameCapitalize%>SelectResItem extends $Dto.get((
29
51
  v.title($locale('Operations')),
30
52
  ZovaRender.order(1, 'max'),
31
53
  ZovaRender.cell('basic-table:actionOperationsRow', {
32
- actions: [ZovaRender.tableActionRow('basic-table:actionUpdate'), ZovaRender.tableActionRow('basic-table:actionDelete')],
54
+ actions: [
55
+ ZovaRender.tableActionRow('basic-table:actionUpdate'),
56
+ ZovaRender.tableActionRow('basic-table:actionDelete'),
57
+ ],
33
58
  }),
34
59
  )
35
60
  _operationsRow?: unknown;
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>Update extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>Update extends IDeco
12
13
  blocks: [
13
14
  ZovaRender.block('basic-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('basic-pageentry:blockForm'),
16
+ ZovaRender.block('basic-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('basic-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('basic-pageentry:blockToolbarRow', {
17
35
  actions: [
18
36
  ZovaRender.formActionRow('basic-form:actionSubmit', {
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>View extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>View extends IDecora
12
13
  blocks: [
13
14
  ZovaRender.block('basic-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('basic-pageentry:blockForm'),
16
+ ZovaRender.block('basic-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('basic-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('basic-pageentry:blockToolbarRow', {
17
35
  actions: [ZovaRender.formActionRow('basic-form:actionBack', { permission: { public: true } })],
18
36
  }),
@@ -4,7 +4,12 @@ import fs from 'node:fs';
4
4
 
5
5
  import { locale_transform } from '../utils.ts';
6
6
 
7
- const __resources = { Name: 'Name', Description: 'Description', Operations: 'Operations' };
7
+ const __resources = {
8
+ BasicInformation: 'Basic Information',
9
+ Name: 'Name',
10
+ Description: 'Description',
11
+ Operations: 'Operations',
12
+ };
8
13
 
9
14
  declare module '@cabloy/cli' {
10
15
  interface ICommandArgv {
@@ -2,7 +2,12 @@ import { metadataCustomSnippet } from '@cabloy/cli';
2
2
 
3
3
  import { locale_transform } from '../utils.ts';
4
4
 
5
- const __resources = { Name: '名称', Description: '描述', Operations: '操作' };
5
+ const __resources = {
6
+ BasicInformation: '基本信息',
7
+ Name: '名称',
8
+ Description: '描述',
9
+ Operations: '操作',
10
+ };
6
11
 
7
12
  export default metadataCustomSnippet({
8
13
  file: 'src/config/locale/zh-cn.ts',
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-start-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>Create extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>Create extends IDeco
12
13
  blocks: [
13
14
  ZovaRender.block('start-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('start-pageentry:blockForm'),
16
+ ZovaRender.block('start-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('start-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('start-pageentry:blockToolbarRow', {
17
35
  actions: [
18
36
  ZovaRender.formActionRow('start-form:actionSubmit', {
@@ -14,7 +14,29 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>SelectResItem extend
14
14
  blocks: [
15
15
  ZovaRender.block('start-page:blockPage', {
16
16
  blocks: [
17
- ZovaRender.block('start-page:blockFilter'),
17
+ ZovaRender.block('start-page:blockFilter', {
18
+ formFieldLayout: { inline: true },
19
+ blocks: [
20
+ ZovaRender.block('start-form:blockFormLayout', {
21
+ formLayout: {
22
+ children: [
23
+ {
24
+ type: 'section',
25
+ layout: 'flow',
26
+ children: [
27
+ { type: 'field', name: 'name' },
28
+ { type: 'field', name: 'createdAt' },
29
+ {
30
+ type: 'block',
31
+ block: ZovaRender.block('start-page:blockFilterActions'),
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ },
37
+ }),
38
+ ],
39
+ }),
18
40
  ZovaRender.block('start-page:blockToolbarBulk', {
19
41
  actions: [ZovaRender.tableActionBulk('start-table:actionCreate')],
20
42
  }),
@@ -28,7 +50,10 @@ export class Dto<%=argv.resourceNameCapitalize%>SelectResItem extends $Dto.get((
28
50
  v.title($locale('Operations')),
29
51
  ZovaRender.order(1, 'max'),
30
52
  ZovaRender.cell('start-table:actionOperationsRow', {
31
- actions: [ZovaRender.tableActionRow('start-table:actionUpdate'), ZovaRender.tableActionRow('start-table:actionDelete')],
53
+ actions: [
54
+ ZovaRender.tableActionRow('start-table:actionUpdate'),
55
+ ZovaRender.tableActionRow('start-table:actionDelete'),
56
+ ],
32
57
  }),
33
58
  )
34
59
  _operationsRow?: unknown;
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-start-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>Update extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>Update extends IDeco
12
13
  blocks: [
13
14
  ZovaRender.block('start-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('start-pageentry:blockForm'),
16
+ ZovaRender.block('start-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('start-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('start-pageentry:blockToolbarRow', {
17
35
  actions: [
18
36
  ZovaRender.formActionRow('start-form:actionSubmit', {
@@ -4,6 +4,7 @@ import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { ZovaRender } from 'zova-rest-cabloy-start-admin';
6
6
 
7
+ import { $locale } from '../.metadata/locales.ts';
7
8
  import { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
9
 
9
10
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>View extends IDecoratorDtoOptions {}
@@ -12,7 +13,24 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>View extends IDecora
12
13
  blocks: [
13
14
  ZovaRender.block('start-pageentry:blockPageEntry', {
14
15
  blocks: [
15
- ZovaRender.block('start-pageentry:blockForm'),
16
+ ZovaRender.block('start-pageentry:blockForm', {
17
+ blocks: [
18
+ ZovaRender.block('start-form:blockFormLayout', {
19
+ formLayout: {
20
+ children: [
21
+ {
22
+ type: 'group',
23
+ title: $locale('BasicInformation'),
24
+ children: [
25
+ { type: 'field', name: 'name' },
26
+ { type: 'field', name: 'description' },
27
+ ],
28
+ },
29
+ ],
30
+ },
31
+ }),
32
+ ],
33
+ }),
16
34
  ZovaRender.block('start-pageentry:blockToolbarRow', {
17
35
  actions: [ZovaRender.formActionRow('start-form:actionBack', { permission: { public: true } })],
18
36
  }),
@@ -4,7 +4,12 @@ import fs from 'node:fs';
4
4
 
5
5
  import { locale_transform } from '../utils.ts';
6
6
 
7
- const __resources = { Name: 'Name', Description: 'Description', Operations: 'Operations' };
7
+ const __resources = {
8
+ BasicInformation: 'Basic Information',
9
+ Name: 'Name',
10
+ Description: 'Description',
11
+ Operations: 'Operations',
12
+ };
8
13
 
9
14
  declare module '@cabloy/cli' {
10
15
  interface ICommandArgv {
@@ -2,7 +2,12 @@ import { metadataCustomSnippet } from '@cabloy/cli';
2
2
 
3
3
  import { locale_transform } from '../utils.ts';
4
4
 
5
- const __resources = { Name: '名称', Description: '描述', Operations: '操作' };
5
+ const __resources = {
6
+ BasicInformation: '基本信息',
7
+ Name: '名称',
8
+ Description: '描述',
9
+ Operations: '操作',
10
+ };
6
11
 
7
12
  export default metadataCustomSnippet({
8
13
  file: 'src/config/locale/zh-cn.ts',
@@ -2,7 +2,12 @@ import { metadataCustomSnippet } from '@cabloy/cli';
2
2
  import { catchError } from '@cabloy/utils';
3
3
  import fs from 'node:fs';
4
4
  import { locale_transform } from "../utils.js";
5
- const __resources = { Name: 'Name', Description: 'Description', Operations: 'Operations' };
5
+ const __resources = {
6
+ BasicInformation: 'Basic Information',
7
+ Name: 'Name',
8
+ Description: 'Description',
9
+ Operations: 'Operations',
10
+ };
6
11
  export default metadataCustomSnippet({
7
12
  file: 'src/config/locale/en-us.ts',
8
13
  language: 'plain',
@@ -1,6 +1,11 @@
1
1
  import { metadataCustomSnippet } from '@cabloy/cli';
2
2
  import { locale_transform } from "../utils.js";
3
- const __resources = { Name: '名称', Description: '描述', Operations: '操作' };
3
+ const __resources = {
4
+ BasicInformation: '基本信息',
5
+ Name: '名称',
6
+ Description: '描述',
7
+ Operations: '操作',
8
+ };
4
9
  export default metadataCustomSnippet({
5
10
  file: 'src/config/locale/zh-cn.ts',
6
11
  language: 'plain',
@@ -2,7 +2,12 @@ import { metadataCustomSnippet } from '@cabloy/cli';
2
2
  import { catchError } from '@cabloy/utils';
3
3
  import fs from 'node:fs';
4
4
  import { locale_transform } from "../utils.js";
5
- const __resources = { Name: 'Name', Description: 'Description', Operations: 'Operations' };
5
+ const __resources = {
6
+ BasicInformation: 'Basic Information',
7
+ Name: 'Name',
8
+ Description: 'Description',
9
+ Operations: 'Operations',
10
+ };
6
11
  export default metadataCustomSnippet({
7
12
  file: 'src/config/locale/en-us.ts',
8
13
  language: 'plain',
@@ -1,6 +1,11 @@
1
1
  import { metadataCustomSnippet } from '@cabloy/cli';
2
2
  import { locale_transform } from "../utils.js";
3
- const __resources = { Name: '名称', Description: '描述', Operations: '操作' };
3
+ const __resources = {
4
+ BasicInformation: '基本信息',
5
+ Name: '名称',
6
+ Description: '描述',
7
+ Operations: '操作',
8
+ };
4
9
  export default metadataCustomSnippet({
5
10
  file: 'src/config/locale/zh-cn.ts',
6
11
  language: 'plain',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
- "version": "1.1.132",
4
- "gitHead": "9484f7821a918a85978a38f82b9add77d503444f",
3
+ "version": "1.1.134",
4
+ "gitHead": "5afd89dc6f19a6b284b48002636d4b7dd20b662a",
5
5
  "description": "vona cli-set-api",
6
6
  "keywords": [
7
7
  "framework",