x-block-lib 0.4.35 → 0.4.37
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/{blockly-3pjknyf9.js → blockly-n2nno6aq.js} +2 -2
- package/dist/components/sourceDlg/content/index.vue.d.ts +6 -0
- package/dist/components/sourceDlg/index.vue.d.ts +1 -5
- package/dist/core/blocks/data/index.d.ts +2 -0
- package/dist/core/blocks/data/selectColumn/v1/index.d.ts +1 -0
- package/dist/core/blocks/data/selectTable/v1/index.d.ts +1 -0
- package/dist/core/blocks/index.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +9 -0
- package/dist/core/locale/msg/zhHans.d.ts +9 -0
- package/dist/core/utils/data/index.d.ts +2 -2
- package/dist/index.js +2460 -2069
- package/dist/{msg-en-kqhn7gr4.js → msg-en-bh6yikwe.js} +10 -0
- package/dist/{msg-zhHans-l9gdu4vx.js → msg-zhHans-mwdm0igs.js} +10 -0
- package/dist/state/index.d.ts +19 -19
- package/package.json +1 -1
- package/dist/core/utils/common/state.d.ts +0 -148
|
@@ -101,6 +101,16 @@ const _ = {
|
|
|
101
101
|
COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: "set func output",
|
|
102
102
|
COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: "COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP",
|
|
103
103
|
COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: "COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL",
|
|
104
|
+
// data
|
|
105
|
+
DATA_AS: "as",
|
|
106
|
+
DATA_LIST: "list",
|
|
107
|
+
DATA_ITEM: "item",
|
|
108
|
+
DATA_V1_SELECT_COLUMN_TITLE: "select column",
|
|
109
|
+
DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
|
|
110
|
+
DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
|
|
111
|
+
DATA_V1_SELECT_TABLE_TITLE: "select table",
|
|
112
|
+
DATA_V1_SELECT_TABLE_TOOLTIP: "DATA_V1_SELECT_TABLE_TOOLTIP",
|
|
113
|
+
DATA_V1_SELECT_TABLE_HELPURL: "DATA_V1_SELECT_TABLE_HELPURL",
|
|
104
114
|
// list
|
|
105
115
|
LIST_V1_CREATE_CONTAINER_TITLE: "list",
|
|
106
116
|
LIST_V1_CREATE_ITEM_TITLE: "item",
|
|
@@ -101,6 +101,16 @@ const _ = {
|
|
|
101
101
|
COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: "设置函数输出",
|
|
102
102
|
COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: "COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP",
|
|
103
103
|
COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: "COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL",
|
|
104
|
+
// data
|
|
105
|
+
DATA: "作为",
|
|
106
|
+
DATA_LIST: "列表",
|
|
107
|
+
DATA_ITEM: "条目",
|
|
108
|
+
DATA_V1_SELECT_COLUMN_TITLE: "选择列",
|
|
109
|
+
DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
|
|
110
|
+
DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
|
|
111
|
+
DATA_V1_SELECT_TABLE_TITLE: "选择表",
|
|
112
|
+
DATA_V1_SELECT_TABLE_TOOLTIP: "DATA_V1_SELECT_TABLE_TOOLTIP",
|
|
113
|
+
DATA_V1_SELECT_TABLE_HELPURL: "DATA_V1_SELECT_TABLE_HELPURL",
|
|
104
114
|
// list
|
|
105
115
|
LIST_V1_CREATE_CONTAINER_TITLE: "列表",
|
|
106
116
|
LIST_V1_CREATE_ITEM_TITLE: "项目",
|
package/dist/state/index.d.ts
CHANGED
|
@@ -106,25 +106,25 @@ export type BlocklyState = {
|
|
|
106
106
|
id: string;
|
|
107
107
|
name: string;
|
|
108
108
|
sort: number;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
128
|
};
|
|
129
129
|
};
|
|
130
130
|
};
|
package/package.json
CHANGED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
export interface PropInfo {
|
|
2
|
-
keys: string;
|
|
3
|
-
names: string[];
|
|
4
|
-
readonly?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface DirNode {
|
|
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
|
-
};
|
|
57
|
-
};
|
|
58
|
-
funcs: {
|
|
59
|
-
[funcid: string]: {
|
|
60
|
-
id: string;
|
|
61
|
-
spaceid: string;
|
|
62
|
-
name: 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
|
-
dev: string;
|
|
74
|
-
prod: string;
|
|
75
|
-
sort: number;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
currFunc: {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
inputs: {
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
type: string;
|
|
85
|
-
}[];
|
|
86
|
-
outputs: {
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
type: string;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
flows: {
|
|
93
|
-
[flowid: string]: {
|
|
94
|
-
id: string;
|
|
95
|
-
spaceid: string;
|
|
96
|
-
name: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
currFlow: {
|
|
100
|
-
id: string;
|
|
101
|
-
name: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
data: {
|
|
105
|
-
spaces: {
|
|
106
|
-
[spaceid: string]: {
|
|
107
|
-
id: string;
|
|
108
|
-
name: string;
|
|
109
|
-
sort: number;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
tables: {
|
|
113
|
-
[tableid: string]: {
|
|
114
|
-
id: string;
|
|
115
|
-
spaceid: string;
|
|
116
|
-
name: string;
|
|
117
|
-
columns: {
|
|
118
|
-
id: string;
|
|
119
|
-
name: string;
|
|
120
|
-
type: string;
|
|
121
|
-
extend: string;
|
|
122
|
-
}[];
|
|
123
|
-
indexes: {
|
|
124
|
-
id: string;
|
|
125
|
-
columns: string[];
|
|
126
|
-
unique: boolean;
|
|
127
|
-
}[];
|
|
128
|
-
sort: number;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
resource: {
|
|
133
|
-
spaces: {
|
|
134
|
-
[spaceid: string]: {
|
|
135
|
-
id: string;
|
|
136
|
-
name: string;
|
|
137
|
-
dirTree: DirNode;
|
|
138
|
-
resources: {
|
|
139
|
-
id: string;
|
|
140
|
-
dirid: string;
|
|
141
|
-
name: string;
|
|
142
|
-
}[];
|
|
143
|
-
sort: number;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
export declare const blocklyState: BlocklyState;
|