cabloy 5.1.64 → 5.1.65
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/vona/pnpm-lock.yaml +19 -10
- package/vona/src/suite/a-training/modules/training-record/src/entity/record.tsx +1 -7
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordResItem.tsx +3 -4
- package/zova/packages-cli/cli/package.json +2 -2
- package/zova/packages-cli/cli-set-front/cli/templates/rest/component.ts +3 -2
- package/zova/packages-cli/cli-set-front/package.json +1 -1
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +3 -3
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/component/blockTable.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/component/blockToolbarBulk.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/index.ts +57 -9
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionOperationsRow.tsx +34 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/actionCreate/controller.tsx +2 -2
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockTable/controller.tsx +44 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/{blockDetailsToolbarBulk → blockToolbarBulk}/controller.tsx +3 -3
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/config/locale/en-us.ts +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/config/locale/zh-cn.ts +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/detail/detailsActionRow.ts +24 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/detail/index.ts +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/permissions.ts +4 -0
- package/zova/src/suite-vendor/a-zova/package.json +2 -2
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/component/blockDetailsToolbarBulk.ts +0 -31
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/vona/pnpm-lock.yaml
CHANGED
|
@@ -7418,6 +7418,9 @@ packages:
|
|
|
7418
7418
|
zova-module-a-openapi@5.1.34:
|
|
7419
7419
|
resolution: {integrity: sha512-6Sd+lPURN63tXCOn1FufB6HJYs3OVLQA6lusdnFruq43CT8GDe4kwL8oGAYtKdDJlDBx/++x9Web+40/5Moxpg==}
|
|
7420
7420
|
|
|
7421
|
+
zova-module-a-openapi@5.1.35:
|
|
7422
|
+
resolution: {integrity: sha512-DT7KUxOpLAWfCvXkBvE4VPfTv+2zlMEGQuFg5QI00GNaSCEs7fmB4nNWDf6cZRr4OBTXOzYAmfgDoM4q19/V9g==}
|
|
7423
|
+
|
|
7421
7424
|
zova-module-a-router@5.1.26:
|
|
7422
7425
|
resolution: {integrity: sha512-TMNPX62+haeqNk0KejrH6ID5HLdi6CngRC7B1XsnjqKR8E0eQJL1YxxrPkaf4AQQKc9c9BHjRdL6EEZFqintiQ==}
|
|
7423
7426
|
|
|
@@ -7463,14 +7466,14 @@ packages:
|
|
|
7463
7466
|
zova-suite-a-zova@5.1.102:
|
|
7464
7467
|
resolution: {integrity: sha512-R5HB45pBHN9lZhWRmCuWH0DSMcDb6iBsgCQojxSZNsD8ttSCvWyu2FwNAmCQFguwEuPyZw8ZZndwr/8HAU3IxQ==}
|
|
7465
7468
|
|
|
7466
|
-
zova-suite-a-zova@5.1.
|
|
7467
|
-
resolution: {integrity: sha512-
|
|
7469
|
+
zova-suite-a-zova@5.1.104:
|
|
7470
|
+
resolution: {integrity: sha512-PO30MMsQOznp6yq04yn3m2Lse4DxFl6MLyVWEhhrDcqTlyl67L/kNV2cEBmyW8MWoEX0SbEbHYmVZKOTie7lmg==}
|
|
7468
7471
|
|
|
7469
7472
|
zova@5.1.103:
|
|
7470
7473
|
resolution: {integrity: sha512-AR+Pk9hozKvB6/R/fZ4WPtKX4I0TJxmHx8Ao8dpLovlXhacYi50dUHOTxUQDavwspkWjMDinNqjQWo2MpAVc9g==}
|
|
7471
7474
|
|
|
7472
|
-
zova@5.1.
|
|
7473
|
-
resolution: {integrity: sha512-
|
|
7475
|
+
zova@5.1.105:
|
|
7476
|
+
resolution: {integrity: sha512-rE5TH1AhEr9fp6uhMCSuW83UhMjHGHqDq9iXm3nmzU95HbwBVO/uInCSklypeQ0ahvaJnl8MXKg6viinvix3lg==}
|
|
7474
7477
|
|
|
7475
7478
|
zwitch@1.0.5:
|
|
7476
7479
|
resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}
|
|
@@ -13036,6 +13039,12 @@ snapshots:
|
|
|
13036
13039
|
openapi3-ts: 4.6.0
|
|
13037
13040
|
typestyle: 2.4.0
|
|
13038
13041
|
|
|
13042
|
+
zova-module-a-openapi@5.1.35:
|
|
13043
|
+
dependencies:
|
|
13044
|
+
'@cabloy/json-schema-to-zod': 2.6.4
|
|
13045
|
+
openapi3-ts: 4.6.0
|
|
13046
|
+
typestyle: 2.4.0
|
|
13047
|
+
|
|
13039
13048
|
zova-module-a-router@5.1.26: {}
|
|
13040
13049
|
|
|
13041
13050
|
zova-module-a-routerstack@5.1.23: {}
|
|
@@ -13108,7 +13117,7 @@ snapshots:
|
|
|
13108
13117
|
table-identity: link:packages-utils/table-identity
|
|
13109
13118
|
vue: 3.5.38(typescript@5.9.3)
|
|
13110
13119
|
zod: '@cabloy/zod@4.3.6'
|
|
13111
|
-
zova: 5.1.
|
|
13120
|
+
zova: 5.1.105(typescript@5.9.3)(vue@3.5.38(typescript@5.9.3))
|
|
13112
13121
|
zova-jsx: 1.1.63(typescript@5.9.3)
|
|
13113
13122
|
zova-module-a-api: 5.1.18
|
|
13114
13123
|
zova-module-a-bean: 5.1.28
|
|
@@ -13118,7 +13127,7 @@ snapshots:
|
|
|
13118
13127
|
zova-module-a-icon: 5.1.23
|
|
13119
13128
|
zova-module-a-interceptor: 5.1.26
|
|
13120
13129
|
zova-module-a-model: 5.1.27(vue@3.5.38(typescript@5.9.3))
|
|
13121
|
-
zova-module-a-openapi: 5.1.
|
|
13130
|
+
zova-module-a-openapi: 5.1.35
|
|
13122
13131
|
zova-module-a-router: 5.1.26
|
|
13123
13132
|
zova-module-a-routertabs: 5.1.29
|
|
13124
13133
|
zova-module-a-ssr: 5.1.23
|
|
@@ -13196,7 +13205,7 @@ snapshots:
|
|
|
13196
13205
|
- typescript
|
|
13197
13206
|
- vue
|
|
13198
13207
|
|
|
13199
|
-
zova-suite-a-zova@5.1.
|
|
13208
|
+
zova-suite-a-zova@5.1.104(typescript@5.9.3)(vue@3.5.38(typescript@5.9.3)):
|
|
13200
13209
|
dependencies:
|
|
13201
13210
|
zova-module-a-api: 5.1.18
|
|
13202
13211
|
zova-module-a-app: 5.1.21
|
|
@@ -13212,7 +13221,7 @@ snapshots:
|
|
|
13212
13221
|
zova-module-a-logger: 5.1.23
|
|
13213
13222
|
zova-module-a-meta: 5.1.18
|
|
13214
13223
|
zova-module-a-model: 5.1.27(vue@3.5.38(typescript@5.9.3))
|
|
13215
|
-
zova-module-a-openapi: 5.1.
|
|
13224
|
+
zova-module-a-openapi: 5.1.35
|
|
13216
13225
|
zova-module-a-router: 5.1.26
|
|
13217
13226
|
zova-module-a-routerstack: 5.1.23
|
|
13218
13227
|
zova-module-a-routertabs: 5.1.29
|
|
@@ -13241,10 +13250,10 @@ snapshots:
|
|
|
13241
13250
|
- typescript
|
|
13242
13251
|
- vue
|
|
13243
13252
|
|
|
13244
|
-
zova@5.1.
|
|
13253
|
+
zova@5.1.105(typescript@5.9.3)(vue@3.5.38(typescript@5.9.3)):
|
|
13245
13254
|
dependencies:
|
|
13246
13255
|
zova-core: 5.1.57(typescript@5.9.3)
|
|
13247
|
-
zova-suite-a-zova: 5.1.
|
|
13256
|
+
zova-suite-a-zova: 5.1.104(typescript@5.9.3)(vue@3.5.38(typescript@5.9.3))
|
|
13248
13257
|
transitivePeerDependencies:
|
|
13249
13258
|
- '@vue/composition-api'
|
|
13250
13259
|
- debug
|
|
@@ -31,13 +31,7 @@ export class EntityRecord extends EntityBase {
|
|
|
31
31
|
@Api.field(v.required(), ZovaRender.visible(false))
|
|
32
32
|
studentId: TableIdentity;
|
|
33
33
|
|
|
34
|
-
@Api.field(
|
|
35
|
-
v.title($locale('Name')),
|
|
36
|
-
v.required(),
|
|
37
|
-
v.min(2),
|
|
38
|
-
ZovaRender.order(1),
|
|
39
|
-
ZovaRender.cell('basic-table:actionView'),
|
|
40
|
-
)
|
|
34
|
+
@Api.field(v.title($locale('Name')), v.required(), v.min(2), ZovaRender.order(1))
|
|
41
35
|
name: string;
|
|
42
36
|
|
|
43
37
|
@Api.field(v.title($locale('Score')), v.optional(), ZovaRender.order(2))
|
|
@@ -15,11 +15,10 @@ export interface IDtoOptionsDetailRecordResItem extends IDecoratorDtoOptions {}
|
|
|
15
15
|
blocks: [
|
|
16
16
|
ZovaRender.block('basic-details:blockDetails', {
|
|
17
17
|
blocks: [
|
|
18
|
-
ZovaRender.block('basic-details:
|
|
19
|
-
actions: [ZovaRender.
|
|
18
|
+
ZovaRender.block('basic-details:blockToolbarBulk', {
|
|
19
|
+
actions: [ZovaRender.detailsActionBulk('basic-details:actionCreate')],
|
|
20
20
|
}),
|
|
21
|
-
|
|
22
|
-
// ZovaRender.block('basic-page:blockPager'),
|
|
21
|
+
ZovaRender.block('basic-details:blockTable'),
|
|
23
22
|
],
|
|
24
23
|
}),
|
|
25
24
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.82",
|
|
4
4
|
"gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
|
|
5
5
|
"description": "zova cli",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@cabloy/process-helper": "^3.1.8",
|
|
45
45
|
"fs-extra": "^11.3.5",
|
|
46
46
|
"semver": "^7.6.2",
|
|
47
|
-
"zova-cli-set-front": "^1.2.
|
|
47
|
+
"zova-cli-set-front": "^1.2.80"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"clean-package": "^2.2.0",
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
IResourceFormFieldRecord,
|
|
5
5
|
IResourceTableCellRecord,
|
|
6
6
|
IResourceTableActionRowRecord,
|
|
7
|
+
IResourceDetailsActionRowRecord,
|
|
7
8
|
IResourceFormActionRowRecord,
|
|
8
9
|
IResourceTableActionBulkRecord,
|
|
9
10
|
IResourceDetailsActionBulkRecord,
|
|
@@ -44,9 +45,9 @@ export function schemaRenderFieldJsx<T extends z.ZodType>(
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
export function schemaRenderCell<
|
|
47
|
-
K extends keyof (IResourceTableCellRecord & IResourceTableActionRowRecord),
|
|
48
|
+
K extends keyof (IResourceTableCellRecord & IResourceTableActionRowRecord & IResourceDetailsActionRowRecord),
|
|
48
49
|
T extends z.ZodType,
|
|
49
|
-
>(render: K, options?: (IResourceTableCellRecord & IResourceTableActionRowRecord)[K]) {
|
|
50
|
+
>(render: K, options?: (IResourceTableCellRecord & IResourceTableActionRowRecord & IResourceDetailsActionRowRecord)[K]) {
|
|
50
51
|
return function (schema: T): T {
|
|
51
52
|
const options2 = options !== undefined ? { render, columnProps: options } : { render };
|
|
52
53
|
return _generalSchemaRest(schema, options2, 'table');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.106",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "A vue3 framework with ioc",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"zova-core": "^5.1.57",
|
|
49
|
-
"zova-suite-a-zova": "^5.1.
|
|
49
|
+
"zova-suite-a-zova": "^5.1.105"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"clean-package": "^2.2.0",
|
package/zova/pnpm-lock.yaml
CHANGED
|
@@ -392,7 +392,7 @@ importers:
|
|
|
392
392
|
specifier: ^7.6.2
|
|
393
393
|
version: 7.8.4
|
|
394
394
|
zova-cli-set-front:
|
|
395
|
-
specifier: ^1.2.
|
|
395
|
+
specifier: ^1.2.79
|
|
396
396
|
version: link:../cli-set-front
|
|
397
397
|
devDependencies:
|
|
398
398
|
clean-package:
|
|
@@ -813,7 +813,7 @@ importers:
|
|
|
813
813
|
specifier: ^5.1.57
|
|
814
814
|
version: link:../zova-core
|
|
815
815
|
zova-suite-a-zova:
|
|
816
|
-
specifier: ^5.1.
|
|
816
|
+
specifier: ^5.1.104
|
|
817
817
|
version: link:../../src/suite-vendor/a-zova
|
|
818
818
|
devDependencies:
|
|
819
819
|
clean-package:
|
|
@@ -968,7 +968,7 @@ importers:
|
|
|
968
968
|
specifier: ^5.1.27
|
|
969
969
|
version: link:modules/a-model
|
|
970
970
|
zova-module-a-openapi:
|
|
971
|
-
specifier: ^5.1.
|
|
971
|
+
specifier: ^5.1.35
|
|
972
972
|
version: link:modules/a-openapi
|
|
973
973
|
zova-module-a-router:
|
|
974
974
|
specifier: ^5.1.26
|
package/zova/src/suite/cabloy-basic/modules/basic-details/src/.metadata/component/blockTable.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
+
|
|
3
|
+
import { defineComponent } from 'vue';
|
|
4
|
+
import { prepareComponentOptions, useController } from 'zova';
|
|
5
|
+
|
|
6
|
+
import type { ControllerBlockTableProps } from '../../component/blockTable/controller.jsx';
|
|
7
|
+
|
|
8
|
+
import { ControllerBlockTable } from '../../component/blockTable/controller.jsx';
|
|
9
|
+
export type ZBlockTableProps = {
|
|
10
|
+
controllerRef?: (ref: ControllerBlockTable) => void;
|
|
11
|
+
} & ControllerBlockTableProps;
|
|
12
|
+
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerBlockTableProps,
|
|
15
|
+
keyof typeof ControllerBlockTable.$propsDefault
|
|
16
|
+
>;
|
|
17
|
+
declare module 'zova-module-basic-details' {
|
|
18
|
+
export interface ControllerBlockTable {
|
|
19
|
+
$props: ControllerInnerProps;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const ZBlockTable = defineComponent((_props: ZBlockTableProps) => {
|
|
24
|
+
useController(ControllerBlockTable, undefined, undefined);
|
|
25
|
+
return () => {};
|
|
26
|
+
}, prepareComponentOptions(ControllerBlockTable.$componentOptions));
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'basic-details:blockTable': ControllerBlockTableProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
+
|
|
3
|
+
import { defineComponent } from 'vue';
|
|
4
|
+
import { prepareComponentOptions, useController } from 'zova';
|
|
5
|
+
|
|
6
|
+
import type { ControllerBlockToolbarBulkProps } from '../../component/blockToolbarBulk/controller.jsx';
|
|
7
|
+
|
|
8
|
+
import { ControllerBlockToolbarBulk } from '../../component/blockToolbarBulk/controller.jsx';
|
|
9
|
+
export type ZBlockToolbarBulkProps = {
|
|
10
|
+
controllerRef?: (ref: ControllerBlockToolbarBulk) => void;
|
|
11
|
+
} & ControllerBlockToolbarBulkProps;
|
|
12
|
+
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerBlockToolbarBulkProps,
|
|
15
|
+
keyof typeof ControllerBlockToolbarBulk.$propsDefault
|
|
16
|
+
>;
|
|
17
|
+
declare module 'zova-module-basic-details' {
|
|
18
|
+
export interface ControllerBlockToolbarBulk {
|
|
19
|
+
$props: ControllerInnerProps;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const ZBlockToolbarBulk = defineComponent((_props: ZBlockToolbarBulkProps) => {
|
|
24
|
+
useController(ControllerBlockToolbarBulk, undefined, undefined);
|
|
25
|
+
return () => {};
|
|
26
|
+
}, prepareComponentOptions(ControllerBlockToolbarBulk.$componentOptions));
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'basic-details:blockToolbarBulk': ControllerBlockToolbarBulkProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/** controller: begin */
|
|
3
3
|
export * from '../component/actionCreate/controller.jsx';
|
|
4
4
|
export * from '../component/blockDetails/controller.jsx';
|
|
5
|
-
export * from '../component/
|
|
5
|
+
export * from '../component/blockTable/controller.jsx';
|
|
6
|
+
export * from '../component/blockToolbarBulk/controller.jsx';
|
|
6
7
|
export * from '../component/formFieldDetails/controller.jsx';
|
|
7
8
|
|
|
8
9
|
import 'zova';
|
|
@@ -22,7 +23,12 @@ declare module 'zova-module-basic-details' {
|
|
|
22
23
|
get scope(): ScopeModuleBasicDetails;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
export interface
|
|
26
|
+
export interface ControllerBlockTable {
|
|
27
|
+
/** @internal */
|
|
28
|
+
get scope(): ScopeModuleBasicDetails;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ControllerBlockToolbarBulk {
|
|
26
32
|
/** @internal */
|
|
27
33
|
get scope(): ScopeModuleBasicDetails;
|
|
28
34
|
}
|
|
@@ -36,14 +42,16 @@ declare module 'zova-module-basic-details' {
|
|
|
36
42
|
/** controller: begin */
|
|
37
43
|
import { ControllerActionCreate } from '../component/actionCreate/controller.jsx';
|
|
38
44
|
import { ControllerBlockDetails } from '../component/blockDetails/controller.jsx';
|
|
39
|
-
import {
|
|
45
|
+
import { ControllerBlockTable } from '../component/blockTable/controller.jsx';
|
|
46
|
+
import { ControllerBlockToolbarBulk } from '../component/blockToolbarBulk/controller.jsx';
|
|
40
47
|
import { ControllerFormFieldDetails } from '../component/formFieldDetails/controller.jsx';
|
|
41
48
|
import 'zova';
|
|
42
49
|
declare module 'zova' {
|
|
43
50
|
export interface IBeanRecordLocal {
|
|
44
51
|
'basic-details.controller.actionCreate': ControllerActionCreate;
|
|
45
52
|
'basic-details.controller.blockDetails': ControllerBlockDetails;
|
|
46
|
-
'basic-details.controller.
|
|
53
|
+
'basic-details.controller.blockTable': ControllerBlockTable;
|
|
54
|
+
'basic-details.controller.blockToolbarBulk': ControllerBlockToolbarBulk;
|
|
47
55
|
'basic-details.controller.formFieldDetails': ControllerFormFieldDetails;
|
|
48
56
|
}
|
|
49
57
|
}
|
|
@@ -54,14 +62,17 @@ export * from './component/actionCreate.js';
|
|
|
54
62
|
import { ZActionCreate } from './component/actionCreate.js';
|
|
55
63
|
export * from './component/blockDetails.js';
|
|
56
64
|
import { ZBlockDetails } from './component/blockDetails.js';
|
|
57
|
-
export * from './component/
|
|
58
|
-
import {
|
|
65
|
+
export * from './component/blockTable.js';
|
|
66
|
+
import { ZBlockTable } from './component/blockTable.js';
|
|
67
|
+
export * from './component/blockToolbarBulk.js';
|
|
68
|
+
import { ZBlockToolbarBulk } from './component/blockToolbarBulk.js';
|
|
59
69
|
export * from './component/formFieldDetails.js';
|
|
60
70
|
import { ZFormFieldDetails } from './component/formFieldDetails.js';
|
|
61
71
|
export const components = {
|
|
62
72
|
'actionCreate': ZActionCreate,
|
|
63
73
|
'blockDetails': ZBlockDetails,
|
|
64
|
-
'
|
|
74
|
+
'blockTable': ZBlockTable,
|
|
75
|
+
'blockToolbarBulk': ZBlockToolbarBulk,
|
|
65
76
|
'formFieldDetails': ZFormFieldDetails,
|
|
66
77
|
};
|
|
67
78
|
import 'zova';
|
|
@@ -69,17 +80,54 @@ declare module 'zova' {
|
|
|
69
80
|
export interface IComponentRecord {
|
|
70
81
|
'basic-details:actionCreate': ControllerActionCreate;
|
|
71
82
|
'basic-details:blockDetails': ControllerBlockDetails;
|
|
72
|
-
'basic-details:
|
|
83
|
+
'basic-details:blockTable': ControllerBlockTable;
|
|
84
|
+
'basic-details:blockToolbarBulk': ControllerBlockToolbarBulk;
|
|
73
85
|
'basic-details:formFieldDetails': ControllerFormFieldDetails;
|
|
74
86
|
}
|
|
75
87
|
export interface IZovaComponentRecord {
|
|
76
88
|
'basic-details:actionCreate': typeof ZActionCreate;
|
|
77
89
|
'basic-details:blockDetails': typeof ZBlockDetails;
|
|
78
|
-
'basic-details:
|
|
90
|
+
'basic-details:blockTable': typeof ZBlockTable;
|
|
91
|
+
'basic-details:blockToolbarBulk': typeof ZBlockToolbarBulk;
|
|
79
92
|
'basic-details:formFieldDetails': typeof ZFormFieldDetails;
|
|
80
93
|
}
|
|
81
94
|
}
|
|
82
95
|
/** components: end */
|
|
96
|
+
/** tableCell: begin */
|
|
97
|
+
export * from '../bean/tableCell.actionOperationsRow.jsx';
|
|
98
|
+
import { ITableCellOptionsActionOperationsRow } from '../bean/tableCell.actionOperationsRow.jsx';
|
|
99
|
+
import 'zova-module-a-table';
|
|
100
|
+
declare module 'zova-module-a-table' {
|
|
101
|
+
|
|
102
|
+
export interface ITableCellRecord {
|
|
103
|
+
'basic-details:actionOperationsRow': ITableCellOptionsActionOperationsRow;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
declare module 'zova-module-basic-details' {
|
|
109
|
+
|
|
110
|
+
export interface TableCellActionOperationsRow {
|
|
111
|
+
/** @internal */
|
|
112
|
+
get scope(): ScopeModuleBasicDetails;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface TableCellActionOperationsRow {
|
|
116
|
+
get $beanFullName(): 'basic-details.tableCell.actionOperationsRow';
|
|
117
|
+
get $onionName(): 'basic-details:actionOperationsRow';
|
|
118
|
+
get $onionOptions(): ITableCellOptionsActionOperationsRow;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/** tableCell: end */
|
|
122
|
+
/** tableCell: begin */
|
|
123
|
+
import { TableCellActionOperationsRow } from '../bean/tableCell.actionOperationsRow.jsx';
|
|
124
|
+
import 'zova';
|
|
125
|
+
declare module 'zova' {
|
|
126
|
+
export interface IBeanRecordGeneral {
|
|
127
|
+
'basic-details.tableCell.actionOperationsRow': TableCellActionOperationsRow;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/** tableCell: end */
|
|
83
131
|
/** locale: begin */
|
|
84
132
|
import { locales } from './locales.js';
|
|
85
133
|
/** locale: end */
|
package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionOperationsRow.tsx
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
IResourceDetailsActionRowOptionsBase,
|
|
3
|
+
IResourceRenderDetailsActionRowOptionsAction,
|
|
4
|
+
} from 'zova-module-a-openapi';
|
|
5
|
+
import type {
|
|
6
|
+
IJsxRenderContextTableCell,
|
|
7
|
+
ITableCellRender,
|
|
8
|
+
NextTableCellRender,
|
|
9
|
+
} from 'zova-module-a-table';
|
|
10
|
+
|
|
11
|
+
import { BeanBase } from 'zova';
|
|
12
|
+
import { TableCell } from 'zova-module-a-table';
|
|
13
|
+
|
|
14
|
+
declare module 'zova-module-a-openapi' {
|
|
15
|
+
export interface IResourceDetailsActionRowRecord {
|
|
16
|
+
'basic-details:actionOperationsRow'?: ITableCellOptionsActionOperationsRow;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ITableCellOptionsActionOperationsRow extends IResourceDetailsActionRowOptionsBase {
|
|
21
|
+
actions?: IResourceRenderDetailsActionRowOptionsAction[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@TableCell<ITableCellOptionsActionOperationsRow>()
|
|
25
|
+
export class TableCellActionOperationsRow extends BeanBase implements ITableCellRender {
|
|
26
|
+
render(
|
|
27
|
+
_options: ITableCellOptionsActionOperationsRow,
|
|
28
|
+
_renderContext: IJsxRenderContextTableCell,
|
|
29
|
+
next: NextTableCellRender,
|
|
30
|
+
) {
|
|
31
|
+
return <div>sssss</div>;
|
|
32
|
+
return next();
|
|
33
|
+
}
|
|
34
|
+
}
|
package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/actionCreate/controller.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export interface ControllerActionCreateProps extends IResourceDetailsActionBulkO
|
|
|
17
17
|
|
|
18
18
|
@Controller()
|
|
19
19
|
export class ControllerActionCreate extends BeanControllerBase {
|
|
20
|
-
static $propsDefault = {};
|
|
20
|
+
static $propsDefault = { class: 'btn btn-info join-item' };
|
|
21
21
|
static $componentOptions: IComponentOptions = { inheritAttrs: false, deepExtendDefault: true };
|
|
22
22
|
|
|
23
23
|
@Use({ injectionScope: 'host' })
|
|
@@ -35,7 +35,7 @@ export class ControllerActionCreate extends BeanControllerBase {
|
|
|
35
35
|
// await this.$performCommand('basic-commands:create', this.$props, this.$$renderContext);
|
|
36
36
|
}}
|
|
37
37
|
>
|
|
38
|
-
{this.scope.locale.
|
|
38
|
+
{this.scope.locale.AddDetail()}
|
|
39
39
|
</button>
|
|
40
40
|
);
|
|
41
41
|
}
|
package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/blockTable/controller.tsx
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { IComponentOptions } from 'zova';
|
|
2
|
+
import type { IResourceBlockOptionsBase, IJsxRenderContextDetails } from 'zova-module-a-openapi';
|
|
3
|
+
|
|
4
|
+
import { BeanControllerBase, Use } from 'zova';
|
|
5
|
+
import { Controller } from 'zova-module-a-bean';
|
|
6
|
+
import { BeanControllerTableBase, ZTable } from 'zova-module-a-table';
|
|
7
|
+
|
|
8
|
+
declare module 'zova-module-a-openapi' {
|
|
9
|
+
export interface IResourceBlockRecord {
|
|
10
|
+
'basic-details:blockTable'?: ControllerBlockTableProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ControllerBlockTableProps extends IResourceBlockOptionsBase {}
|
|
15
|
+
|
|
16
|
+
@Controller()
|
|
17
|
+
export class ControllerBlockTable<TData extends {} = {}> extends BeanControllerBase {
|
|
18
|
+
static $propsDefault = {};
|
|
19
|
+
static $componentOptions: IComponentOptions = { inheritAttrs: false, deepExtendDefault: true };
|
|
20
|
+
|
|
21
|
+
tableRef: BeanControllerTableBase<TData>;
|
|
22
|
+
|
|
23
|
+
@Use({ injectionScope: 'host' })
|
|
24
|
+
$$renderContext: IJsxRenderContextDetails;
|
|
25
|
+
|
|
26
|
+
protected async __init__() {}
|
|
27
|
+
|
|
28
|
+
protected render() {
|
|
29
|
+
const { $$details } = this.$$renderContext;
|
|
30
|
+
const data = [{ id: 1, name: 'yang' }] as any;
|
|
31
|
+
return (
|
|
32
|
+
<ZTable<TData>
|
|
33
|
+
class={this.$props.class}
|
|
34
|
+
controllerRef={ref => {
|
|
35
|
+
this.tableRef = ref;
|
|
36
|
+
$$details.tableRef = ref as unknown as BeanControllerTableBase<{}>;
|
|
37
|
+
}}
|
|
38
|
+
data={data ?? ($$details.data as unknown as TData[])}
|
|
39
|
+
schema={$$details.schemaRow}
|
|
40
|
+
tableScope={$$details.jsxCelScope}
|
|
41
|
+
></ZTable>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -11,16 +11,16 @@ import { Controller } from 'zova-module-a-bean';
|
|
|
11
11
|
|
|
12
12
|
declare module 'zova-module-a-openapi' {
|
|
13
13
|
export interface IResourceBlockRecord {
|
|
14
|
-
'basic-details:
|
|
14
|
+
'basic-details:blockToolbarBulk'?: ControllerBlockToolbarBulkProps;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface ControllerBlockToolbarBulkProps extends IResourceBlockOptionsBase {
|
|
19
19
|
actions?: IResourceRenderDetailsActionBulkOptionsAction[];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@Controller()
|
|
23
|
-
export class
|
|
23
|
+
export class ControllerBlockToolbarBulk extends BeanControllerBase {
|
|
24
24
|
static $propsDefault = {};
|
|
25
25
|
static $componentOptions: IComponentOptions = { inheritAttrs: false, deepExtendDefault: true };
|
|
26
26
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { types } from 'typestyle';
|
|
2
|
+
import { TypeRenderComponentJsx } from 'zova-jsx';
|
|
3
|
+
|
|
4
|
+
import type { IPermissionHintDetailsActionRow } from '../permissions.js';
|
|
5
|
+
|
|
6
|
+
export type IResourceDetailsActionRowNameRecord = {
|
|
7
|
+
[KEY in keyof IResourceDetailsActionRowRecord as KEY extends `${string}:action${infer Name}`
|
|
8
|
+
? Uncapitalize<Name>
|
|
9
|
+
: KEY]: IResourceDetailsActionRowRecord[KEY];
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export interface IResourceDetailsActionRowRecord {}
|
|
13
|
+
|
|
14
|
+
export interface IResourceDetailsActionRowOptionsBase {
|
|
15
|
+
class?: any;
|
|
16
|
+
style?: types.NestedCSSProperties;
|
|
17
|
+
permission?: IPermissionHintDetailsActionRow;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IResourceRenderDetailsActionRowOptionsAction {
|
|
21
|
+
name?: keyof IResourceDetailsActionRowNameRecord; // not omit operationsRow
|
|
22
|
+
render?: keyof IResourceDetailsActionRowRecord | TypeRenderComponentJsx;
|
|
23
|
+
options?: IResourceDetailsActionRowOptionsBase;
|
|
24
|
+
}
|
|
@@ -35,6 +35,10 @@ export interface IPermissionHintTableActionBulk {
|
|
|
35
35
|
public?: boolean;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export interface IPermissionHintDetailsActionRow {
|
|
39
|
+
formScene?: TypeFormScene | TypeFormScene[];
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
export interface IPermissionHintDetailsActionBulk {
|
|
39
43
|
// actionInherit?: keyof IResourceDetailsActionBulkNameRecord;
|
|
40
44
|
// public?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-suite-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.105",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"zova-module-a-logger": "^5.1.23",
|
|
23
23
|
"zova-module-a-meta": "^5.1.18",
|
|
24
24
|
"zova-module-a-model": "^5.1.27",
|
|
25
|
-
"zova-module-a-openapi": "^5.1.
|
|
25
|
+
"zova-module-a-openapi": "^5.1.36",
|
|
26
26
|
"zova-module-a-router": "^5.1.26",
|
|
27
27
|
"zova-module-a-routerstack": "^5.1.23",
|
|
28
28
|
"zova-module-a-routertabs": "^5.1.29",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
-
|
|
3
|
-
import { defineComponent } from 'vue';
|
|
4
|
-
import { prepareComponentOptions, useController } from 'zova';
|
|
5
|
-
|
|
6
|
-
import type { ControllerBlockDetailsToolbarBulkProps } from '../../component/blockDetailsToolbarBulk/controller.jsx';
|
|
7
|
-
|
|
8
|
-
import { ControllerBlockDetailsToolbarBulk } from '../../component/blockDetailsToolbarBulk/controller.jsx';
|
|
9
|
-
export type ZBlockDetailsToolbarBulkProps = {
|
|
10
|
-
controllerRef?: (ref: ControllerBlockDetailsToolbarBulk) => void;
|
|
11
|
-
} & ControllerBlockDetailsToolbarBulkProps;
|
|
12
|
-
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
-
ControllerBlockDetailsToolbarBulkProps,
|
|
15
|
-
keyof typeof ControllerBlockDetailsToolbarBulk.$propsDefault
|
|
16
|
-
>;
|
|
17
|
-
declare module 'zova-module-basic-details' {
|
|
18
|
-
export interface ControllerBlockDetailsToolbarBulk {
|
|
19
|
-
$props: ControllerInnerProps;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const ZBlockDetailsToolbarBulk = defineComponent((_props: ZBlockDetailsToolbarBulkProps) => {
|
|
24
|
-
useController(ControllerBlockDetailsToolbarBulk, undefined, undefined);
|
|
25
|
-
return () => {};
|
|
26
|
-
}, prepareComponentOptions(ControllerBlockDetailsToolbarBulk.$componentOptions));
|
|
27
|
-
declare module 'zova-module-a-bean' {
|
|
28
|
-
export interface IVonaComponentRecord {
|
|
29
|
-
'basic-details:blockDetailsToolbarBulk': ControllerBlockDetailsToolbarBulkProps;
|
|
30
|
-
}
|
|
31
|
-
}
|