ronds-metadata 1.3.79 → 1.3.81
Sign up to get free protection for your applications and to get access to all the features.
- package/es/api/index.js +1 -1
- package/es/comps/MetadataForm/DataCell/business/config.d.ts +23 -0
- package/es/comps/MetadataForm/DataCell/business/config.js +22 -1
- package/es/comps/MetadataForm/DataCell/business/index.js +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.js +7 -1
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.js +14 -2
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +18 -1
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +11 -1
- package/package.json +1 -1
package/es/api/index.js
CHANGED
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import { guid, md5 } from '../utils';
|
11
11
|
import { addInterceptor, HttpHelper } from '../framework/http';
|
12
12
|
var http = new HttpHelper();
|
13
|
-
var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.
|
13
|
+
var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MjQ0OTg5MjcsImV4cCI6MTcyNDc1ODEyNywiaXNzIjoiaHR0cDovL2ZhYmlvOjk5OTkvc3VwZXJjYXJlY29yZSIsImF1ZCI6ImVwbSIsImNsaWVudF9pZCI6ImVwbSIsInN1YiI6IjNhMTIxZDJiLWYwZDUtZDQ3OC0xN2Q3LWQwODEwZDgzZDViMSIsImF1dGhfdGltZSI6MTcyNDQ5ODkyNiwiaWRwIjoibG9jYWwiLCJuYW1lIjoicGhtIiwiZW1haWwiOiJwaG1AYWJwLmlvIiwicm9sZSI6WyJhZG1pbiIsInBobV9hZG1pbiJdLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiJwaG3ov5Dnu7TotKblj7ciLCJwaG9uZV9udW1iZXIiOiIxMzYwMDAwMDAwMCIsInBob25lX251bWJlcl92ZXJpZmllZCI6IlRydWUiLCJlbWFpbF92ZXJpZmllZCI6IlRydWUiLCJpYXQiOjE3MjQ0OTg5MjcsInNjb3BlIjpbImFkZHJlc3MiLCJlbWFpbCIsImVwbSIsIm9wZW5pZCIsInBob25lIiwicHJvZmlsZSIsInJvbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.PSiq8OLUndIOZq4kmZcFafJSE6T7J010sttx-b2uTWkhBEh2mV0H_MPujH6iyTjWk1D6bZPdWoE7TjEcKnenZzW28_eWuzNHbCWe0O0aw4XPTX57ibxvxrX0aFUvniMyfepZn88MSP3uQvzY4T3QnrQiK_Io2pV6w9NCsG-GJicboqBnb4pFwXHEVADTmyhyc7iowc_p9FNrlgGswU8VZPgIk3caUYiso_NCql3zuUX6JcTNFxip_6pkrt8PX4Da4BTHJCMcyssUDp_E9WEud50EDMnvXBqOydc6txXIwfFCRwtePK5WjAFHNGSDjhmH2-iGzyUC7fOIjXgWb2_pyw';
|
14
14
|
addInterceptor(function (httpClient) {
|
15
15
|
httpClient.interceptors.request.use(function (_config) {
|
16
16
|
if (!_config.headers) {
|
@@ -105,6 +105,7 @@ export declare const BusinessSchema: {
|
|
105
105
|
common: {
|
106
106
|
id: string;
|
107
107
|
label: string;
|
108
|
+
require: boolean;
|
108
109
|
depend: {
|
109
110
|
show: string;
|
110
111
|
};
|
@@ -116,6 +117,28 @@ export declare const BusinessSchema: {
|
|
116
117
|
}[];
|
117
118
|
enum?: undefined;
|
118
119
|
items?: undefined;
|
120
|
+
} | {
|
121
|
+
id: string;
|
122
|
+
type: string;
|
123
|
+
fields: {
|
124
|
+
id: string;
|
125
|
+
type: string;
|
126
|
+
refId: string;
|
127
|
+
value: {
|
128
|
+
common: {
|
129
|
+
id: string;
|
130
|
+
label: string;
|
131
|
+
colSpan: number;
|
132
|
+
disabled: boolean;
|
133
|
+
depend: {
|
134
|
+
show: string;
|
135
|
+
};
|
136
|
+
};
|
137
|
+
text: {};
|
138
|
+
};
|
139
|
+
}[];
|
140
|
+
enum?: undefined;
|
141
|
+
items?: undefined;
|
119
142
|
} | {
|
120
143
|
id: string;
|
121
144
|
type: string;
|
@@ -86,7 +86,7 @@ var ETL_SOURCE_SCHEMA = [{
|
|
86
86
|
refId: 'com.ronds.schema.default.Rule.Form',
|
87
87
|
value: {
|
88
88
|
common: {
|
89
|
-
label: '
|
89
|
+
label: '批处理大小',
|
90
90
|
require: true,
|
91
91
|
labelSpan: 4,
|
92
92
|
depend: {
|
@@ -126,6 +126,7 @@ var ETL_SOURCE_SCHEMA = [{
|
|
126
126
|
common: {
|
127
127
|
id: 'filepath',
|
128
128
|
label: '文件上传',
|
129
|
+
require: true,
|
129
130
|
depend: {
|
130
131
|
show: 'datasource.dsType=="Minio"'
|
131
132
|
}
|
@@ -135,6 +136,26 @@ var ETL_SOURCE_SCHEMA = [{
|
|
135
136
|
}
|
136
137
|
}
|
137
138
|
}]
|
139
|
+
}, {
|
140
|
+
id: 'filepathValue',
|
141
|
+
type: 'text',
|
142
|
+
fields: [{
|
143
|
+
id: 'com.ronds.schema.default.Rule.Form',
|
144
|
+
type: 'ref',
|
145
|
+
refId: 'com.ronds.schema.default.Rule.Form',
|
146
|
+
value: {
|
147
|
+
common: {
|
148
|
+
id: 'filepathValue',
|
149
|
+
label: '文件路径',
|
150
|
+
colSpan: 2,
|
151
|
+
disabled: true,
|
152
|
+
depend: {
|
153
|
+
show: 'datasource.dsType=="Minio"'
|
154
|
+
}
|
155
|
+
},
|
156
|
+
text: {}
|
157
|
+
}
|
158
|
+
}]
|
138
159
|
}, {
|
139
160
|
id: 'headers',
|
140
161
|
type: 'array',
|
@@ -16,9 +16,10 @@ var BusinessForm = function BusinessForm(props) {
|
|
16
16
|
var valueRef = React.useRef({});
|
17
17
|
React.useEffect(function () {
|
18
18
|
if (value) {
|
19
|
+
debugger;
|
19
20
|
formRef.current.setFieldsValue(_objectSpread({}, value));
|
20
21
|
}
|
21
|
-
}, [
|
22
|
+
}, []);
|
22
23
|
var triggerChange = function triggerChange(changedValue) {
|
23
24
|
valueRef.current = _objectSpread(_objectSpread({}, valueRef.current), changedValue);
|
24
25
|
onChange && onChange(valueRef.current);
|
@@ -43,6 +43,11 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
43
43
|
dt: value
|
44
44
|
});
|
45
45
|
};
|
46
|
+
var onPlusClick = function onPlusClick() {
|
47
|
+
onChange && onChange({
|
48
|
+
plus: true
|
49
|
+
});
|
50
|
+
};
|
46
51
|
React.useEffect(function () {
|
47
52
|
if (initialValue) {
|
48
53
|
onKeySpaceChange(initialValue.keyspace);
|
@@ -110,7 +115,8 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
110
115
|
width: '32px'
|
111
116
|
}
|
112
117
|
}, /*#__PURE__*/React.createElement(_Button, {
|
113
|
-
icon: /*#__PURE__*/React.createElement(PlusOutlined, null)
|
118
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
119
|
+
onClick: onPlusClick
|
114
120
|
})))));
|
115
121
|
};
|
116
122
|
export default CassandraDatasource;
|
@@ -94,13 +94,24 @@ var DataSource = function DataSource(props) {
|
|
94
94
|
var onSqlServerChange = function onSqlServerChange(value) {
|
95
95
|
triggerChange(_objectSpread({}, value));
|
96
96
|
};
|
97
|
+
var onLinkClick = function onLinkClick() {
|
98
|
+
triggerChange({
|
99
|
+
link: true
|
100
|
+
});
|
101
|
+
};
|
97
102
|
React.useEffect(function () {
|
98
103
|
if (value) {
|
99
104
|
if (value.dsType) {
|
100
105
|
setDsType(value.dsType);
|
106
|
+
triggerChange({
|
107
|
+
dsType: value.dsType
|
108
|
+
});
|
101
109
|
}
|
102
110
|
if (value.datasource) {
|
103
111
|
setDatasource(value.datasource);
|
112
|
+
triggerChange({
|
113
|
+
datasource: value.datasource
|
114
|
+
});
|
104
115
|
}
|
105
116
|
switch (value === null || value === void 0 ? void 0 : value.dsType) {
|
106
117
|
case 'Kafka':
|
@@ -117,7 +128,7 @@ var DataSource = function DataSource(props) {
|
|
117
128
|
break;
|
118
129
|
}
|
119
130
|
}
|
120
|
-
}, [
|
131
|
+
}, []);
|
121
132
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
122
133
|
style: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) ? {
|
123
134
|
padding: '10px 10px 10px 10px',
|
@@ -171,7 +182,8 @@ var DataSource = function DataSource(props) {
|
|
171
182
|
width: '32px'
|
172
183
|
}
|
173
184
|
}, /*#__PURE__*/React.createElement(_Button, {
|
174
|
-
icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
|
185
|
+
icon: /*#__PURE__*/React.createElement(LinkOutlined, null),
|
186
|
+
onClick: onLinkClick
|
175
187
|
})))), dsType === 'Kafka' && /*#__PURE__*/React.createElement(KafkaDatasource, {
|
176
188
|
wrapperCol: wrapperCol,
|
177
189
|
labelCol: labelCol,
|
@@ -90,21 +90,38 @@ var MapTable = function MapTable(props) {
|
|
90
90
|
if (value) {
|
91
91
|
if (value.mapping) {
|
92
92
|
setMapping(value.mapping);
|
93
|
+
triggerChange({
|
94
|
+
mapping: value.mapping
|
95
|
+
});
|
93
96
|
}
|
94
97
|
if (value.output) {
|
95
98
|
setOutput(value.output);
|
99
|
+
triggerChange({
|
100
|
+
output: value.output
|
101
|
+
});
|
96
102
|
}
|
97
103
|
if (value.options) {
|
98
104
|
setOptions(value.options);
|
105
|
+
triggerChange({
|
106
|
+
options: value.options
|
107
|
+
});
|
99
108
|
}
|
100
109
|
if (value.dataSource) {
|
101
110
|
setTableDataSource(value.dataSource);
|
111
|
+
tableDataSourceRef.current = value.dataSource;
|
112
|
+
triggerChange({
|
113
|
+
dataSource: value.dataSource
|
114
|
+
});
|
102
115
|
}
|
103
116
|
if (value.dataTarget) {
|
104
117
|
setTableDataTarget(value.dataTarget);
|
118
|
+
tableDataTargetRef.current = value.dataTarget;
|
119
|
+
triggerChange({
|
120
|
+
dataTarget: value.dataTarget
|
121
|
+
});
|
105
122
|
}
|
106
123
|
}
|
107
|
-
}, [
|
124
|
+
}, []);
|
108
125
|
React.useEffect(function () {
|
109
126
|
if (disableArray) {
|
110
127
|
var _mapping = [];
|
@@ -92,15 +92,25 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
92
92
|
if (value) {
|
93
93
|
if (value.view) {
|
94
94
|
setView(value.view);
|
95
|
+
triggerChange({
|
96
|
+
view: value.view
|
97
|
+
});
|
95
98
|
}
|
96
99
|
if (value.selected) {
|
97
100
|
setSelected(value.selected);
|
101
|
+
triggerChange({
|
102
|
+
selected: value.selected
|
103
|
+
});
|
98
104
|
}
|
99
105
|
if (value.list) {
|
100
106
|
setList(value.list);
|
107
|
+
listRef.current = value.list;
|
108
|
+
triggerChange({
|
109
|
+
list: value.list
|
110
|
+
});
|
101
111
|
}
|
102
112
|
}
|
103
|
-
}, [
|
113
|
+
}, []);
|
104
114
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Row, {
|
105
115
|
className: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) && 'ant-form-item',
|
106
116
|
style: {
|