zova-ui-empty 5.0.271 → 5.0.273

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.271",
3
+ "version": "5.0.273",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,9 +24,6 @@
24
24
  "lint": "eslint . --fix --ignore-path .gitignore"
25
25
  },
26
26
  "keywords": [
27
- "nodejs",
28
- "full-stack",
29
- "workflow-engine",
30
27
  "vue3",
31
28
  "ioc",
32
29
  "zova"
@@ -47,9 +44,8 @@
47
44
  "quasar": "^2.16.8",
48
45
  "typestyle": "^2.4.0",
49
46
  "vue": "^3.5.6",
50
- "vue-router": "^4.4.5",
51
47
  "zod": "^3.23.8",
52
- "zova": "^5.0.196"
48
+ "zova": "^5.0.201"
53
49
  },
54
50
  "devDependencies": {
55
51
  "@cabloy/lint": "^4.0.11",
@@ -66,14 +62,13 @@
66
62
  "sass": "^1.77.5",
67
63
  "typescript": "^5.4.5",
68
64
  "vite": "^5.3.1",
69
- "vue-router": "^4.4.5",
70
65
  "vue-tsc": "^2.0.29",
71
66
  "zova-module-a-core": "^5.0.44",
72
67
  "zova-module-a-demo": "^5.0.0",
73
68
  "zova-module-a-model": "^5.0.26",
74
69
  "zova-module-a-pinia": "^5.0.26",
75
70
  "zova-module-a-router": "^5.0.61",
76
- "zova-module-a-style": "^5.0.37",
71
+ "zova-module-a-style": "^5.0.38",
77
72
  "zova-module-a-tabs": "^5.0.20",
78
73
  "zova-module-home-api": "^5.0.0",
79
74
  "zova-module-home-component": "^5.0.0",
@@ -88,5 +83,5 @@
88
83
  "zova-vite": "^1.0.166"
89
84
  },
90
85
  "license": "MIT",
91
- "gitHead": "5d8d52c780d38a2e85a20cd8c1050b688cb4d9d5"
86
+ "gitHead": "28b30fcba2849578d41bc9c5dca6e61a498660f3"
92
87
  }
@@ -23,7 +23,7 @@
23
23
  "tsc": "vue-tsc --noEmit --project tsconfig.vue-tsc.json",
24
24
  "lint": "eslint . --fix --ignore-path .gitignore"
25
25
  },
26
- "keywords": ["nodejs", "full-stack", "workflow-engine", "vue3", "ioc", "zova"],
26
+ "keywords": ["vue3", "ioc", "zova"],
27
27
  "repository": {
28
28
  "type": "git",
29
29
  "url": "git+https://github.com/cabloy/zova.git"
@@ -40,7 +40,6 @@
40
40
  "quasar": "^2.16.8",
41
41
  "typestyle": "^2.4.0",
42
42
  "vue": "^3.5.6",
43
- "vue-router": "^4.4.5",
44
43
  "zod": "^3.23.8",
45
44
  "zova": "^5.0.196"
46
45
  },
@@ -17,3 +17,7 @@ body {
17
17
  .text-center {
18
18
  text-align: center;
19
19
  }
20
+
21
+ .router-link-active {
22
+ color: orange;
23
+ }
@@ -1,4 +1,5 @@
1
1
  import { BeanControllerBase, Local, Use, PropsBase } from 'zova';
2
+ import { ScopeModule } from '../../.metadata/this.js';
2
3
  import { ModelMenu } from '../../bean/model.menu.js';
3
4
 
4
5
  export interface Props extends PropsBase<ControllerLayoutDefault, Slots> {}
@@ -8,7 +9,7 @@ export type Emits = {};
8
9
  export interface Slots {}
9
10
 
10
11
  @Local()
11
- export class ControllerLayoutDefault extends BeanControllerBase<unknown, Props, Emits, Slots> {
12
+ export class ControllerLayoutDefault extends BeanControllerBase<ScopeModule, Props, Emits, Slots> {
12
13
  static $propsDefault = {};
13
14
 
14
15
  @Use()
@@ -6,7 +6,8 @@
6
6
  import { useController } from 'zova';
7
7
  import { ControllerLayoutDefault, Props, Emits } from './controller.js';
8
8
  import { RenderLayoutDefault } from './render.jsx';
9
+ import { StyleLayoutDefault } from './style.js';
9
10
  const props = withDefaults(defineProps<Props>(), ControllerLayoutDefault.$propsDefault);
10
11
  const emit = defineEmits<Emits>();
11
- useController(props, emit, ControllerLayoutDefault, RenderLayoutDefault);
12
+ useController(props, emit, ControllerLayoutDefault, RenderLayoutDefault, StyleLayoutDefault);
12
13
  </script>
@@ -1,14 +1,15 @@
1
1
  import { BeanRenderBase, Local } from 'zova';
2
- import type { ControllerLayoutDefault } from './controller.js';
2
+ import type { StyleLayoutDefault } from './style.js';
3
3
  import { JSX } from 'vue/jsx-runtime';
4
+ import { ScopeModule } from '../../.metadata/this.js';
4
5
  import EssentialLink from '../essentialLink/index.vue';
5
6
  import { RouterView } from 'vue-router';
6
7
  import { ServiceMenuEntity } from '../../service/menu.js';
7
8
 
8
- export interface RenderLayoutDefault extends ControllerLayoutDefault {}
9
+ export interface RenderLayoutDefault extends StyleLayoutDefault {}
9
10
 
10
11
  @Local()
11
- export class RenderLayoutDefault extends BeanRenderBase {
12
+ export class RenderLayoutDefault extends BeanRenderBase<ScopeModule> {
12
13
  _renderMenuItem(item: ServiceMenuEntity) {
13
14
  if (item.separator) {
14
15
  return <div class="menu-separator"> - - - </div>;
@@ -34,7 +35,7 @@ export class RenderLayoutDefault extends BeanRenderBase {
34
35
  for (const item of queryMenus.data) {
35
36
  domItems.push(this._renderMenuItem(item));
36
37
  }
37
- return <div class="menu-list">{domItems}</div>;
38
+ return <div class={this.cMenuList}>{domItems}</div>;
38
39
  }
39
40
 
40
41
  render() {
@@ -0,0 +1,24 @@
1
+ import { BeanStyleBase, Local } from 'zova';
2
+ import type { ControllerLayoutDefault } from './controller.js';
3
+ import { ScopeModule } from '../../.metadata/this.js';
4
+
5
+ export interface StyleLayoutDefault extends ControllerLayoutDefault {}
6
+
7
+ @Local()
8
+ export class StyleLayoutDefault extends BeanStyleBase<ScopeModule> {
9
+ cMenuList: string;
10
+
11
+ protected async __init__() {
12
+ this.cMenuList = this.$style({
13
+ backgroundColor: 'whitesmoke',
14
+ display: 'flex',
15
+ $nest: {
16
+ a: {
17
+ display: 'flex',
18
+ alignItems: 'center',
19
+ padding: '6px',
20
+ },
21
+ },
22
+ });
23
+ }
24
+ }
@@ -1,2 +1 @@
1
1
  export * from './.metadata/index.js';
2
- import './assets/css/module.scss';
@@ -1,14 +0,0 @@
1
- .menu-list {
2
- background-color: whitesmoke;
3
- display: flex;
4
-
5
- a {
6
- display: flex;
7
- align-items: center;
8
- padding: 6px;
9
- }
10
- }
11
-
12
- .router-link-active {
13
- color: orange;
14
- }