zova-cli-set-front 1.2.87 → 1.2.89
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,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.89",
|
|
4
|
+
"gitHead": "272bc1e2b5ab9b021ee08dafd734bb4154739f28",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
37
37
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
38
38
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
39
|
-
"@cabloy/cli": "^3.1.
|
|
39
|
+
"@cabloy/cli": "^3.1.24",
|
|
40
40
|
"@cabloy/extend": "^3.2.8",
|
|
41
41
|
"@cabloy/module-info": "^2.0.0",
|
|
42
42
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
43
|
-
"@cabloy/utils": "^2.1.
|
|
43
|
+
"@cabloy/utils": "^2.1.23",
|
|
44
44
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
45
45
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
46
46
|
"@cabloy/word-utils": "^2.1.14",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"vite": "^8.0.14",
|
|
66
66
|
"yaml": "^2.8.3",
|
|
67
67
|
"zova-openapi": "^1.1.17",
|
|
68
|
-
"zova-vite": "^1.1.
|
|
68
|
+
"zova-vite": "^1.1.40"
|
|
69
69
|
}
|
|
70
70
|
}
|