zova-cli-set-front 1.2.53 → 1.2.54
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/cli/templates/rest/rest.ts +25 -6
- package/package.json +4 -4
|
@@ -7,42 +7,61 @@ import { TypeSchemaOrderLevel } from 'zova-module-a-openapi';
|
|
|
7
7
|
|
|
8
8
|
import { _generalSchemaRest, _order } from './inner.ts';
|
|
9
9
|
|
|
10
|
-
export function schemaRenderLayout<T extends z.ZodType>(
|
|
10
|
+
export function schemaRenderLayout<T extends z.ZodType>(
|
|
11
|
+
layoutOptions: ISchemaRenderComponentLayoutOptions,
|
|
12
|
+
scene?: TypeFormSchemaScene,
|
|
13
|
+
) {
|
|
11
14
|
return function (schema: T): T {
|
|
12
15
|
const options = { layout: layoutOptions };
|
|
13
16
|
return _generalSchemaRest(schema, options, scene);
|
|
14
17
|
};
|
|
15
18
|
}
|
|
16
19
|
|
|
17
|
-
export function schemaRenderVisible<T extends z.ZodType>(
|
|
20
|
+
export function schemaRenderVisible<T extends z.ZodType>(
|
|
21
|
+
visible: boolean = true,
|
|
22
|
+
scene?: TypeSchemaScene,
|
|
23
|
+
) {
|
|
18
24
|
return function (schema: T): T {
|
|
19
25
|
const options = { visible };
|
|
20
26
|
return _generalSchemaRest(schema, options, scene);
|
|
21
27
|
};
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
export function schemaRenderReadonly<T extends z.ZodType>(
|
|
30
|
+
export function schemaRenderReadonly<T extends z.ZodType>(
|
|
31
|
+
readonly: boolean = true,
|
|
32
|
+
scene?: TypeSchemaScene,
|
|
33
|
+
) {
|
|
25
34
|
return function (schema: T): T {
|
|
26
35
|
const options = { readonly };
|
|
27
36
|
return _generalSchemaRest(schema, options, scene);
|
|
28
37
|
};
|
|
29
38
|
}
|
|
30
39
|
|
|
31
|
-
export function schemaRenderDisableNotifyChanged<T extends z.ZodType>(
|
|
40
|
+
export function schemaRenderDisableNotifyChanged<T extends z.ZodType>(
|
|
41
|
+
disableNotifyChanged: boolean = true,
|
|
42
|
+
scene?: TypeSchemaScene,
|
|
43
|
+
) {
|
|
32
44
|
return function (schema: T): T {
|
|
33
45
|
const options = { disableNotifyChanged };
|
|
34
46
|
return _generalSchemaRest(schema, options, scene);
|
|
35
47
|
};
|
|
36
48
|
}
|
|
37
49
|
|
|
38
|
-
export function schemaRenderFieldSource<T extends z.ZodType>(
|
|
50
|
+
export function schemaRenderFieldSource<T extends z.ZodType>(
|
|
51
|
+
fieldSource: string,
|
|
52
|
+
scene?: TypeSchemaScene,
|
|
53
|
+
) {
|
|
39
54
|
return function (schema: T): T {
|
|
40
55
|
const options = { fieldSource };
|
|
41
56
|
return _generalSchemaRest(schema, options, scene);
|
|
42
57
|
};
|
|
43
58
|
}
|
|
44
59
|
|
|
45
|
-
export function schemaRenderOrder<T extends z.ZodType>(
|
|
60
|
+
export function schemaRenderOrder<T extends z.ZodType>(
|
|
61
|
+
order: number,
|
|
62
|
+
level?: TypeSchemaOrderLevel,
|
|
63
|
+
scene?: TypeSchemaScene,
|
|
64
|
+
) {
|
|
46
65
|
const orderReal = _order(order, level);
|
|
47
66
|
return function (schema: T): T {
|
|
48
67
|
const options = { order: orderReal };
|
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.54",
|
|
4
|
+
"gitHead": "48c3bcdcba66376f9d4961bd455ea13ad78c352e",
|
|
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.11",
|
|
40
40
|
"@cabloy/extend": "^3.1.0",
|
|
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.18",
|
|
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.9",
|