cabloy 5.1.168 → 5.1.170
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/.cabloy-version +1 -1
- package/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/repo-e2e/specs/cabloy-basic.spec.ts +45 -0
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/boilerplate/src/dto/{{resourceName}}SelectResItem.tsx_ +4 -0
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/dto/{{resourceName}}SelectResItem.tsx_ +4 -0
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/pnpm-lock.yaml +83 -106
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentSelectResItem.tsx +4 -0
- package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +5 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/package.json +54 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/index.ts +346 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/this.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.index.ts +12 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.redlock.ts +11 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.version.ts +20 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/controller/layoutprofile.ts +38 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfile.tsx +26 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfileLoad.tsx +13 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfileSave.tsx +31 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/entity/layoutprofile.ts +20 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/index.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/model/layoutprofile.ts +10 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/service/layoutprofile.ts +64 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/types/index.ts +1 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/types/layoutprofile.ts +21 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/test/layoutprofile.test.ts +258 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.build.json +11 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.json +7 -0
- package/vona/src/suite-vendor/a-cabloy/package.json +2 -1
- package/vona/src/suite-vendor/a-cabloy/tsconfig.json +3 -0
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +21 -6
- package/zova/src/suite/a-home/modules/home-base/src/service/ssrLayout.ts +20 -10
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/component/routedDialog/controller.tsx +2 -0
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/types/appModal.ts +3 -0
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockPage/controller.tsx +44 -1
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockTable/controller.tsx +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockToolbarBulk/controller.tsx +40 -25
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/lib/selection.ts +11 -0
- package/zova/src/suite/cabloy-basic/modules/basic-page/test/lib/selection.test.ts +23 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/component/formFieldResourcePicker/controller.tsx +5 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/lib/resourcePickerPageHost.ts +64 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/test/lib/resourcePickerPageHost.test.ts +94 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/component/actionColumnConfig.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/index.ts +25 -12
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionColumnConfig/controller.tsx +260 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/table/render.tsx +3 -3
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/en-us.ts +10 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/zh-cn.ts +10 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/cli/openapi.config.ts +9 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/package.json +53 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/index.ts +140 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/this.ts +2 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/layoutprofile.ts +67 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/baseURL.ts +5 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/index.ts +3 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/schemas.ts +663 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/types.ts +10150 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/apiSchema/layoutprofile.ts +25 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/index.ts +1 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/model/layoutprofile.ts +76 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.build.json +13 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.json +5 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/package.json +1 -1
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/lib/resourcePicker.ts +42 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/page/resourcePicker/controller.tsx +20 -79
- package/zova/src/suite-vendor/a-cabloy/package.json +3 -2
- package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/resource/tableActionBulk.ts +3 -0
- package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/bodyReadyObserver.ts +13 -11
- package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/component/table/controller.tsx +64 -2
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/component/table/render.tsx +2 -3
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/lib/beanControllerTableBase.ts +10 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/types/index.ts +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/types/tableLayout.ts +101 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/test/lib/tableLayout.test.ts +112 -0
- package/zova/src/suite-vendor/a-zova/package.json +7 -7
|
@@ -5,4 +5,14 @@ export default {
|
|
|
5
5
|
SelectRow: '选择行 %s',
|
|
6
6
|
DeleteBulk: '批量删除',
|
|
7
7
|
DeleteBulkConfirm: '您确认要批量删除已选择的 %d 项吗?',
|
|
8
|
+
ColumnConfiguration: '列配置',
|
|
9
|
+
Columns: '字段',
|
|
10
|
+
Visible: '显示',
|
|
11
|
+
Width: '宽度',
|
|
12
|
+
Auto: '自动',
|
|
13
|
+
MoveUp: '上移',
|
|
14
|
+
MoveDown: '下移',
|
|
15
|
+
Save: '保存',
|
|
16
|
+
Cancel: '取消',
|
|
17
|
+
Reset: '重置',
|
|
8
18
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zova-module-a-layoutprofile",
|
|
3
|
+
"version": "5.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Zova Module"
|
|
7
|
+
],
|
|
8
|
+
"author": "",
|
|
9
|
+
"files": [
|
|
10
|
+
"mock",
|
|
11
|
+
"dist",
|
|
12
|
+
"src",
|
|
13
|
+
"icons",
|
|
14
|
+
"assets",
|
|
15
|
+
"cli"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": [
|
|
21
|
+
"./src/index.ts",
|
|
22
|
+
"./dist/index.d.ts"
|
|
23
|
+
],
|
|
24
|
+
"import": "./src/index.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./*": "./*"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
31
|
+
"tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
32
|
+
"prepublishOnly": "npm run tsc:publish",
|
|
33
|
+
"prepack": "clean-package",
|
|
34
|
+
"postpack": "clean-package restore"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"clean-package": "^2.2.0",
|
|
39
|
+
"rimraf": "^6.1.3"
|
|
40
|
+
},
|
|
41
|
+
"clean-package": {
|
|
42
|
+
"indent": 2,
|
|
43
|
+
"replace": {
|
|
44
|
+
"exports.\\..types": "./dist/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"remove": [
|
|
47
|
+
"clean-package",
|
|
48
|
+
"devDependencies",
|
|
49
|
+
"exports.\\..import"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"title": "a-layoutprofile"
|
|
53
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// eslint-disable
|
|
2
|
+
/** model: begin */
|
|
3
|
+
export * from '../model/layoutprofile.js';
|
|
4
|
+
import { IModelOptionsLayoutProfile } from '../model/layoutprofile.js';
|
|
5
|
+
import 'zova-module-a-model';
|
|
6
|
+
declare module 'zova-module-a-model' {
|
|
7
|
+
|
|
8
|
+
export interface IModelRecord {
|
|
9
|
+
'a-layoutprofile:layoutProfile': IModelOptionsLayoutProfile;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
declare module 'zova-module-a-layoutprofile' {
|
|
15
|
+
|
|
16
|
+
export interface ModelLayoutProfile {
|
|
17
|
+
/** @internal */
|
|
18
|
+
get scope(): ScopeModuleALayoutprofile;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ModelLayoutProfile {
|
|
22
|
+
get $beanFullName(): 'a-layoutprofile.model.layoutProfile';
|
|
23
|
+
get $onionName(): 'a-layoutprofile:layoutProfile';
|
|
24
|
+
get $onionOptions(): IModelOptionsLayoutProfile;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** model: end */
|
|
28
|
+
/** model: begin */
|
|
29
|
+
import type { ModelLayoutProfile } from '../model/layoutprofile.js';
|
|
30
|
+
import 'zova';
|
|
31
|
+
declare module 'zova' {
|
|
32
|
+
export interface IBeanRecordGeneral {
|
|
33
|
+
'a-layoutprofile.model.layoutProfile': ModelLayoutProfile;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** model: end */
|
|
37
|
+
/** api: begin */
|
|
38
|
+
export * from '../api/layoutprofile.js';
|
|
39
|
+
|
|
40
|
+
import 'zova';
|
|
41
|
+
declare module 'zova' {
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
declare module 'zova-module-a-layoutprofile' {
|
|
46
|
+
|
|
47
|
+
export interface ApiLayoutprofile {
|
|
48
|
+
/** @internal */
|
|
49
|
+
get scope(): ScopeModuleALayoutprofile;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ApiLayoutprofile {
|
|
53
|
+
get $beanFullName(): 'a-layoutprofile.api.layoutprofile';
|
|
54
|
+
get $onionName(): 'a-layoutprofile:layoutprofile';
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** api: end */
|
|
59
|
+
/** api: begin */
|
|
60
|
+
import type { ApiLayoutprofile } from '../api/layoutprofile.js';
|
|
61
|
+
export interface IModuleApi {
|
|
62
|
+
'layoutprofile': ApiLayoutprofile;
|
|
63
|
+
}
|
|
64
|
+
/** api: end */
|
|
65
|
+
/** api: begin */
|
|
66
|
+
|
|
67
|
+
import 'zova';
|
|
68
|
+
declare module 'zova' {
|
|
69
|
+
export interface IBeanRecordGeneral {
|
|
70
|
+
'a-layoutprofile.api.layoutprofile': ApiLayoutprofile;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/** api: end */
|
|
74
|
+
/** openapi: begin */
|
|
75
|
+
export * from '../api/openapi/index.js';
|
|
76
|
+
/** openapi: end */
|
|
77
|
+
/** apiSchema: begin */
|
|
78
|
+
export * from '../apiSchema/layoutprofile.js';
|
|
79
|
+
|
|
80
|
+
import 'zova';
|
|
81
|
+
declare module 'zova' {
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
declare module 'zova-module-a-layoutprofile' {
|
|
86
|
+
|
|
87
|
+
export interface ApiSchemaLayoutprofile {
|
|
88
|
+
/** @internal */
|
|
89
|
+
get scope(): ScopeModuleALayoutprofile;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface ApiSchemaLayoutprofile {
|
|
93
|
+
get $beanFullName(): 'a-layoutprofile.apiSchema.layoutprofile';
|
|
94
|
+
get $onionName(): 'a-layoutprofile:layoutprofile';
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** apiSchema: end */
|
|
99
|
+
/** apiSchema: begin */
|
|
100
|
+
import type { ApiSchemaLayoutprofile } from '../apiSchema/layoutprofile.js';
|
|
101
|
+
export interface IModuleApiSchema {
|
|
102
|
+
'layoutprofile': ApiSchemaLayoutprofile;
|
|
103
|
+
}
|
|
104
|
+
/** apiSchema: end */
|
|
105
|
+
/** apiSchema: begin */
|
|
106
|
+
|
|
107
|
+
import 'zova';
|
|
108
|
+
declare module 'zova' {
|
|
109
|
+
export interface IBeanRecordGeneral {
|
|
110
|
+
'a-layoutprofile.apiSchema.layoutprofile': ApiSchemaLayoutprofile;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** apiSchema: end */
|
|
114
|
+
/** scope: begin */
|
|
115
|
+
import { BeanScopeBase, type BeanScopeUtil } from 'zova';
|
|
116
|
+
import { Scope } from 'zova-module-a-bean';
|
|
117
|
+
|
|
118
|
+
@Scope()
|
|
119
|
+
export class ScopeModuleALayoutprofile extends BeanScopeBase {}
|
|
120
|
+
|
|
121
|
+
export interface ScopeModuleALayoutprofile {
|
|
122
|
+
util: BeanScopeUtil;
|
|
123
|
+
api: IModuleApi;
|
|
124
|
+
apiSchema: IModuleApiSchema;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
import 'zova';
|
|
128
|
+
declare module 'zova' {
|
|
129
|
+
export interface IBeanScopeRecord {
|
|
130
|
+
'a-layoutprofile': ScopeModuleALayoutprofile;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** scope: end */
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { IApiActionOptions } from 'zova-module-a-api';
|
|
2
|
+
|
|
3
|
+
import { Api, BeanApiBase } from 'zova-module-a-api';
|
|
4
|
+
|
|
5
|
+
import type { components, paths } from './openapi/index.js';
|
|
6
|
+
|
|
7
|
+
import { OpenApiBaseURL } from './openapi/index.js';
|
|
8
|
+
|
|
9
|
+
/** Layoutprofile_load */
|
|
10
|
+
export const ApiApiLayoutprofileloadPath = '/api/layoutprofile/load';
|
|
11
|
+
export type ApiApiLayoutprofileloadPath = '/api/layoutprofile/load';
|
|
12
|
+
export type ApiApiLayoutprofileloadMethod = 'get';
|
|
13
|
+
export type ApiApiLayoutprofileloadRequestQuery =
|
|
14
|
+
paths[ApiApiLayoutprofileloadPath][ApiApiLayoutprofileloadMethod]['parameters']['query'];
|
|
15
|
+
export type ApiApiLayoutprofileloadResponseBody =
|
|
16
|
+
paths[ApiApiLayoutprofileloadPath][ApiApiLayoutprofileloadMethod]['responses']['200']['content']['application/json']['data'];
|
|
17
|
+
|
|
18
|
+
/** Layoutprofile_save */
|
|
19
|
+
export const ApiApiLayoutprofilesavePath = '/api/layoutprofile/save';
|
|
20
|
+
export type ApiApiLayoutprofilesavePath = '/api/layoutprofile/save';
|
|
21
|
+
export type ApiApiLayoutprofilesaveMethod = 'post';
|
|
22
|
+
export type ApiApiLayoutprofilesaveRequestBody =
|
|
23
|
+
components['schemas']['a-layoutprofile.dto.layoutProfileSave'];
|
|
24
|
+
export type ApiApiLayoutprofilesaveResponseBody =
|
|
25
|
+
paths[ApiApiLayoutprofilesavePath][ApiApiLayoutprofilesaveMethod]['responses']['200']['content']['application/json']['data'];
|
|
26
|
+
|
|
27
|
+
/** Layoutprofile_reset */
|
|
28
|
+
export const ApiApiLayoutprofileresetPath = '/api/layoutprofile/reset';
|
|
29
|
+
export type ApiApiLayoutprofileresetPath = '/api/layoutprofile/reset';
|
|
30
|
+
export type ApiApiLayoutprofileresetMethod = 'delete';
|
|
31
|
+
export type ApiApiLayoutprofileresetRequestQuery =
|
|
32
|
+
paths[ApiApiLayoutprofileresetPath][ApiApiLayoutprofileresetMethod]['parameters']['query'];
|
|
33
|
+
export type ApiApiLayoutprofileresetResponseBody =
|
|
34
|
+
paths[ApiApiLayoutprofileresetPath][ApiApiLayoutprofileresetMethod]['responses']['200']['content']['application/json']['data'];
|
|
35
|
+
|
|
36
|
+
@Api()
|
|
37
|
+
export class ApiLayoutprofile extends BeanApiBase {
|
|
38
|
+
load(
|
|
39
|
+
options: {
|
|
40
|
+
query: ApiApiLayoutprofileloadRequestQuery;
|
|
41
|
+
} & IApiActionOptions,
|
|
42
|
+
) {
|
|
43
|
+
return this.$fetch.get<any, ApiApiLayoutprofileloadResponseBody>(
|
|
44
|
+
ApiApiLayoutprofileloadPath,
|
|
45
|
+
this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
save(body: ApiApiLayoutprofilesaveRequestBody, options?: IApiActionOptions) {
|
|
50
|
+
return this.$fetch.post<any, ApiApiLayoutprofilesaveResponseBody>(
|
|
51
|
+
ApiApiLayoutprofilesavePath,
|
|
52
|
+
body,
|
|
53
|
+
this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
reset(
|
|
58
|
+
options: {
|
|
59
|
+
query: ApiApiLayoutprofileresetRequestQuery;
|
|
60
|
+
} & IApiActionOptions,
|
|
61
|
+
) {
|
|
62
|
+
return this.$fetch.delete<any, ApiApiLayoutprofileresetResponseBody>(
|
|
63
|
+
ApiApiLayoutprofileresetPath,
|
|
64
|
+
this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
}
|