cabloy 5.1.68 → 5.1.69
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 +7 -0
- package/package.json +1 -1
- package/vona/src/suite/a-training/modules/training-record/src/entity/record.tsx +2 -2
- package/zova/packages-cli/cli/package.json +2 -2
- package/zova/packages-cli/cli-set-front/cli/templates/rest/render.ts +2 -0
- package/zova/packages-cli/cli-set-front/cli/templates/rest/rest.ts +14 -4
- 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 +14 -14
- package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsx +8 -0
- package/zova/src/suite-vendor/a-zova/modules/a-form/src/types/formField.ts +2 -0
- 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/rest.ts +3 -0
- package/zova/src/suite-vendor/a-zova/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -64,8 +64,8 @@ export class EntityRecord extends EntityBase {
|
|
|
64
64
|
v.title($locale('TrainingTime')),
|
|
65
65
|
v.optional(),
|
|
66
66
|
ZovaRender.order(6),
|
|
67
|
-
ZovaRender.field('basic-date:formFieldDate'),
|
|
68
|
-
ZovaRender.cell('basic-date:date'),
|
|
67
|
+
ZovaRender.field('basic-date:formFieldDate', { preset: 'DATE_FULL' }),
|
|
68
|
+
ZovaRender.cell('basic-date:date', { preset: 'DATE_FULL' }),
|
|
69
69
|
)
|
|
70
70
|
trainingTime?: Date;
|
|
71
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.90",
|
|
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.88"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"clean-package": "^2.2.0",
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
schemaRenderDisableNotifyChanged,
|
|
21
21
|
schemaRenderFieldSource,
|
|
22
22
|
schemaRenderLayout,
|
|
23
|
+
schemaRenderOnEffect,
|
|
23
24
|
schemaRenderOrder,
|
|
24
25
|
schemaRenderReadonly,
|
|
25
26
|
schemaRenderVisible,
|
|
@@ -32,6 +33,7 @@ export const ZovaRender = {
|
|
|
32
33
|
readonly: schemaRenderReadonly,
|
|
33
34
|
order: schemaRenderOrder,
|
|
34
35
|
disableNotifyChanged: schemaRenderDisableNotifyChanged,
|
|
36
|
+
onEffect: schemaRenderOnEffect,
|
|
35
37
|
fieldSource: schemaRenderFieldSource,
|
|
36
38
|
// component
|
|
37
39
|
field: schemaRenderField,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type z from 'zod';
|
|
2
2
|
|
|
3
|
-
import { TypeFormSchemaScene } from 'zova-module-a-openapi';
|
|
4
|
-
import { IResourceFormFieldLayoutOptions } from 'zova-module-a-openapi';
|
|
5
|
-
import { TypeSchemaScene } from 'zova-module-a-openapi';
|
|
6
|
-
import { TypeSchemaOrderLevel } from 'zova-module-a-openapi';
|
|
3
|
+
import type { TypeFormSchemaScene, TypeFormFieldOnEffect } from 'zova-module-a-openapi';
|
|
4
|
+
import type { IResourceFormFieldLayoutOptions } from 'zova-module-a-openapi';
|
|
5
|
+
import type { TypeSchemaScene } from 'zova-module-a-openapi';
|
|
6
|
+
import type { TypeSchemaOrderLevel } from 'zova-module-a-openapi';
|
|
7
7
|
|
|
8
8
|
import { _generalSchemaRest, _order } from './inner.ts';
|
|
9
9
|
|
|
@@ -47,6 +47,16 @@ export function schemaRenderDisableNotifyChanged<T extends z.ZodType>(
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export function schemaRenderOnEffect<T extends z.ZodType>(
|
|
51
|
+
onEffect: TypeFormFieldOnEffect,
|
|
52
|
+
scene?: TypeSchemaScene,
|
|
53
|
+
) {
|
|
54
|
+
return function (schema: T): T {
|
|
55
|
+
const options = { onEffect };
|
|
56
|
+
return _generalSchemaRest(schema, options, scene);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
50
60
|
export function schemaRenderFieldSource<T extends z.ZodType>(
|
|
51
61
|
fieldSource: string,
|
|
52
62
|
scene?: TypeSchemaScene,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.115",
|
|
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.58",
|
|
49
|
-
"zova-suite-a-zova": "^5.1.
|
|
49
|
+
"zova-suite-a-zova": "^5.1.114"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"clean-package": "^2.2.0",
|
package/zova/pnpm-lock.yaml
CHANGED
|
@@ -133,7 +133,7 @@ importers:
|
|
|
133
133
|
specifier: workspace:^
|
|
134
134
|
version: link:packages-zova/zova
|
|
135
135
|
zova-jsx:
|
|
136
|
-
specifier: ^1.1.
|
|
136
|
+
specifier: ^1.1.64
|
|
137
137
|
version: link:packages-utils/zova-jsx
|
|
138
138
|
zova-module-a-api:
|
|
139
139
|
specifier: workspace:^
|
|
@@ -672,7 +672,7 @@ importers:
|
|
|
672
672
|
specifier: ^3.5.38
|
|
673
673
|
version: 3.5.38(typescript@5.9.3)
|
|
674
674
|
zova-core:
|
|
675
|
-
specifier: ^5.1.
|
|
675
|
+
specifier: ^5.1.58
|
|
676
676
|
version: link:../../packages-zova/zova-core
|
|
677
677
|
devDependencies:
|
|
678
678
|
clean-package:
|
|
@@ -813,10 +813,10 @@ importers:
|
|
|
813
813
|
packages-zova/zova:
|
|
814
814
|
dependencies:
|
|
815
815
|
zova-core:
|
|
816
|
-
specifier: ^5.1.
|
|
816
|
+
specifier: ^5.1.58
|
|
817
817
|
version: link:../zova-core
|
|
818
818
|
zova-suite-a-zova:
|
|
819
|
-
specifier: ^5.1.
|
|
819
|
+
specifier: ^5.1.113
|
|
820
820
|
version: link:../../src/suite-vendor/a-zova
|
|
821
821
|
devDependencies:
|
|
822
822
|
clean-package:
|
|
@@ -877,8 +877,8 @@ importers:
|
|
|
877
877
|
specifier: ^1.1.9
|
|
878
878
|
version: 1.1.9
|
|
879
879
|
'@cabloy/zod-query':
|
|
880
|
-
specifier: ^2.1.
|
|
881
|
-
version: 2.1.
|
|
880
|
+
specifier: ^2.1.12
|
|
881
|
+
version: 2.1.12
|
|
882
882
|
'@types/js-cookie':
|
|
883
883
|
specifier: ^3.0.6
|
|
884
884
|
version: 3.0.6
|
|
@@ -998,10 +998,10 @@ importers:
|
|
|
998
998
|
specifier: ^5.1.36
|
|
999
999
|
version: link:modules/a-table
|
|
1000
1000
|
zova-module-a-zod:
|
|
1001
|
-
specifier: ^5.1.
|
|
1001
|
+
specifier: ^5.1.34
|
|
1002
1002
|
version: link:modules/a-zod
|
|
1003
1003
|
zova-module-a-zova:
|
|
1004
|
-
specifier: ^5.1.
|
|
1004
|
+
specifier: ^5.1.78
|
|
1005
1005
|
version: link:modules/a-zova
|
|
1006
1006
|
|
|
1007
1007
|
src/suite-vendor/a-zova/modules/a-api:
|
|
@@ -1297,8 +1297,8 @@ importers:
|
|
|
1297
1297
|
specifier: ^1.1.9
|
|
1298
1298
|
version: 1.1.9
|
|
1299
1299
|
'@cabloy/zod-query':
|
|
1300
|
-
specifier: ^2.1.
|
|
1301
|
-
version: 2.1.
|
|
1300
|
+
specifier: ^2.1.12
|
|
1301
|
+
version: 2.1.12
|
|
1302
1302
|
zod:
|
|
1303
1303
|
specifier: npm:@cabloy/zod@4.3.8
|
|
1304
1304
|
version: '@cabloy/zod@4.3.8'
|
|
@@ -1340,7 +1340,7 @@ importers:
|
|
|
1340
1340
|
specifier: ^3.7.2
|
|
1341
1341
|
version: 3.7.2
|
|
1342
1342
|
zova-jsx:
|
|
1343
|
-
specifier: ^1.1.
|
|
1343
|
+
specifier: ^1.1.64
|
|
1344
1344
|
version: link:../../../../../packages-utils/zova-jsx
|
|
1345
1345
|
devDependencies:
|
|
1346
1346
|
'@cabloy/cli':
|
|
@@ -2092,8 +2092,8 @@ packages:
|
|
|
2092
2092
|
'@cabloy/zod-openapi@1.1.9':
|
|
2093
2093
|
resolution: {integrity: sha512-rAZz0/OeQ2WjNGJlj8RuvI5n106VSUQQ1JrFncRPY6mme98RQThMOVPObx299yBA5QQRCR6nkl0tGMHG3q6uVg==}
|
|
2094
2094
|
|
|
2095
|
-
'@cabloy/zod-query@2.1.
|
|
2096
|
-
resolution: {integrity: sha512-
|
|
2095
|
+
'@cabloy/zod-query@2.1.12':
|
|
2096
|
+
resolution: {integrity: sha512-6P7hEmX52bWe27lsGi+OkYSbGt7d7M1Yt4YnCDXbRilwlgZ28STbFhIHpW1gcINa020P5xWPVvAfimu8PGU3PA==}
|
|
2097
2097
|
|
|
2098
2098
|
'@cabloy/zod-to-openapi@8.1.6':
|
|
2099
2099
|
resolution: {integrity: sha512-pb9iUQuvi5SCYHevqeNBVZO65LguRDSvkHlJ6gxxOXNYQRcObwbIzxLag9/ZUj3GejAPPUNJgjb0CPaYM5s98Q==}
|
|
@@ -8459,7 +8459,7 @@ snapshots:
|
|
|
8459
8459
|
dependencies:
|
|
8460
8460
|
'@cabloy/zod-to-openapi': 8.1.6
|
|
8461
8461
|
|
|
8462
|
-
'@cabloy/zod-query@2.1.
|
|
8462
|
+
'@cabloy/zod-query@2.1.12': {}
|
|
8463
8463
|
|
|
8464
8464
|
'@cabloy/zod-to-openapi@8.1.6':
|
|
8465
8465
|
dependencies:
|
|
@@ -69,6 +69,14 @@ export class ControllerFormField<TParentData extends {} = {}> extends BeanContro
|
|
|
69
69
|
return this._getFieldBehaviors();
|
|
70
70
|
},
|
|
71
71
|
});
|
|
72
|
+
this.$watch(
|
|
73
|
+
() => this.$$form.getFieldValue(this.name),
|
|
74
|
+
(newValue, oldValue) => {
|
|
75
|
+
if (newValue === oldValue) return;
|
|
76
|
+
// do something
|
|
77
|
+
console.log(this.name, newValue);
|
|
78
|
+
},
|
|
79
|
+
);
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
public get form() {
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
IJsxRenderContextBase,
|
|
7
7
|
IResourceFormFieldLayoutOptions,
|
|
8
8
|
ISchemaRenderComponentPresetRecord,
|
|
9
|
+
TypeFormFieldOnEffect,
|
|
9
10
|
TypeFormFieldRenderComponent,
|
|
10
11
|
TypeFormFieldRenderComponentProvider,
|
|
11
12
|
TypeRenderComponentPreset,
|
|
@@ -61,6 +62,7 @@ export interface IFormFieldOptionsBase<
|
|
|
61
62
|
readonly?: boolean;
|
|
62
63
|
required?: boolean;
|
|
63
64
|
disableNotifyChanged?: boolean;
|
|
65
|
+
onEffect?: TypeFormFieldOnEffect;
|
|
64
66
|
validators?: IFormFieldValidatorsOptionsBase;
|
|
65
67
|
// onChange?: (e: Event) => void; // allow set to null, but not provide null type
|
|
66
68
|
// onInput?: (e: Event) => void; // allow set to null, but not provide null type
|
|
@@ -11,6 +11,8 @@ import { IResourceRenderBlockOptionsBlock } from './resource/block.js';
|
|
|
11
11
|
import { IResourceFormFieldRecord } from './resource/formField.js';
|
|
12
12
|
import { IResourceTableActionRowRecord } from './resource/tableActionRow.js';
|
|
13
13
|
|
|
14
|
+
export type TypeFormFieldOnEffect = (value: any) => void;
|
|
15
|
+
|
|
14
16
|
export interface ISchemaRenderComponentPresetRecord extends IResourceFormFieldRecord {}
|
|
15
17
|
|
|
16
18
|
export interface ISchemaObjectExtensionFieldRest {
|
|
@@ -21,6 +23,7 @@ export interface ISchemaObjectExtensionFieldRest {
|
|
|
21
23
|
'order'?: number;
|
|
22
24
|
'disableNotifyChanged'?: boolean;
|
|
23
25
|
'readonly'?: boolean;
|
|
26
|
+
'onEffect'?: TypeFormFieldOnEffect;
|
|
24
27
|
//
|
|
25
28
|
'render'?: TypeFormFieldRenderComponentNormal | TypeTableCellRenderComponentNormal;
|
|
26
29
|
'table'?: Omit<ISchemaObjectExtensionFieldRest, TypeSchemaScene>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-suite-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.114",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"zova-module-a-boundary": "^5.1.21",
|
|
17
17
|
"zova-module-a-command": "^5.1.33",
|
|
18
18
|
"zova-module-a-fetch": "^5.1.23",
|
|
19
|
-
"zova-module-a-form": "^5.1.
|
|
19
|
+
"zova-module-a-form": "^5.1.41",
|
|
20
20
|
"zova-module-a-icon": "^5.1.26",
|
|
21
21
|
"zova-module-a-interceptor": "^5.1.29",
|
|
22
22
|
"zova-module-a-logger": "^5.1.26",
|
|
23
23
|
"zova-module-a-meta": "^5.1.21",
|
|
24
24
|
"zova-module-a-model": "^5.1.30",
|
|
25
|
-
"zova-module-a-openapi": "^5.1.
|
|
25
|
+
"zova-module-a-openapi": "^5.1.41",
|
|
26
26
|
"zova-module-a-router": "^5.1.29",
|
|
27
27
|
"zova-module-a-routerstack": "^5.1.26",
|
|
28
28
|
"zova-module-a-routertabs": "^5.1.32",
|