zova-ui-empty 5.0.166 → 5.0.167

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.
Files changed (33) hide show
  1. package/package.json +5 -5
  2. package/src/suite/a-home/modules/a-home/src/typings.ts +1 -0
  3. package/src/suite/a-home/modules/home-component/mock/.gitkeep +0 -0
  4. package/src/suite/a-home/modules/home-component/package.json +28 -0
  5. package/src/suite/a-home/modules/home-component/src/api/index.ts +2 -0
  6. package/src/suite/a-home/modules/home-component/src/api/interface/index.ts +1 -0
  7. package/src/suite/a-home/modules/home-component/src/api/service/index.ts +1 -0
  8. package/src/suite/a-home/modules/home-component/src/assets/css/module.scss +1 -0
  9. package/src/suite/a-home/modules/home-component/src/bean/.gitkeep +0 -0
  10. package/src/suite/a-home/modules/home-component/src/component/.gitkeep +0 -0
  11. package/src/suite/a-home/modules/home-component/src/component/page/controller.ts +24 -0
  12. package/src/suite/a-home/modules/home-component/src/component/page/index.vue +13 -0
  13. package/src/suite/a-home/modules/home-component/src/component/page/render.tsx +12 -0
  14. package/src/suite/a-home/modules/home-component/src/component/page/style.ts +16 -0
  15. package/src/suite/a-home/modules/home-component/src/config/config.ts +5 -0
  16. package/src/suite/a-home/modules/home-component/src/config/constants.ts +1 -0
  17. package/src/suite/a-home/modules/home-component/src/config/errors.ts +1 -0
  18. package/src/suite/a-home/modules/home-component/src/config/index.ts +4 -0
  19. package/src/suite/a-home/modules/home-component/src/config/locale/en-us.ts +1 -0
  20. package/src/suite/a-home/modules/home-component/src/config/locale/zh-cn.ts +1 -0
  21. package/src/suite/a-home/modules/home-component/src/config/locales.ts +7 -0
  22. package/src/suite/a-home/modules/home-component/src/index.ts +8 -0
  23. package/src/suite/a-home/modules/home-component/src/page/.gitkeep +0 -0
  24. package/src/suite/a-home/modules/home-component/src/resource/beans.ts +4 -0
  25. package/src/suite/a-home/modules/home-component/src/resource/components.ts +10 -0
  26. package/src/suite/a-home/modules/home-component/src/resource/index.ts +3 -0
  27. package/src/suite/a-home/modules/home-component/src/resource/scope.ts +32 -0
  28. package/src/suite/a-home/modules/home-component/src/resource/this.ts +4 -0
  29. package/src/suite/a-home/modules/home-component/src/routes.ts +3 -0
  30. package/src/suite/a-home/modules/home-component/src/types.ts +7 -0
  31. package/src/suite/a-home/modules/home-component/src/typings.ts +1 -0
  32. package/src/suite/a-home/modules/home-component/tsconfig.json +5 -0
  33. package/src/suite/a-home/package.json +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.166",
3
+ "version": "5.0.167",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,10 +35,10 @@
35
35
  "vue": "^3.4.29",
36
36
  "vue-router": "^4.3.3",
37
37
  "zod": "^3.23.8",
38
- "zova": "^5.0.121",
38
+ "zova": "^5.0.122",
39
39
  "zova-module-a-model": "^5.0.12",
40
40
  "zova-module-a-pinia": "^5.0.20",
41
- "zova-module-a-router": "^5.0.43",
41
+ "zova-module-a-router": "^5.0.44",
42
42
  "zova-module-a-style": "^5.0.21"
43
43
  },
44
44
  "devDependencies": {
@@ -49,8 +49,8 @@
49
49
  "typescript": "^5.4.5",
50
50
  "vite": "^5.3.1",
51
51
  "vue-tsc": "^2.0.21",
52
- "zova-vite": "^1.0.115"
52
+ "zova-vite": "^1.0.116"
53
53
  },
54
54
  "license": "MIT",
55
- "gitHead": "94b350996751d74cce48ecabbb0b9026d8c26e83"
55
+ "gitHead": "35a08c3d5f5376918c3ce38fcd51134632f829ca"
56
56
  }
@@ -5,3 +5,4 @@ export type * as HomeRouter from 'zova-module-home-router';
5
5
  export type * as HomeLayout from 'zova-module-home-layout';
6
6
  export type * as HomeStyle from 'zova-module-home-style';
7
7
  export type * as HomeTheme from 'zova-module-home-theme';
8
+ export type * as HomeComponent from 'zova-module-home-component';
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "zova-module-home-component",
3
+ "version": "5.0.0",
4
+ "title": "home-component",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": [
9
+ "./src/index.ts",
10
+ "./dist/index.d.ts"
11
+ ],
12
+ "import": "./src/index.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./*": "./*"
16
+ },
17
+ "description": "component",
18
+ "keywords": [
19
+ "Zova Module"
20
+ ],
21
+ "author": "zhennann",
22
+ "files": [
23
+ "mock",
24
+ "dist"
25
+ ],
26
+ "scripts": {},
27
+ "dependencies": {}
28
+ }
@@ -0,0 +1,2 @@
1
+ export * from './interface/index.js';
2
+ export * from './service/index.js';
@@ -0,0 +1 @@
1
+ export const services = {};
@@ -0,0 +1,24 @@
1
+ import { BeanControllerBase, Local } from 'zova';
2
+ import { ScopeModule } from '../../resource/this.js';
3
+ import { JSX } from 'vue/jsx-runtime';
4
+
5
+ export interface Props {
6
+ name?: string;
7
+ }
8
+
9
+ export type Emits = {};
10
+
11
+ export interface Slots {
12
+ default?(): JSX.Element;
13
+ }
14
+
15
+ @Local()
16
+ export class ControllerPage extends BeanControllerBase<ScopeModule, Props, Emits, Slots> {
17
+ static $propsDefault = {
18
+ name: '',
19
+ };
20
+
21
+ protected async __init__() {}
22
+
23
+ protected __dispose__() {}
24
+ }
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <template></template>
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import { useController } from 'zova';
7
+ import { ControllerPage, Props, Emits } from './controller.js';
8
+ import { RenderPage } from './render.jsx';
9
+ import { StylePage } from './style.js';
10
+ const props = withDefaults(defineProps<Props>(), ControllerPage.$propsDefault);
11
+ const emit = defineEmits<Emits>();
12
+ useController(props, emit, ControllerPage, RenderPage, StylePage);
13
+ </script>
@@ -0,0 +1,12 @@
1
+ import { BeanRenderBase, Local } from 'zova';
2
+ import type { StylePage } from './style.js';
3
+ import { ScopeModule } from '../../resource/this.js';
4
+
5
+ export interface RenderPage extends StylePage {}
6
+
7
+ @Local()
8
+ export class RenderPage extends BeanRenderBase<ScopeModule> {
9
+ render() {
10
+ return <div class={this.stylePage}>{this.$slots.default?.()}</div>;
11
+ }
12
+ }
@@ -0,0 +1,16 @@
1
+ import { BeanStyleBase, Local } from 'zova';
2
+ import type { ControllerPage } from './controller.js';
3
+ import { ScopeModule } from '../../resource/this.js';
4
+
5
+ export interface StylePage extends ControllerPage {}
6
+
7
+ @Local()
8
+ export class StylePage extends BeanStyleBase<ScopeModule> {
9
+ stylePage: string;
10
+
11
+ protected async __init__() {
12
+ this.stylePage = this.$style({
13
+ padding: '8px',
14
+ });
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ import { ZovaApplication } from 'zova';
2
+
3
+ export const config = (_app: ZovaApplication) => {
4
+ return {};
5
+ };
@@ -0,0 +1 @@
1
+ export const constants = null;
@@ -0,0 +1 @@
1
+ export enum Errors {}
@@ -0,0 +1,4 @@
1
+ export * from './locales.js';
2
+ export * from './errors.js';
3
+ export * from './config.js';
4
+ export * from './constants.js';
@@ -0,0 +1,7 @@
1
+ import en_us from './locale/en-us.js';
2
+ import zh_cn from './locale/zh-cn.js';
3
+
4
+ export const locales = {
5
+ 'en-us': en_us,
6
+ 'zh-cn': zh_cn,
7
+ };
@@ -0,0 +1,8 @@
1
+ import './assets/css/module.scss';
2
+ export * from './config/index.js';
3
+ export * from './resource/index.js';
4
+ export * from './api/index.js';
5
+ export * from './routes.js';
6
+ export * from './types.js';
7
+
8
+ import './typings.js';
@@ -0,0 +1,4 @@
1
+ import 'zova';
2
+ declare module 'zova' {
3
+ export interface IBeanRecord {}
4
+ }
@@ -0,0 +1,10 @@
1
+ export * as NSControllerPage from '../component/page/controller.js';
2
+ import * as NSControllerPage from '../component/page/controller.js';
3
+ import page from '../component/page/index.vue';
4
+ export const components = { page };
5
+ declare module 'zova' {
6
+ export interface IComponentRecord {
7
+ 'home-component:page': NSControllerPage.ControllerPage;
8
+ }
9
+ }
10
+ import 'zova';
@@ -0,0 +1,3 @@
1
+ export * from './scope.js';
2
+ export * from './beans.js';
3
+ export * from './components.js';
@@ -0,0 +1,32 @@
1
+ import { BeanScopeBase, Scope, TypeLocaleBase, TypeModuleResource } from 'zova';
2
+ import { config, Errors, locales, constants } from '../config/index.js';
3
+ import { components } from './components.js';
4
+ import { services } from '../api/service/index.js';
5
+
6
+ @Scope()
7
+ export class ScopeModuleHomeComponent extends BeanScopeBase {}
8
+
9
+ export interface ScopeModuleHomeComponent
10
+ extends TypeModuleResource<
11
+ typeof components,
12
+ typeof config,
13
+ typeof Errors,
14
+ (typeof locales)[TypeLocaleBase],
15
+ typeof constants,
16
+ typeof services
17
+ > {}
18
+
19
+ import 'zova';
20
+ declare module 'zova' {
21
+ export interface IBeanScopeRecord {
22
+ 'home-component': ScopeModuleHomeComponent;
23
+ }
24
+
25
+ export interface IBeanScopeConfig {
26
+ 'home-component': ReturnType<typeof config>;
27
+ }
28
+
29
+ export interface IBeanScopeLocale {
30
+ 'home-component': (typeof locales)[TypeLocaleBase];
31
+ }
32
+ }
@@ -0,0 +1,4 @@
1
+ export const __ThisModule__ = 'home-component';
2
+ export type __ThisModuleType__ = typeof __ThisModule__;
3
+
4
+ export { ScopeModuleHomeComponent as ScopeModule } from './scope.js';
@@ -0,0 +1,3 @@
1
+ import { IModuleRoute } from 'zova-module-a-router';
2
+
3
+ export const routes: IModuleRoute[] = [];
@@ -0,0 +1,7 @@
1
+ import 'zova';
2
+ import { components } from './resource/components.js';
3
+ declare module 'zova' {
4
+ export interface BeanBase {
5
+ $component: typeof components;
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ export type * as AHome from 'zova-module-a-home';
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {},
4
+ "exclude": ["dist", "node_modules"]
5
+ }
@@ -11,6 +11,7 @@
11
11
  "zova-module-home-pagesystem": "workspace:^",
12
12
  "zova-module-home-layout": "workspace:^",
13
13
  "zova-module-home-router": "workspace:^",
14
- "zova-module-home-api": "workspace:^"
14
+ "zova-module-home-api": "workspace:^",
15
+ "zova-module-home-component": "workspace:^"
15
16
  }
16
17
  }