ronds-metadata 1.3.80 → 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 +1 -0
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.js +7 -1
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.js +7 -2
- 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',
|
@@ -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,9 +94,13 @@ 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
|
-
debugger;
|
100
104
|
if (value.dsType) {
|
101
105
|
setDsType(value.dsType);
|
102
106
|
triggerChange({
|
@@ -178,7 +182,8 @@ var DataSource = function DataSource(props) {
|
|
178
182
|
width: '32px'
|
179
183
|
}
|
180
184
|
}, /*#__PURE__*/React.createElement(_Button, {
|
181
|
-
icon: /*#__PURE__*/React.createElement(LinkOutlined, null)
|
185
|
+
icon: /*#__PURE__*/React.createElement(LinkOutlined, null),
|
186
|
+
onClick: onLinkClick
|
182
187
|
})))), dsType === 'Kafka' && /*#__PURE__*/React.createElement(KafkaDatasource, {
|
183
188
|
wrapperCol: wrapperCol,
|
184
189
|
labelCol: labelCol,
|