zova-ui-vuetify 5.1.85 → 5.1.86
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/package.json +12 -15
- package/package.original.json +13 -13
- package/src/front/config/config/config.ts +1 -1
- package/src/suite/a-demo/modules/demo-basic/package.json +2 -1
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/component/card.ts +9 -1
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/page/component.ts +5 -1
- package/src/suite/a-demo/modules/demo-basic/src/routes.ts +3 -3
- package/src/suite/a-home/modules/home-api/mock/menu.fake.ts +11 -11
- package/src/suite/a-home/modules/home-base/package.json +2 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/component/itemLink.ts +9 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/component/page.ts +9 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/authCallback.ts +5 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorExpired.ts +5 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorNotFound.ts +5 -1
- package/src/suite/a-home/modules/home-index/package.json +2 -1
- package/src/suite/a-home/modules/home-index/src/routes.ts +1 -1
- package/src/suite/a-home/modules/home-layoutempty/package.json +2 -1
- package/src/suite/a-home/modules/home-layoutempty/src/.metadata/component/layoutEmpty.ts +9 -1
- package/src/suite/a-home/modules/home-layouttabs/package.json +2 -1
- package/src/suite/a-home/modules/home-layouttabs/src/.metadata/component/layoutTabs.ts +9 -1
- package/src/suite/a-home/modules/home-layouttabs/src/component/layoutTabs/controller.tsx +2 -2
- package/src/suite/a-home/modules/home-passport/src/model/passport.ts +10 -3
- package/src/suite/a-home/package.json +0 -1
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/.metadata/index.ts +2 -9
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/monkeySys.ts +1 -5
- package/src/suite/a-vuetify/package.json +1 -2
- package/src/suite/a-demo/modules/demo-basic/rest/component/card.ts +0 -7
- package/src/suite/a-demo/modules/demo-basic/rest/components.ts +0 -1
- package/src/suite/a-demo/modules/demo-basic/rest/index.ts +0 -2
- package/src/suite/a-demo/modules/demo-basic/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-base/rest/component/itemLink.ts +0 -7
- package/src/suite/a-home/modules/home-base/rest/component/page.ts +0 -7
- package/src/suite/a-home/modules/home-base/rest/components.ts +0 -2
- package/src/suite/a-home/modules/home-base/rest/index.ts +0 -2
- package/src/suite/a-home/modules/home-base/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-icon/rest/icons.ts +0 -1
- package/src/suite/a-home/modules/home-icon/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-index/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-index/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-layoutempty/rest/component/layoutEmpty.ts +0 -7
- package/src/suite/a-home/modules/home-layoutempty/rest/components.ts +0 -1
- package/src/suite/a-home/modules/home-layoutempty/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-layouttabs/rest/component/layoutTabs.ts +0 -7
- package/src/suite/a-home/modules/home-layouttabs/rest/components.ts +0 -1
- package/src/suite/a-home/modules/home-layouttabs/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-login/package.json +0 -52
- package/src/suite/a-home/modules/home-login/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-login/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-login/src/.metadata/index.ts +0 -109
- package/src/suite/a-home/modules/home-login/src/.metadata/locales.ts +0 -17
- package/src/suite/a-home/modules/home-login/src/.metadata/page/login.ts +0 -8
- package/src/suite/a-home/modules/home-login/src/.metadata/this.ts +0 -2
- package/src/suite/a-home/modules/home-login/src/config/locale/en-us.ts +0 -6
- package/src/suite/a-home/modules/home-login/src/config/locale/zh-cn.ts +0 -6
- package/src/suite/a-home/modules/home-login/src/index.ts +0 -2
- package/src/suite/a-home/modules/home-login/src/page/login/controller.tsx +0 -38
- package/src/suite/a-home/modules/home-login/src/page/login/render.tsx +0 -103
- package/src/suite/a-home/modules/home-login/src/routes.ts +0 -15
- package/src/suite/a-home/modules/home-login/tsconfig.build.json +0 -13
- package/src/suite/a-home/modules/home-login/tsconfig.json +0 -5
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/config/config.ts +0 -20
- package/src/suite/a-vuetify/modules/vuetify-form/package.json +0 -52
- package/src/suite/a-vuetify/modules/vuetify-form/rest/component/formFieldCaptcha.ts +0 -7
- package/src/suite/a-vuetify/modules/vuetify-form/rest/components.ts +0 -1
- package/src/suite/a-vuetify/modules/vuetify-form/rest/index.ts +0 -1
- package/src/suite/a-vuetify/modules/vuetify-form/src/.metadata/component/formFieldCaptcha.ts +0 -23
- package/src/suite/a-vuetify/modules/vuetify-form/src/.metadata/index.ts +0 -149
- package/src/suite/a-vuetify/modules/vuetify-form/src/.metadata/locales.ts +0 -17
- package/src/suite/a-vuetify/modules/vuetify-form/src/.metadata/this.ts +0 -2
- package/src/suite/a-vuetify/modules/vuetify-form/src/bean/behavior.formField.tsx +0 -84
- package/src/suite/a-vuetify/modules/vuetify-form/src/bean/behavior.formFieldLayout.ts +0 -21
- package/src/suite/a-vuetify/modules/vuetify-form/src/component/formFieldCaptcha/controller.tsx +0 -128
- package/src/suite/a-vuetify/modules/vuetify-form/src/config/locale/en-us.ts +0 -3
- package/src/suite/a-vuetify/modules/vuetify-form/src/config/locale/zh-cn.ts +0 -3
- package/src/suite/a-vuetify/modules/vuetify-form/src/index.ts +0 -3
- package/src/suite/a-vuetify/modules/vuetify-form/src/types/formField.ts +0 -17
- package/src/suite/a-vuetify/modules/vuetify-form/src/types/index.ts +0 -1
- package/src/suite/a-vuetify/modules/vuetify-form/tsconfig.build.json +0 -13
- package/src/suite/a-vuetify/modules/vuetify-form/tsconfig.json +0 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-vuetify",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "5.1.86",
|
|
4
|
+
"gitHead": "8edb6021cb1a8999e38b3809ef607fdeaf56d5f2",
|
|
5
5
|
"description": "A vue3 vuetify framework with ioc",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ioc",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@cabloy/compose": "^2.1.4",
|
|
59
59
|
"@cabloy/deps": "^1.1.4",
|
|
60
|
-
"@cabloy/json5": "^1.1.
|
|
60
|
+
"@cabloy/json5": "^1.1.6",
|
|
61
61
|
"@cabloy/logger": "^1.1.10",
|
|
62
62
|
"@cabloy/module-info": "^2.0.0",
|
|
63
63
|
"@cabloy/utils": "^2.1.16",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"quasar": "^2.19.3",
|
|
85
85
|
"table-identity": "^1.1.4",
|
|
86
86
|
"typestyle": "^2.4.0",
|
|
87
|
-
"vue": "^3.5.
|
|
87
|
+
"vue": "^3.5.34",
|
|
88
88
|
"vue-router": "npm:@cabloy/vue-router@^4.4.16",
|
|
89
|
-
"vuetify": "^4.0.
|
|
89
|
+
"vuetify": "^4.0.7",
|
|
90
90
|
"zod": "^4.3.6",
|
|
91
|
-
"zova": "^5.1.
|
|
91
|
+
"zova": "^5.1.62",
|
|
92
92
|
"zova-jsx": "^1.1.37",
|
|
93
93
|
"zova-module-a-api": "^5.1.10",
|
|
94
94
|
"zova-module-a-app": "^5.1.12",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"zova-module-a-behavior": "^5.1.13",
|
|
97
97
|
"zova-module-a-behaviors": "^5.1.10",
|
|
98
98
|
"zova-module-a-boundary": "^5.1.10",
|
|
99
|
-
"zova-module-a-command": "^5.1.
|
|
99
|
+
"zova-module-a-command": "^5.1.20",
|
|
100
100
|
"zova-module-a-fetch": "^5.1.10",
|
|
101
101
|
"zova-module-a-form": "^5.1.21",
|
|
102
102
|
"zova-module-a-icon": "^5.1.14",
|
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
"zova-module-a-table": "^5.1.19",
|
|
116
116
|
"zova-module-a-zod": "^5.1.13",
|
|
117
117
|
"zova-module-a-zova": "^5.1.41",
|
|
118
|
-
"zova-module-basic-commands": "^5.1.10",
|
|
119
118
|
"zova-module-demo-basic": "workspace:^",
|
|
120
119
|
"zova-module-home-api": "workspace:^",
|
|
121
120
|
"zova-module-home-base": "workspace:^",
|
|
@@ -123,36 +122,34 @@
|
|
|
123
122
|
"zova-module-home-index": "workspace:^",
|
|
124
123
|
"zova-module-home-layoutempty": "workspace:^",
|
|
125
124
|
"zova-module-home-layouttabs": "workspace:^",
|
|
126
|
-
"zova-module-home-login": "workspace:^",
|
|
127
125
|
"zova-module-home-passport": "workspace:^",
|
|
128
126
|
"zova-module-home-theme": "workspace:^",
|
|
129
127
|
"zova-module-rest-resource": "^5.1.19",
|
|
130
128
|
"zova-module-vuetify-adapter": "workspace:^",
|
|
131
|
-
"zova-module-vuetify-form": "workspace:^",
|
|
132
129
|
"zova-suite-a-cabloy": "^5.1.20"
|
|
133
130
|
},
|
|
134
131
|
"devDependencies": {
|
|
135
132
|
"@cabloy/cli": "^3.1.9",
|
|
136
|
-
"@cabloy/lint": "^5.1.
|
|
133
|
+
"@cabloy/lint": "^5.1.9",
|
|
137
134
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
138
135
|
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
139
136
|
"@types/luxon": "^3.7.1",
|
|
140
|
-
"@types/node": "^22.19.
|
|
137
|
+
"@types/node": "^22.19.19",
|
|
141
138
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
142
139
|
"autoprefixer": "^10.5.0",
|
|
143
140
|
"concurrently": "^8.2.2",
|
|
144
141
|
"fs-extra": "^11.3.4",
|
|
145
142
|
"less": "^4.6.4",
|
|
146
143
|
"oxfmt": "^0.45.0",
|
|
147
|
-
"oxlint": "^1.
|
|
144
|
+
"oxlint": "^1.64.0",
|
|
148
145
|
"quasar-app-extension-zova": "^1.2.25",
|
|
149
146
|
"sass-embedded": "^1.99.0",
|
|
150
147
|
"typescript": "^5.9.3",
|
|
151
148
|
"unplugin-fonts": "^1.4.0",
|
|
152
|
-
"vite": "^8.0.
|
|
149
|
+
"vite": "^8.0.12",
|
|
153
150
|
"vite-plugin-fake-server-turbo": "^3.0.18",
|
|
154
151
|
"vite-plugin-vuetify": "^2.1.3",
|
|
155
|
-
"vue-tsc": "^3.2.
|
|
152
|
+
"vue-tsc": "^3.2.8",
|
|
156
153
|
"zova-openapi": "^1.1.9",
|
|
157
154
|
"zova-vite": "^1.1.24"
|
|
158
155
|
},
|
package/package.original.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-vuetify",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.85",
|
|
4
4
|
"description": "A vue3 vuetify framework with ioc",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -56,35 +56,35 @@
|
|
|
56
56
|
"cors": "^2.8.6",
|
|
57
57
|
"express": "^5.2.1",
|
|
58
58
|
"quasar": "^2.19.3",
|
|
59
|
-
"vue": "^3.5.
|
|
60
|
-
"vuetify": "^4.0.
|
|
59
|
+
"vue": "^3.5.34",
|
|
60
|
+
"vuetify": "^4.0.7",
|
|
61
61
|
"vue-router": "npm:@cabloy/vue-router@^4.4.16",
|
|
62
|
-
"zova": "^5.1.
|
|
63
|
-
"zova-suite-a-cabloy": "^5.1.
|
|
62
|
+
"zova": "^5.1.61",
|
|
63
|
+
"zova-suite-a-cabloy": "^5.1.20"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@cabloy/lint": "^5.1.
|
|
66
|
+
"@cabloy/lint": "^5.1.9",
|
|
67
67
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
68
68
|
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
69
|
-
"@types/node": "^22.19.
|
|
69
|
+
"@types/node": "^22.19.19",
|
|
70
70
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
71
71
|
"autoprefixer": "^10.5.0",
|
|
72
72
|
"concurrently": "^8.2.2",
|
|
73
73
|
"oxfmt": "^0.45.0",
|
|
74
|
-
"oxlint": "^1.
|
|
74
|
+
"oxlint": "^1.64.0",
|
|
75
75
|
"less": "^4.6.4",
|
|
76
|
-
"quasar-app-extension-zova": "^1.2.
|
|
76
|
+
"quasar-app-extension-zova": "^1.2.25",
|
|
77
77
|
"sass-embedded": "^1.99.0",
|
|
78
78
|
"typescript": "^5.9.3",
|
|
79
79
|
"unplugin-fonts": "^1.4.0",
|
|
80
|
-
"vite": "^8.0.
|
|
80
|
+
"vite": "^8.0.12",
|
|
81
81
|
"vite-plugin-fake-server-turbo": "^3.0.18",
|
|
82
82
|
"vite-plugin-vuetify": "^2.1.3",
|
|
83
|
-
"vue-tsc": "^3.2.
|
|
84
|
-
"zova-vite": "^1.1.
|
|
83
|
+
"vue-tsc": "^3.2.8",
|
|
84
|
+
"zova-vite": "^1.1.24"
|
|
85
85
|
},
|
|
86
86
|
"license": "MIT",
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "1c1c99cd879a2f00f32fb4b369a16ae90b9405da",
|
|
88
88
|
"pnpm": {
|
|
89
89
|
"overrides": {
|
|
90
90
|
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
@@ -10,7 +10,10 @@ export type TypeControllerCardPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerCard) => void;
|
|
11
11
|
} & ControllerCardProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerCardProps,
|
|
15
|
+
keyof typeof ControllerCard.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-demo-basic' {
|
|
15
18
|
export interface ControllerCard {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZCard = defineComponent((_props: TypeControllerCardPublicProps) =>
|
|
|
21
24
|
useController(ControllerCard, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'demo-basic:card': ControllerCardProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -2,4 +2,8 @@ import { createZovaComponentPage } from 'zova';
|
|
|
2
2
|
|
|
3
3
|
import { ControllerPageComponent } from '../../page/component/controller.jsx';
|
|
4
4
|
|
|
5
|
-
export const ZPageComponent = createZovaComponentPage(
|
|
5
|
+
export const ZPageComponent = createZovaComponentPage(
|
|
6
|
+
ControllerPageComponent,
|
|
7
|
+
undefined,
|
|
8
|
+
undefined,
|
|
9
|
+
);
|
|
@@ -5,7 +5,7 @@ import { ZPageState } from './.metadata/page/state.js';
|
|
|
5
5
|
import { ZPageStyle } from './.metadata/page/style.js';
|
|
6
6
|
|
|
7
7
|
export const routes: IModuleRoute[] = [
|
|
8
|
-
{ path: 'state', component: ZPageState },
|
|
9
|
-
{ path: 'component', component: ZPageComponent },
|
|
10
|
-
{ path: 'style', component: ZPageStyle },
|
|
8
|
+
{ path: 'state', component: ZPageState, meta: { requiresAuth: false } },
|
|
9
|
+
{ path: 'component', component: ZPageComponent, meta: { requiresAuth: false } },
|
|
10
|
+
{ path: 'style', component: ZPageStyle, meta: { requiresAuth: false } },
|
|
11
11
|
];
|
|
@@ -28,11 +28,11 @@ export default defineFakeRoute([
|
|
|
28
28
|
{
|
|
29
29
|
url: '/home/base/menu/{:publicPath}',
|
|
30
30
|
method: 'get',
|
|
31
|
-
response:
|
|
32
|
-
const name = getNameFromAuthorizationHeader(req);
|
|
33
|
-
if (!name) {
|
|
34
|
-
|
|
35
|
-
}
|
|
31
|
+
response: _req => {
|
|
32
|
+
// const name = getNameFromAuthorizationHeader(req);
|
|
33
|
+
// if (!name) {
|
|
34
|
+
// return { code: 401, message: 'Error menu/select' };
|
|
35
|
+
// }
|
|
36
36
|
return {
|
|
37
37
|
code: 0,
|
|
38
38
|
message: 'Success',
|
|
@@ -42,9 +42,9 @@ export default defineFakeRoute([
|
|
|
42
42
|
},
|
|
43
43
|
]);
|
|
44
44
|
|
|
45
|
-
function getNameFromAuthorizationHeader(req: any): string | undefined {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
45
|
+
// function getNameFromAuthorizationHeader(req: any): string | undefined {
|
|
46
|
+
// if (!req.headers.authorization) return undefined;
|
|
47
|
+
// const token = req.headers.authorization.split(' ')[1];
|
|
48
|
+
// if (!token) return undefined;
|
|
49
|
+
// return token.substring('accessToken-'.length);
|
|
50
|
+
// }
|
|
@@ -10,7 +10,10 @@ export type TypeControllerItemLinkPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerItemLink) => void;
|
|
11
11
|
} & ControllerItemLinkProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerItemLinkProps,
|
|
15
|
+
keyof typeof ControllerItemLink.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-base' {
|
|
15
18
|
export interface ControllerItemLink {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZItemLink = defineComponent((_props: TypeControllerItemLinkPublicPr
|
|
|
21
24
|
useController(ControllerItemLink, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-base:itemLink': ControllerItemLinkProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -10,7 +10,10 @@ export type TypeControllerPagePublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerPage) => void;
|
|
11
11
|
} & ControllerPageProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerPageProps,
|
|
15
|
+
keyof typeof ControllerPage.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-base' {
|
|
15
18
|
export interface ControllerPage {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZPage = defineComponent((_props: TypeControllerPagePublicProps) =>
|
|
|
21
24
|
useController(ControllerPage, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-base:page': ControllerPageProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -9,4 +9,8 @@ export namespace NSControllerPageAuthCallback {
|
|
|
9
9
|
export type QueryOutput = z.output<typeof ControllerPageAuthCallbackSchemaQuery>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export const ZPageAuthCallback = createZovaComponentPage(
|
|
12
|
+
export const ZPageAuthCallback = createZovaComponentPage(
|
|
13
|
+
ControllerPageAuthCallback,
|
|
14
|
+
undefined,
|
|
15
|
+
undefined,
|
|
16
|
+
);
|
|
@@ -9,4 +9,8 @@ export namespace NSControllerPageErrorExpired {
|
|
|
9
9
|
export type QueryOutput = z.output<typeof ControllerPageErrorExpiredSchemaQuery>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export const ZPageErrorExpired = createZovaComponentPage(
|
|
12
|
+
export const ZPageErrorExpired = createZovaComponentPage(
|
|
13
|
+
ControllerPageErrorExpired,
|
|
14
|
+
undefined,
|
|
15
|
+
undefined,
|
|
16
|
+
);
|
|
@@ -2,4 +2,8 @@ import { createZovaComponentPage } from 'zova';
|
|
|
2
2
|
|
|
3
3
|
import { ControllerPageErrorNotFound } from '../../page/errorNotFound/controller.jsx';
|
|
4
4
|
|
|
5
|
-
export const ZPageErrorNotFound = createZovaComponentPage(
|
|
5
|
+
export const ZPageErrorNotFound = createZovaComponentPage(
|
|
6
|
+
ControllerPageErrorNotFound,
|
|
7
|
+
undefined,
|
|
8
|
+
undefined,
|
|
9
|
+
);
|
|
@@ -10,7 +10,10 @@ export type TypeControllerLayoutEmptyPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerLayoutEmpty) => void;
|
|
11
11
|
} & ControllerLayoutEmptyProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerLayoutEmptyProps,
|
|
15
|
+
keyof typeof ControllerLayoutEmpty.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-layoutempty' {
|
|
15
18
|
export interface ControllerLayoutEmpty {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZLayoutEmpty = defineComponent((_props: TypeControllerLayoutEmptyPu
|
|
|
21
24
|
useController(ControllerLayoutEmpty, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-layoutempty:layoutEmpty': ControllerLayoutEmptyProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -12,7 +12,10 @@ export type TypeControllerLayoutTabsPublicProps = {
|
|
|
12
12
|
controllerRef?: (ref: ControllerLayoutTabs) => void;
|
|
13
13
|
} & ControllerLayoutTabsProps;
|
|
14
14
|
|
|
15
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
15
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
16
|
+
ControllerLayoutTabsProps,
|
|
17
|
+
keyof typeof ControllerLayoutTabs.$propsDefault
|
|
18
|
+
>;
|
|
16
19
|
declare module 'zova-module-home-layouttabs' {
|
|
17
20
|
export interface ControllerLayoutTabs {
|
|
18
21
|
$props: ControllerInnerProps;
|
|
@@ -34,3 +37,8 @@ export const ZLayoutTabs = defineComponent((_props: TypeControllerLayoutTabsPubl
|
|
|
34
37
|
useController(ControllerLayoutTabs, RenderLayoutTabs, StyleLayoutTabs);
|
|
35
38
|
return () => {};
|
|
36
39
|
}, prepareComponentOptions());
|
|
40
|
+
declare module 'zova-module-a-bean' {
|
|
41
|
+
export interface IVonaComponentRecord {
|
|
42
|
+
'home-layouttabs:layoutTabs': ControllerLayoutTabsProps;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ModelTabs, ModelTabsOptions } from 'zova-module-a-routertabs';
|
|
2
2
|
|
|
3
3
|
import { provide, ref } from 'vue';
|
|
4
|
-
import { BeanControllerBase, Use,
|
|
4
|
+
import { BeanControllerBase, Use, UseScope } from 'zova';
|
|
5
5
|
import { Controller } from 'zova-module-a-bean';
|
|
6
6
|
import { $QueryAutoLoad } from 'zova-module-a-model';
|
|
7
7
|
import { ScopeModuleASsr } from 'zova-module-a-ssr';
|
|
@@ -53,7 +53,7 @@ export class ControllerLayoutTabs extends BeanControllerBase {
|
|
|
53
53
|
return width <= this.sys.config.layout.sidebar.breakpoint;
|
|
54
54
|
});
|
|
55
55
|
// leftDrawerOpen
|
|
56
|
-
this.leftDrawerOpen =
|
|
56
|
+
this.leftDrawerOpen = this.$customRef(() => {
|
|
57
57
|
const self = this;
|
|
58
58
|
return {
|
|
59
59
|
get() {
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
import { combineQueries, isNil } from '@cabloy/utils';
|
|
11
11
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
12
12
|
import { BeanModelBase, Model } from 'zova-module-a-model';
|
|
13
|
-
import {
|
|
13
|
+
import { IPermissionHint, IResourceFormActionRowNameRecord, IResourceTableActionNameRecord, TypeOpenapiPermissions } from 'zova-module-a-openapi';
|
|
14
14
|
import { ApiApiHomeUserPassportloginOauthPath, OpenApiBaseURL } from 'zova-module-home-api';
|
|
15
15
|
|
|
16
16
|
export interface IModelOptionsPassport extends IDecoratorModelOptions {}
|
|
@@ -187,7 +187,14 @@ export class ModelPassport extends BeanModelBase {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
public checkPermission(
|
|
190
|
+
public checkPermission(
|
|
191
|
+
permissions: TypeOpenapiPermissions | undefined,
|
|
192
|
+
actionName?: keyof (IResourceTableActionNameRecord & IResourceFormActionRowNameRecord),
|
|
193
|
+
permissionHint?: IPermissionHint,
|
|
194
|
+
): boolean {
|
|
195
|
+
if (permissionHint?.public) return true;
|
|
196
|
+
const permissionAction = permissionHint?.action ?? actionName;
|
|
197
|
+
if (!permissionAction) return true;
|
|
191
198
|
if (isNil(permissions)) return false;
|
|
192
199
|
if (permissions === false) return false;
|
|
193
200
|
if (permissions === true) return true;
|
|
@@ -196,7 +203,7 @@ export class ModelPassport extends BeanModelBase {
|
|
|
196
203
|
// roleNames
|
|
197
204
|
if (permissions.roleNames && permissions.roleNames.some(roleName => this.roles?.some(role => role.name === roleName))) return true;
|
|
198
205
|
// actions
|
|
199
|
-
if (permissions.actions && !!permissions.actions[
|
|
206
|
+
if (permissions.actions && !!permissions.actions[permissionAction]) return true;
|
|
200
207
|
// others
|
|
201
208
|
return false;
|
|
202
209
|
}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"zova-module-home-index": "workspace:^",
|
|
12
12
|
"zova-module-home-layoutempty": "workspace:^",
|
|
13
13
|
"zova-module-home-layouttabs": "workspace:^",
|
|
14
|
-
"zova-module-home-login": "workspace:^",
|
|
15
14
|
"zova-module-home-passport": "workspace:^",
|
|
16
15
|
"zova-module-home-theme": "^5.0.0"
|
|
17
16
|
},
|
|
@@ -142,10 +142,6 @@ declare module 'zova' {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
/** meta: end */
|
|
145
|
-
/** config: begin */
|
|
146
|
-
export * from '../config/config.js';
|
|
147
|
-
import { config } from '../config/config.js';
|
|
148
|
-
/** config: end */
|
|
149
145
|
/** monkey: begin */
|
|
150
146
|
export * from '../monkey.js';
|
|
151
147
|
/** monkey: end */
|
|
@@ -153,7 +149,7 @@ export * from '../monkey.js';
|
|
|
153
149
|
export * from '../monkeySys.js';
|
|
154
150
|
/** monkeySys: end */
|
|
155
151
|
/** scope: begin */
|
|
156
|
-
import { BeanScopeBase, type BeanScopeUtil
|
|
152
|
+
import { BeanScopeBase, type BeanScopeUtil } from 'zova';
|
|
157
153
|
import { Scope } from 'zova-module-a-bean';
|
|
158
154
|
|
|
159
155
|
@Scope()
|
|
@@ -161,7 +157,6 @@ export class ScopeModuleVuetifyAdapter extends BeanScopeBase {}
|
|
|
161
157
|
|
|
162
158
|
export interface ScopeModuleVuetifyAdapter {
|
|
163
159
|
util: BeanScopeUtil;
|
|
164
|
-
config: TypeModuleConfig<typeof config>;
|
|
165
160
|
}
|
|
166
161
|
|
|
167
162
|
import 'zova';
|
|
@@ -170,9 +165,7 @@ declare module 'zova' {
|
|
|
170
165
|
'vuetify-adapter': ScopeModuleVuetifyAdapter;
|
|
171
166
|
}
|
|
172
167
|
|
|
173
|
-
|
|
174
|
-
'vuetify-adapter': ReturnType<typeof config>;
|
|
175
|
-
}
|
|
168
|
+
|
|
176
169
|
|
|
177
170
|
|
|
178
171
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IMonkeySysInitialize } from 'zova';
|
|
2
2
|
|
|
3
|
-
import { BeanSimple
|
|
3
|
+
import { BeanSimple } from 'zova';
|
|
4
4
|
|
|
5
5
|
import { __ThisModule__ } from './.metadata/this.js';
|
|
6
6
|
import { SysAppBar } from './bean/sys.appBar.jsx';
|
|
@@ -27,9 +27,5 @@ export class MonkeySys extends BeanSimple implements IMonkeySysInitialize {
|
|
|
27
27
|
// appBar
|
|
28
28
|
const sysAppBar = await this.bean._newBean(SysAppBar, false);
|
|
29
29
|
await sysAppBar.initialize();
|
|
30
|
-
// config
|
|
31
|
-
const configSelf = this.sys.util.getModuleConfigSafe(__ThisModule__);
|
|
32
|
-
const configOpenapi = this.sys.util.getModuleConfigSafe('a-openapi');
|
|
33
|
-
configOpenapi.resourceProviders = deepExtend({}, configOpenapi.resourceProviders, configSelf.resourceProviders);
|
|
34
30
|
}
|
|
35
31
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerCardProps } from 'zova-module-demo-basic';
|
|
3
|
-
|
|
4
|
-
type TypeControllerCardPublicProps = TypeRenderComponentJsxPropsPublic & ControllerCardProps;
|
|
5
|
-
export function BBZDemoBasicCard(_props: TypeControllerCardPublicProps) {
|
|
6
|
-
return 'demo-basic:card';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component/card.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-demo-basic';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerItemLinkProps } from 'zova-module-home-base';
|
|
3
|
-
|
|
4
|
-
type TypeControllerItemLinkPublicProps = TypeRenderComponentJsxPropsPublic & ControllerItemLinkProps;
|
|
5
|
-
export function BBZHomeBaseItemLink(_props: TypeControllerItemLinkPublicProps) {
|
|
6
|
-
return 'home-base:itemLink';
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerPageProps } from 'zova-module-home-base';
|
|
3
|
-
|
|
4
|
-
type TypeControllerPagePublicProps = TypeRenderComponentJsxPropsPublic & ControllerPageProps;
|
|
5
|
-
export function BBZHomeBasePage(_props: TypeControllerPagePublicProps) {
|
|
6
|
-
return 'home-base:page';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-base';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-icon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './icons.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pages.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-index';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerLayoutEmptyProps } from 'zova-module-home-layoutempty';
|
|
3
|
-
|
|
4
|
-
type TypeControllerLayoutEmptyPublicProps = TypeRenderComponentJsxPropsPublic & ControllerLayoutEmptyProps;
|
|
5
|
-
export function BBZHomeLayoutemptyLayoutEmpty(_props: TypeControllerLayoutEmptyPublicProps) {
|
|
6
|
-
return 'home-layoutempty:layoutEmpty';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component/layoutEmpty.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerLayoutTabsProps } from 'zova-module-home-layouttabs';
|
|
3
|
-
|
|
4
|
-
type TypeControllerLayoutTabsPublicProps = TypeRenderComponentJsxPropsPublic & ControllerLayoutTabsProps;
|
|
5
|
-
export function BBZHomeLayouttabsLayoutTabs(_props: TypeControllerLayoutTabsPublicProps) {
|
|
6
|
-
return 'home-layouttabs:layoutTabs';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component/layoutTabs.js';
|