@mptw/skylens-ui 1.4.37 → 1.4.38

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.
@@ -1,14 +1,57 @@
1
- export type NavItemConfigType = {
2
- moduleType: 'project' | 'org' | 'system' | 'dashboard',
1
+ export enum NavType {
2
+ Divide = 'divide',
3
+ Link = 'link',
4
+ Section = 'section',
5
+ Group = 'group',
6
+ }
7
+
8
+ export enum NavModuleType {
9
+ Project = 'project',
10
+ Org = 'org',
11
+ System = 'system',
12
+ Dashboard = 'dashboard',
13
+ }
14
+
15
+ export enum NavItemStatus {
16
+ Normal = 'normal',
17
+ Plus = 'plus',
18
+ Lock = 'lock',
19
+ New = 'new',
20
+ Notice = 'notice',
21
+ }
22
+
23
+ export type NavItemDivide = {
24
+ navType: NavType.Divide;
25
+ }
26
+
27
+ export type NavItemLink = {
28
+ navType: NavType.Link;
29
+ moduleType: NavModuleType;
3
30
  title: string;
4
31
  to?: string;
5
32
  code?: string;
6
33
  emit?: string;
7
34
  preIcon?: string;
8
- postIcon?: string;
9
- subItems?: NavItemConfigType[];
10
35
  include?: string[];
11
36
  inDev?: boolean;
37
+ status: NavItemStatus;
38
+ }
39
+
40
+ export type NavItemSection = {
41
+ navType: NavType.Section;
42
+ moduleType: NavModuleType;
43
+ title: string;
44
+ to?: string;
45
+ code?: string;
46
+ emit?: string;
47
+ preIcon?: string;
48
+ links?: NavItemLink[];
49
+ status: NavItemStatus;
50
+ }
51
+
52
+ export type NavItemGroup = {
53
+ navType: NavType.Group;
54
+ sections: NavItemSection[];
12
55
  }
13
56
 
14
- export type NavConfigType = (NavItemConfigType | null)[];
57
+ export type NavConfigType = (NavItemDivide | NavItemLink | NavItemSection | NavItemGroup)[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.37",
4
+ "version": "1.4.38",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",