zova-cli-set-front 1.2.53 → 1.2.56
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/LICENSE +0 -0
- package/README.md +0 -0
- package/cli/templates/create/module/boilerplate/_package.json +0 -0
- package/cli/templates/create/module/boilerplate/src/index.ts_ +0 -0
- package/cli/templates/create/suite/modules/.gitkeep +0 -0
- package/cli/templates/rest/rest.ts +25 -6
- package/package.json +16 -19
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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.56",
|
|
4
|
+
"gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -25,32 +25,25 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
|
|
30
|
-
"tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json",
|
|
31
|
-
"prepublishOnly": "npm run tsc:publish",
|
|
32
|
-
"prepack": "clean-package",
|
|
33
|
-
"postpack": "clean-package restore && npm run clean"
|
|
34
|
-
},
|
|
35
28
|
"dependencies": {
|
|
36
29
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
37
30
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
38
31
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
39
|
-
"@cabloy/cli": "^3.1.
|
|
32
|
+
"@cabloy/cli": "^3.1.11",
|
|
40
33
|
"@cabloy/extend": "^3.1.0",
|
|
41
34
|
"@cabloy/module-info": "^2.0.0",
|
|
42
35
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
43
|
-
"@cabloy/utils": "^2.1.
|
|
36
|
+
"@cabloy/utils": "^2.1.18",
|
|
44
37
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
45
38
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
46
|
-
"@cabloy/word-utils": "^2.1.
|
|
39
|
+
"@cabloy/word-utils": "^2.1.11",
|
|
47
40
|
"@typescript/native-preview": "^7.0.0-dev.20260320.1",
|
|
48
41
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
49
42
|
"babel-plugin-transform-typescript-metadata": "^0.4.0",
|
|
50
|
-
"babel-plugin-zova-bean-module": "^1.2.
|
|
51
|
-
"babel-plugin-zova-bean-use": "^1.1.
|
|
52
|
-
"babel-plugin-zova-behavior": "^1.1.
|
|
53
|
-
"babel-plugin-zova-component": "^1.1.
|
|
43
|
+
"babel-plugin-zova-bean-module": "^1.2.11",
|
|
44
|
+
"babel-plugin-zova-bean-use": "^1.1.11",
|
|
45
|
+
"babel-plugin-zova-behavior": "^1.1.11",
|
|
46
|
+
"babel-plugin-zova-component": "^1.1.11",
|
|
54
47
|
"compressing": "^1.10.0",
|
|
55
48
|
"fs-extra": "^11.3.5",
|
|
56
49
|
"globby": "^14.1.0",
|
|
@@ -64,7 +57,11 @@
|
|
|
64
57
|
"urllib": "^4.6.11",
|
|
65
58
|
"vite": "^8.0.2",
|
|
66
59
|
"yaml": "^2.8.3",
|
|
67
|
-
"zova-openapi": "^1.1.
|
|
68
|
-
"zova-vite": "^1.1.
|
|
60
|
+
"zova-openapi": "^1.1.11",
|
|
61
|
+
"zova-vite": "^1.1.28"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
|
|
65
|
+
"tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json"
|
|
69
66
|
}
|
|
70
|
-
}
|
|
67
|
+
}
|