zova-cli-set-front 1.2.84 → 1.2.88
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.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tsc:publish": "npm run clean && node <%=argv.suite?'../../../../../':'../../../'%>packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
21
21
|
"prepublishOnly": "npm run tsc:publish",
|
|
22
22
|
"prepack": "clean-package",
|
|
23
|
-
"postpack": "clean-package restore
|
|
23
|
+
"postpack": "clean-package restore"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.2.88",
|
|
4
|
+
"gitHead": "5c01a45e16aef54b13a29704028c4dff62de7ac2",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsc:publish": "npm run clean && node ../../../vona/packages-cli/cli/src/bin/vona.ts :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json",
|
|
31
31
|
"prepublishOnly": "npm run tsc:publish",
|
|
32
32
|
"prepack": "clean-package",
|
|
33
|
-
"postpack": "clean-package restore
|
|
33
|
+
"postpack": "clean-package restore"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|