x-block-lib 0.4.38 → 0.4.40
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/dist/components/blockly/index.vue.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +5 -0
- package/dist/core/locale/msg/zhHans.d.ts +5 -0
- package/dist/core/utils/app/app.d.ts +19 -3
- package/dist/core/utils/app/arg.d.ts +7 -5
- package/dist/core/utils/app/element.d.ts +15 -8
- package/dist/core/utils/app/node.d.ts +16 -9
- package/dist/core/utils/compute/func.d.ts +17 -1
- package/dist/core/utils/compute/space.d.ts +31 -1
- package/dist/core/utils/data/index.d.ts +40 -3
- package/dist/index.js +1354 -1341
- package/dist/{msg-en-mkdv2frs.js → msg-en-dlwi84yy.js} +6 -0
- package/dist/{msg-zhHans-o3kawhhd.js → msg-zhHans-60zrp0tu.js} +6 -0
- package/dist/state/app.d.ts +47 -0
- package/dist/state/compute.d.ts +55 -0
- package/dist/state/data.d.ts +30 -0
- package/dist/state/index.d.ts +6 -147
- package/dist/state/resource.d.ts +23 -0
- package/dist/state/runtime.d.ts +14 -0
- package/dist/state/state.d.ts +13 -0
- package/package.json +1 -1
- package/dist/core/blocks/data/dataQuery/v1/index.d.ts +0 -1
|
@@ -49,16 +49,22 @@ const _ = {
|
|
|
49
49
|
CATEGORY_TEXT: "text",
|
|
50
50
|
CATEGORY_TIME: "time",
|
|
51
51
|
CATEGORY_VARIABLE: "var",
|
|
52
|
+
// desc
|
|
53
|
+
DESC_NO_COMPUTE_GUIDE: "Please go to the layer of 'Compute' to create interface",
|
|
54
|
+
DESC_NO_TABLE_GUIDE: "Please go to the layer of 'Data' to create table",
|
|
52
55
|
// label
|
|
53
56
|
LABEL_BOOLEAN: "Boolean",
|
|
57
|
+
LABEL_CONDITION: "Condition",
|
|
54
58
|
LABEL_CREATE_VARIABLE: "Create Variable",
|
|
55
59
|
LABEL_CREATED: "Created",
|
|
56
60
|
LABEL_GET: "Get",
|
|
57
61
|
LABEL_LIST: "List",
|
|
58
62
|
LABEL_OBJECT: "Object",
|
|
63
|
+
LABEL_OPERATION: "Operation",
|
|
59
64
|
LABEL_PROCEDURE: "Procedure",
|
|
60
65
|
LABEL_PROPERTY: "Property",
|
|
61
66
|
LABEL_SET: "Set",
|
|
67
|
+
LABEL_TABLE: "Table",
|
|
62
68
|
LABEL_TEXT: "Text",
|
|
63
69
|
LABEL_VARIABLE: "Variable",
|
|
64
70
|
// param
|
|
@@ -49,16 +49,22 @@ const _ = {
|
|
|
49
49
|
CATEGORY_TEXT: "文本",
|
|
50
50
|
CATEGORY_TIMER: "时间",
|
|
51
51
|
CATEGORY_VARIABLE: "变量",
|
|
52
|
+
// desc
|
|
53
|
+
DESC_NO_COMPUTE_GUIDE: "请到「计算」层创建接口",
|
|
54
|
+
DESC_NO_MODEL_GUIDE: "请到「数据」层创建表",
|
|
52
55
|
// label
|
|
53
56
|
LABEL_BOOLEAN: "布尔",
|
|
57
|
+
LABEL_CONDITION: "条件",
|
|
54
58
|
LABEL_CREATE_VARIABLE: "创建变量",
|
|
55
59
|
LABEL_CREATED: "已创建",
|
|
56
60
|
LABEL_GET: "获取",
|
|
57
61
|
LABEL_LIST: "列表",
|
|
58
62
|
LABEL_OBJECT: "对象",
|
|
63
|
+
LABEL_OPERATION: "操作",
|
|
59
64
|
LABEL_PROCEDURE: "程序",
|
|
60
65
|
LABEL_PROPERTY: "属性",
|
|
61
66
|
LABEL_SET: "设置",
|
|
67
|
+
LABEL_TABLE: "表",
|
|
62
68
|
LABEL_TEXT: "文本",
|
|
63
69
|
LABEL_VARIABLE: "变量",
|
|
64
70
|
// param
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type App = {
|
|
2
|
+
apps: {
|
|
3
|
+
[appid: string]: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
sort: number;
|
|
7
|
+
pages: {
|
|
8
|
+
[pageid: string]: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type: 'page' | 'comp';
|
|
17
|
+
activePage: {
|
|
18
|
+
type: 'common';
|
|
19
|
+
version: string;
|
|
20
|
+
nodes: {
|
|
21
|
+
[id: string]: {
|
|
22
|
+
id: string;
|
|
23
|
+
key: string;
|
|
24
|
+
alias: string;
|
|
25
|
+
sort: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
activeComp: {
|
|
30
|
+
type: 'common';
|
|
31
|
+
version: string;
|
|
32
|
+
args: {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
nodes: {
|
|
38
|
+
[id: string]: {
|
|
39
|
+
id: string;
|
|
40
|
+
key: string;
|
|
41
|
+
alias: string;
|
|
42
|
+
sort: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const initApp: App;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type Compute = {
|
|
2
|
+
spaces: {
|
|
3
|
+
[spaceid: string]: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
sort: number;
|
|
7
|
+
funcs: {
|
|
8
|
+
[funcid: string]: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
dev: string;
|
|
13
|
+
prod: string;
|
|
14
|
+
inputs: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}[];
|
|
19
|
+
outputs: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
flows: {
|
|
27
|
+
[flowid: string]: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
sort: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type: 'func' | 'flow';
|
|
36
|
+
activeFunc: {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
inputs: {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}[];
|
|
44
|
+
outputs: {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
activeFlow: {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const initCompute: Compute;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type Data = {
|
|
2
|
+
spaces: {
|
|
3
|
+
[spaceid: string]: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
sort: number;
|
|
7
|
+
tables: {
|
|
8
|
+
[tableid: string]: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
columns: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
extend: string;
|
|
17
|
+
}[];
|
|
18
|
+
indexes: {
|
|
19
|
+
id: string;
|
|
20
|
+
columns: string[];
|
|
21
|
+
unique: boolean;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const initData: {
|
|
29
|
+
spaces: {};
|
|
30
|
+
};
|
package/dist/state/index.d.ts
CHANGED
|
@@ -1,147 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
children: DirNode[];
|
|
10
|
-
}
|
|
11
|
-
export type BlocklyState = {
|
|
12
|
-
runtime: {
|
|
13
|
-
finalProps: {
|
|
14
|
-
[elementKey: string]: {
|
|
15
|
-
[tag: string]: PropInfo[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
app: {
|
|
20
|
-
apps: {
|
|
21
|
-
[appid: string]: {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
pages: {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}[];
|
|
28
|
-
sort: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
view: {
|
|
32
|
-
type: 'page' | 'comp';
|
|
33
|
-
subtype: 'common';
|
|
34
|
-
version: string;
|
|
35
|
-
args?: {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}[];
|
|
40
|
-
nodes: {
|
|
41
|
-
[key: string]: {
|
|
42
|
-
id: string;
|
|
43
|
-
key: string;
|
|
44
|
-
alias: string;
|
|
45
|
-
sort: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
compute: {
|
|
51
|
-
spaces: {
|
|
52
|
-
[spaceid: string]: {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
sort: number;
|
|
56
|
-
funcs: {
|
|
57
|
-
[funcid: string]: {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
sort: number;
|
|
61
|
-
dev: string;
|
|
62
|
-
prod: string;
|
|
63
|
-
inputs: {
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
type: string;
|
|
67
|
-
}[];
|
|
68
|
-
outputs: {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
type: string;
|
|
72
|
-
}[];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
flows: {
|
|
76
|
-
[flowid: string]: {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
sort: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
activeFunc: {
|
|
85
|
-
id: string;
|
|
86
|
-
name: string;
|
|
87
|
-
inputs: {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
type: string;
|
|
91
|
-
}[];
|
|
92
|
-
outputs: {
|
|
93
|
-
id: string;
|
|
94
|
-
name: string;
|
|
95
|
-
type: string;
|
|
96
|
-
}[];
|
|
97
|
-
};
|
|
98
|
-
activeFlow: {
|
|
99
|
-
id: string;
|
|
100
|
-
name: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
data: {
|
|
104
|
-
spaces: {
|
|
105
|
-
[spaceid: string]: {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
sort: number;
|
|
109
|
-
tables: {
|
|
110
|
-
[tableid: string]: {
|
|
111
|
-
id: string;
|
|
112
|
-
spaceid: string;
|
|
113
|
-
name: string;
|
|
114
|
-
columns: {
|
|
115
|
-
id: string;
|
|
116
|
-
name: string;
|
|
117
|
-
type: string;
|
|
118
|
-
extend: string;
|
|
119
|
-
}[];
|
|
120
|
-
indexes: {
|
|
121
|
-
id: string;
|
|
122
|
-
columns: string[];
|
|
123
|
-
unique: boolean;
|
|
124
|
-
}[];
|
|
125
|
-
sort: number;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
resource: {
|
|
132
|
-
spaces: {
|
|
133
|
-
[spaceid: string]: {
|
|
134
|
-
id: string;
|
|
135
|
-
name: string;
|
|
136
|
-
dirTree: DirNode;
|
|
137
|
-
resources: {
|
|
138
|
-
id: string;
|
|
139
|
-
dirid: string;
|
|
140
|
-
name: string;
|
|
141
|
-
}[];
|
|
142
|
-
sort: number;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
export declare const blocklyState: BlocklyState;
|
|
1
|
+
export * from './app';
|
|
2
|
+
export * from './compute';
|
|
3
|
+
export * from './data';
|
|
4
|
+
export * from './resource';
|
|
5
|
+
export * from './runtime';
|
|
6
|
+
export * from './state';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface DirNode {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
children: DirNode[];
|
|
5
|
+
}
|
|
6
|
+
export type Resource = {
|
|
7
|
+
spaces: {
|
|
8
|
+
[spaceid: string]: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
dirTree: DirNode;
|
|
13
|
+
resources: {
|
|
14
|
+
id: string;
|
|
15
|
+
dirid: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const initResource: {
|
|
22
|
+
spaces: {};
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App } from './app';
|
|
2
|
+
import { Compute } from './compute';
|
|
3
|
+
import { Data } from './data';
|
|
4
|
+
import { Resource } from './resource';
|
|
5
|
+
import { Runtime } from './runtime';
|
|
6
|
+
export type BlocklyState = {
|
|
7
|
+
runtime: Runtime;
|
|
8
|
+
app: App;
|
|
9
|
+
compute: Compute;
|
|
10
|
+
data: Data;
|
|
11
|
+
resource: Resource;
|
|
12
|
+
};
|
|
13
|
+
export declare const blocklyState: BlocklyState;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|