@gct-paas/schema 0.1.4-dev.12 → 0.1.4-dev.13

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.
@@ -4,3 +4,4 @@ export type * from './schema';
4
4
  export type * from './widget';
5
5
  export type * from './widget-info';
6
6
  export type * from './designer';
7
+ export type * from './relationship-diagram-config';
@@ -0,0 +1,82 @@
1
+ /**
2
+ * 节点
3
+ *
4
+ * @author zhanghanrui
5
+ * @date 2024-06-25 10:06:53
6
+ * @export
7
+ * @interface IRelationshipDiagramNode
8
+ */
9
+ export interface IRelationshipDiagramNode {
10
+ /**
11
+ * 节点唯一标识
12
+ *
13
+ * @author zhanghanrui
14
+ * @date 2024-06-25 13:06:35
15
+ * @type {string}
16
+ */
17
+ id: string;
18
+ /**
19
+ * 字段唯一标识
20
+ *
21
+ * @author zhanghanrui
22
+ * @date 2024-07-05 10:07:11
23
+ * @type {string | null}
24
+ */
25
+ id_: string | null;
26
+ /**
27
+ * 节点类型
28
+ *
29
+ * @author zhanghanrui
30
+ * @date 2024-06-25 13:06:44
31
+ * @type {string}
32
+ */
33
+ type: string;
34
+ /**
35
+ * 当前模型标识
36
+ *
37
+ * @author zhanghanrui
38
+ * @date 2024-06-26 16:06:15
39
+ * @type {string | null}
40
+ */
41
+ modelKey: string | null;
42
+ /**
43
+ * 模型类型
44
+ *
45
+ * @author zhanghanrui
46
+ * @date 2024-06-26 16:06:30
47
+ * @type {string | null}
48
+ */
49
+ modelCategory: string | null;
50
+ /**
51
+ * 属性key
52
+ *
53
+ * @author zhanghanrui
54
+ * @date 2024-06-26 16:06:46
55
+ * @type {string | null}
56
+ */
57
+ value: string | null;
58
+ /**
59
+ * 属性文本
60
+ *
61
+ * @author zhanghanrui
62
+ * @date 2024-06-26 16:06:56
63
+ * @type {string | null}
64
+ */
65
+ label: string | null;
66
+ /**
67
+ * 是否为反向节点
68
+ *
69
+ * @author zhanghanrui
70
+ * @date 2024-06-28 15:06:46
71
+ * @type {boolean}
72
+ */
73
+ reverse?: boolean;
74
+ /**
75
+ * 禁止选择属性
76
+ *
77
+ * @author zhanghanrui
78
+ * @date 2024-06-28 13:06:52
79
+ * @type {boolean}
80
+ */
81
+ noSelectField?: boolean;
82
+ }
@@ -0,0 +1,135 @@
1
+ import { IRelationshipDiagramNode } from './i-relationship-diagram-node';
2
+ /**
3
+ * 设计 json
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-29 17:06:51
7
+ * @export
8
+ * @interface IDesignJson
9
+ */
10
+ export interface IDesignJson {
11
+ /**
12
+ * 前置信息
13
+ *
14
+ * @author zhanghanrui
15
+ * @date 2024-06-29 17:06:58
16
+ * @type {IData}
17
+ */
18
+ before?: IData;
19
+ /**
20
+ * 节点信息
21
+ *
22
+ * @author zhanghanrui
23
+ * @date 2024-06-29 17:06:10
24
+ * @type {IRelationshipDiagramNode[]}
25
+ */
26
+ nodes: IRelationshipDiagramNode[];
27
+ /**
28
+ * 后置信息
29
+ *
30
+ * @author zhanghanrui
31
+ * @date 2024-06-29 17:06:08
32
+ * @type {IData}
33
+ */
34
+ after?: IData;
35
+ }
36
+ export interface INodeData {
37
+ /**
38
+ * 模型标识
39
+ *
40
+ * @author zhanghanrui
41
+ * @date 2024-06-29 17:06:38
42
+ * @type {string}
43
+ */
44
+ modelKey: string;
45
+ /**
46
+ * 模型类型
47
+ *
48
+ * @author zhanghanrui
49
+ * @date 2024-06-29 17:06:06
50
+ * @type {string}
51
+ */
52
+ modelCategory: string;
53
+ /**
54
+ * 属性标识
55
+ *
56
+ * @author zhanghanrui
57
+ * @date 2024-06-29 17:06:42
58
+ * @type {string}
59
+ */
60
+ fieldKey: string;
61
+ /**
62
+ * 节点方向
63
+ *
64
+ * @author zhanghanrui
65
+ * @date 2024-06-29 17:06:47
66
+ * @type {('forward' | 'backward' | '')}
67
+ */
68
+ direction: 'forward' | 'backward' | '';
69
+ }
70
+ /**
71
+ * 数据联动 ruleConfig 配置清单
72
+ *
73
+ * @author zhanghanrui
74
+ * @date 2024-06-29 17:06:29
75
+ * @export
76
+ * @interface IRuleConfig
77
+ */
78
+ export interface IRuleConfig {
79
+ /**
80
+ * 设计 json 配置
81
+ *
82
+ * @author zhanghanrui
83
+ * @date 2024-06-29 17:06:31
84
+ * @type {IDesignJson}
85
+ */
86
+ designJson: IDesignJson;
87
+ /**
88
+ * 是否强依赖
89
+ *
90
+ * @author zhanghanrui
91
+ * @date 2024-09-02 15:09:15
92
+ * @type {boolean}
93
+ */
94
+ strongDependence: boolean;
95
+ /**
96
+ * 主查字段名称
97
+ *
98
+ * @author zhanghanrui
99
+ * @date 2024-06-29 19:06:48
100
+ * @type {string}
101
+ */
102
+ modelKey: string;
103
+ /**
104
+ * 属性标识(不是所有场景都有)
105
+ *
106
+ * @author zhanghanrui
107
+ * @date 2024-07-05 11:07:25
108
+ * @type {string}
109
+ */
110
+ fieldId?: string;
111
+ /**
112
+ * 属性标识(不是所有场景都有)
113
+ *
114
+ * @author zhanghanrui
115
+ * @date 2024-06-29 17:06:47
116
+ * @type {string}
117
+ */
118
+ fieldKey?: string;
119
+ /**
120
+ * 属性名称
121
+ *
122
+ * @author zhanghanrui
123
+ * @date 2024-06-29 19:06:24
124
+ * @type {string}
125
+ */
126
+ fieldLabel?: string;
127
+ /**
128
+ * 给后台使用的 nodes 清单
129
+ *
130
+ * @author zhanghanrui
131
+ * @date 2024-06-29 17:06:41
132
+ * @type {INodeData[]}
133
+ */
134
+ nodes: INodeData[];
135
+ }
@@ -0,0 +1,2 @@
1
+ export type * from './i-relationship-diagram-node';
2
+ export type * from './i-rule-config';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/schema",
3
- "version": "0.1.4-dev.12",
3
+ "version": "0.1.4-dev.13",
4
4
  "type": "module",
5
5
  "description": "paas 平台 schema 架构包",
6
6
  "main": "dist/index.min.cjs",
@@ -52,13 +52,12 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@gct-paas/api": "0.1.1",
55
- "@gct-paas/core": "0.1.4-dev.12",
55
+ "@gct-paas/core": "0.1.4-dev.13",
56
56
  "lodash-es": "^4.17.23",
57
- "vue": "^3.5.29"
57
+ "vue": "^3.5.30"
58
58
  },
59
59
  "devDependencies": {
60
- "@gct-paas/build": "^0.1.6-dev.1",
61
- "vitest": "^4.0.18"
60
+ "@gct-paas/build": "^0.1.6-dev.4"
62
61
  },
63
- "gitHead": "0a7f1a0388cb21eb1c3a4868b14d664a5a3152ed"
62
+ "gitHead": "730343d424ac98e1cd00b6f4cddf8a9823a48357"
64
63
  }