ronds-metadata 1.3.84 → 1.3.86
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -25
- package/es/api/index.js +5 -7
- package/es/comps/CodeEdit/index.d.ts +2 -2
- package/es/comps/CodeEdit/index.js +3 -2
- package/es/comps/CodeEdit/index.less +6 -6
- package/es/comps/DataMine/Line.d.ts +1 -2
- package/es/comps/DataMine/Line.js +1 -0
- package/es/comps/DataMine/index.d.ts +1 -2
- package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
- package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
- package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +1 -2
- package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +1 -2
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +1 -2
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
- package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
- package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
- package/es/comps/DynamicPorts/comps/shape/node.js +9 -8
- package/es/comps/DynamicPorts/graph.js +4 -5
- package/es/comps/DynamicPorts/index.d.ts +1 -2
- package/es/comps/DynamicPorts/index.less +307 -307
- package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
- package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
- package/es/comps/Editable/DataCell/Input.d.ts +1 -1
- package/es/comps/Editable/DataCell/Number.d.ts +1 -1
- package/es/comps/Editable/DataCell/Select.d.ts +1 -1
- package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
- package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
- package/es/comps/Editable/comps/EditableAction.d.ts +1 -2
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/comps/Texty.js +4 -5
- package/es/comps/Editable/comps/Texty.less +43 -43
- package/es/comps/Editable/comps/index.less +38 -38
- package/es/comps/Editable/index.d.ts +1 -2
- package/es/comps/Editable/index.less +97 -97
- package/es/comps/Editable/utils.d.ts +1 -2
- package/es/comps/FileView/index.d.ts +1 -2
- package/es/comps/FileView/index.js +3 -2
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/comps/Canvas/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Settings/index.js +2 -1
- package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
- package/es/comps/FormGenerator/index.d.ts +1 -2
- package/es/comps/FormGenerator/index.less +20 -20
- package/es/comps/JsonEdit/index.d.ts +1 -2
- package/es/comps/JsonEdit/index.js +1 -0
- package/es/comps/JsonEdit/index.less +64 -64
- package/es/comps/JsonView/index.d.ts +1 -2
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdEdit/index.d.ts +1 -2
- package/es/comps/MdEdit/index.less +6 -6
- package/es/comps/MdEditPro/index.d.ts +1 -2
- package/es/comps/MdEditPro/index.less +166 -166
- package/es/comps/MdEditPro/index2.d.ts +1 -1
- package/es/comps/MdNavbar/index.d.ts +1 -2
- package/es/comps/MdNavbar/index.less +77 -77
- package/es/comps/MdView/index.d.ts +1 -1
- package/es/comps/MdView/index.less +376 -376
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +1 -2
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
- package/es/comps/MetadataEdit/constant/index.js +2 -0
- package/es/comps/MetadataEdit/index.d.ts +1 -2
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.js +8 -4
- package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/business/index.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/business/index.js +1 -0
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.js +10 -5
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.js +8 -4
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.js +12 -6
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.js +12 -6
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.js +24 -7
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +12 -16
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +2 -2
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +12 -6
- package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
- package/es/comps/MetadataForm/HOC/index.less +41 -41
- package/es/comps/MetadataForm/index.d.ts +1 -2
- package/es/comps/MetadataForm/utils.d.ts +2 -3
- package/es/comps/Split/index.d.ts +1 -1
- package/es/comps/Split/index.less +29 -29
- package/es/framework/RxStore/demo/index.d.ts +1 -2
- package/es/framework/graph/index.less +15 -15
- package/es/framework/http/msgpack5/lib/helpers.js +1 -0
- package/es/framework/libs/jquery.min.js +4 -4
- package/es/framework/locale/dil8/di18n.js +3 -5
- package/es/framework/metadata/MetadataService.js +14 -14
- package/es/framework/metadata/index.js +15 -14
- package/es/framework/metadata/types.d.ts +103 -103
- package/es/theme.less +81 -81
- package/package.json +116 -116
@@ -1,8 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IMetaFieldsEditProps {
|
3
2
|
type?: string;
|
4
3
|
defaultValues?: any;
|
5
4
|
onChange?: (values: any) => void;
|
6
5
|
}
|
7
|
-
declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) =>
|
6
|
+
declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) => JSX.Element;
|
8
7
|
export default MetaFieldsEdit;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { FormInstance } from 'antd/lib/form';
|
3
2
|
interface IMetaPropsEditProps {
|
4
3
|
form: FormInstance;
|
@@ -10,5 +9,5 @@ interface IMetaPropsEditProps {
|
|
10
9
|
onAddFields?: (idx: number) => void;
|
11
10
|
onNewRefClick?: () => void;
|
12
11
|
}
|
13
|
-
declare const MetaPropsEdit: (props: IMetaPropsEditProps) =>
|
12
|
+
declare const MetaPropsEdit: (props: IMetaPropsEditProps) => JSX.Element;
|
14
13
|
export default MetaPropsEdit;
|
@@ -47,6 +47,7 @@ export var OUTERMOST_TYPES_OPTIONS = [{
|
|
47
47
|
// value: 'bool',
|
48
48
|
// },
|
49
49
|
];
|
50
|
+
|
50
51
|
export var RULE_TYPES_OPTIONS = [{
|
51
52
|
label: '引用',
|
52
53
|
value: 'ref'
|
@@ -64,6 +65,7 @@ export var RULE_TYPES_OPTIONS = [{
|
|
64
65
|
// value: 'bool',
|
65
66
|
// },
|
66
67
|
];
|
68
|
+
|
67
69
|
export var NUMBER_FORMAT_OPTIONS = [{
|
68
70
|
label: 'int',
|
69
71
|
value: 'int'
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FormInstance } from 'antd';
|
2
|
-
import React from 'react';
|
3
2
|
import './index.less';
|
4
3
|
interface IMetadataEditProps {
|
5
4
|
/**
|
@@ -27,5 +26,5 @@ interface IMetadataEditProps {
|
|
27
26
|
*/
|
28
27
|
getFormInstance?: (form: FormInstance) => void;
|
29
28
|
}
|
30
|
-
declare const MetadataEdit: (props: IMetadataEditProps) =>
|
29
|
+
declare const MetadataEdit: (props: IMetadataEditProps) => JSX.Element;
|
31
30
|
export default MetadataEdit;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
.metadata-edit {
|
2
|
-
height: 100%;
|
3
|
-
width: 100%;
|
4
|
-
.ant-row {
|
5
|
-
display: block;
|
6
|
-
}
|
7
|
-
.pr-10 {
|
8
|
-
padding-right: 10px;
|
9
|
-
}
|
10
|
-
}
|
1
|
+
.metadata-edit {
|
2
|
+
height: 100%;
|
3
|
+
width: 100%;
|
4
|
+
.ant-row {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
.pr-10 {
|
8
|
+
padding-right: 10px;
|
9
|
+
}
|
10
|
+
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
export interface IMetaFileds {
|
2
|
-
id: string;
|
3
|
-
type: 'object';
|
4
|
-
properties: any[];
|
5
|
-
value: any;
|
6
|
-
}
|
7
|
-
|
8
|
-
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
-
|
10
|
-
export type IMetaProperty = {
|
11
|
-
/**
|
12
|
-
* 属性的名称
|
13
|
-
*/
|
14
|
-
id: string;
|
15
|
-
/**
|
16
|
-
* 类型
|
17
|
-
*/
|
18
|
-
type: string;
|
19
|
-
enum?: any[];
|
20
|
-
};
|
1
|
+
export interface IMetaFileds {
|
2
|
+
id: string;
|
3
|
+
type: 'object';
|
4
|
+
properties: any[];
|
5
|
+
value: any;
|
6
|
+
}
|
7
|
+
|
8
|
+
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
+
|
10
|
+
export type IMetaProperty = {
|
11
|
+
/**
|
12
|
+
* 属性的名称
|
13
|
+
*/
|
14
|
+
id: string;
|
15
|
+
/**
|
16
|
+
* 类型
|
17
|
+
*/
|
18
|
+
type: string;
|
19
|
+
enum?: any[];
|
20
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
6
6
|
export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
@@ -133,7 +133,7 @@ function Index(props) {
|
|
133
133
|
}, _callee);
|
134
134
|
})), [extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.autoComplete]);
|
135
135
|
var processInputType = function processInputType(_type) {
|
136
|
-
var _extraInfo$disabled, _extraInfo$disabled2, _extraInfo$disabled3, _extraInfo$disabled4, _extraInfo$disabled5, _extraInfo$disabled6, _extraInfo$disabled7, _extraInfo$disabled8, _extraInfo$disabled9, _extraInfo$addonAfter2, _extraInfo$addonAfter3, _extraInfo$addonAfter4, _extraInfo$addonAfter5, _extraInfo$
|
136
|
+
var _extraInfo$disabled, _extraInfo$disabled2, _extraInfo$disabled3, _extraInfo$disabled4, _extraInfo$disabled5, _extraInfo$disabled6, _extraInfo$disabled7, _extraInfo$disabled8, _extraInfo$disabled9, _extraInfo$disabled10, _extraInfo$disabled11, _extraInfo$addonAfter2, _extraInfo$addonAfter3, _extraInfo$addonAfter4, _extraInfo$addonAfter5, _extraInfo$disabled12;
|
137
137
|
switch (_type) {
|
138
138
|
case 'autoComplete':
|
139
139
|
return /*#__PURE__*/React.createElement(_AutoComplete, {
|
@@ -210,9 +210,13 @@ function Index(props) {
|
|
210
210
|
disabled: (_extraInfo$disabled9 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled9 !== void 0 ? _extraInfo$disabled9 : disabled
|
211
211
|
});
|
212
212
|
case 'sparkSqlTable':
|
213
|
-
return /*#__PURE__*/React.createElement(SparkSqlTable, extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.sparkSqlTable
|
213
|
+
return /*#__PURE__*/React.createElement(SparkSqlTable, _extends({}, extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.sparkSqlTable, {
|
214
|
+
disabled: (_extraInfo$disabled10 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled10 !== void 0 ? _extraInfo$disabled10 : disabled
|
215
|
+
}));
|
214
216
|
case 'mapTable':
|
215
|
-
return /*#__PURE__*/React.createElement(MapTable, extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.mapTable
|
217
|
+
return /*#__PURE__*/React.createElement(MapTable, _extends({}, extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.mapTable, {
|
218
|
+
disabled: (_extraInfo$disabled11 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled11 !== void 0 ? _extraInfo$disabled11 : disabled
|
219
|
+
}));
|
216
220
|
default:
|
217
221
|
return /*#__PURE__*/React.createElement(_Input, {
|
218
222
|
addonAfter: ((_extraInfo$addonAfter2 = extraInfo.addonAfter) === null || _extraInfo$addonAfter2 === void 0 ? void 0 : _extraInfo$addonAfter2.key) ? /*#__PURE__*/React.createElement(_Form.Item, {
|
@@ -227,7 +231,7 @@ function Index(props) {
|
|
227
231
|
}))) : undefined,
|
228
232
|
showCount: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.showCount,
|
229
233
|
maxLength: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.maxLength,
|
230
|
-
disabled: (_extraInfo$
|
234
|
+
disabled: (_extraInfo$disabled12 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled12 !== void 0 ? _extraInfo$disabled12 : disabled,
|
231
235
|
placeholder: tr(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder),
|
232
236
|
title: tr(valueTitle),
|
233
237
|
allowClear: true
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMetaFormProps } from '../interface';
|
3
|
-
declare function Index(props: IMetaFormProps):
|
3
|
+
declare function Index(props: IMetaFormProps): JSX.Element;
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
5
5
|
export default _default;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IBusinessFormProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
disabled?: boolean;
|
5
4
|
value?: any;
|
6
5
|
onChange?: (value: any) => void;
|
7
6
|
}
|
8
|
-
declare const BusinessForm: (props: IBusinessFormProps) =>
|
7
|
+
declare const BusinessForm: (props: IBusinessFormProps) => JSX.Element;
|
9
8
|
export default BusinessForm;
|
@@ -27,6 +27,7 @@ var BusinessForm = function BusinessForm(props) {
|
|
27
27
|
triggerChange(values);
|
28
28
|
};
|
29
29
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MetadataForm, {
|
30
|
+
disabled: disabled,
|
30
31
|
schema: schema,
|
31
32
|
getFormInstance: function getFormInstance(form) {
|
32
33
|
formRef.current = form;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { FormInstance } from 'antd';
|
3
2
|
interface ITableArrayProps {
|
4
3
|
name: string | string[];
|
@@ -11,5 +10,5 @@ interface ITableArrayProps {
|
|
11
10
|
addButtonHidden?: boolean;
|
12
11
|
initValue: any;
|
13
12
|
}
|
14
|
-
declare const TableArray: (props: ITableArrayProps) =>
|
13
|
+
declare const TableArray: (props: ITableArrayProps) => JSX.Element;
|
15
14
|
export default TableArray;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ICassandraDatasourceProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
datasource?: any;
|
@@ -6,6 +5,7 @@ interface ICassandraDatasourceProps {
|
|
6
5
|
labelCol: string;
|
7
6
|
onChange?: any;
|
8
7
|
initialValue?: any;
|
8
|
+
disabled?: any;
|
9
9
|
}
|
10
|
-
declare const CassandraDatasource: (props: ICassandraDatasourceProps) =>
|
10
|
+
declare const CassandraDatasource: (props: ICassandraDatasourceProps) => JSX.Element;
|
11
11
|
export default CassandraDatasource;
|
@@ -20,7 +20,8 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
20
20
|
onChange = props.onChange,
|
21
21
|
wrapperCol = props.wrapperCol,
|
22
22
|
labelCol = props.labelCol,
|
23
|
-
initialValue = props.initialValue
|
23
|
+
initialValue = props.initialValue,
|
24
|
+
disabled = props.disabled;
|
24
25
|
var _React$useState = React.useState(),
|
25
26
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
26
27
|
keySpace = _React$useState2[0],
|
@@ -78,7 +79,8 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
78
79
|
allowClear: true,
|
79
80
|
value: keySpace,
|
80
81
|
options: keySpaceOpts,
|
81
|
-
onChange: onKeySpaceChange
|
82
|
+
onChange: onKeySpaceChange,
|
83
|
+
disabled: disabled
|
82
84
|
})), /*#__PURE__*/React.createElement(_Col, {
|
83
85
|
span: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelSpan) && (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.layout) === 'vertical' && 24,
|
84
86
|
flex: labelCol
|
@@ -108,7 +110,8 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
108
110
|
onChange: onDataTableChange,
|
109
111
|
style: {
|
110
112
|
width: 'calc(100% - 32px)'
|
111
|
-
}
|
113
|
+
},
|
114
|
+
disabled: disabled
|
112
115
|
}), /*#__PURE__*/React.createElement(_Tooltip, {
|
113
116
|
title: tr('手动建表'),
|
114
117
|
style: {
|
@@ -116,13 +119,15 @@ var CassandraDatasource = function CassandraDatasource(props) {
|
|
116
119
|
}
|
117
120
|
}, /*#__PURE__*/React.createElement(_Button, {
|
118
121
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
119
|
-
onClick: onPlusClick
|
122
|
+
onClick: onPlusClick,
|
123
|
+
disabled: disabled
|
120
124
|
}))) : /*#__PURE__*/React.createElement(_Select, {
|
121
125
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$datasource7 = extraInfo.datasource) === null || _extraInfo$datasource7 === void 0 ? void 0 : (_extraInfo$datasource8 = _extraInfo$datasource7.cassandra) === null || _extraInfo$datasource8 === void 0 ? void 0 : _extraInfo$datasource8.isMutiple) ? 'multiple' : undefined,
|
122
126
|
allowClear: true,
|
123
127
|
value: dataTable,
|
124
128
|
options: dataTableOpts,
|
125
|
-
onChange: onDataTableChange
|
129
|
+
onChange: onDataTableChange,
|
130
|
+
disabled: disabled
|
126
131
|
})));
|
127
132
|
};
|
128
133
|
export default CassandraDatasource;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IKafkaDatasourceProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
datasource?: any;
|
@@ -6,6 +5,7 @@ interface IKafkaDatasourceProps {
|
|
6
5
|
labelCol: string;
|
7
6
|
onChange?: any;
|
8
7
|
initialValue?: any;
|
8
|
+
disabled?: any;
|
9
9
|
}
|
10
|
-
declare const KafkaDatasource: (props: IKafkaDatasourceProps) =>
|
10
|
+
declare const KafkaDatasource: (props: IKafkaDatasourceProps) => JSX.Element;
|
11
11
|
export default KafkaDatasource;
|
@@ -20,7 +20,8 @@ var KafkaDatasource = function KafkaDatasource(props) {
|
|
20
20
|
onChange = props.onChange,
|
21
21
|
wrapperCol = props.wrapperCol,
|
22
22
|
labelCol = props.labelCol,
|
23
|
-
initialValue = props.initialValue
|
23
|
+
initialValue = props.initialValue,
|
24
|
+
disabled = props.disabled;
|
24
25
|
var _React$useState = React.useState(),
|
25
26
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
26
27
|
topic = _React$useState2[0],
|
@@ -71,7 +72,8 @@ var KafkaDatasource = function KafkaDatasource(props) {
|
|
71
72
|
onChange: onTopicChange,
|
72
73
|
style: {
|
73
74
|
width: 'calc(100% - 32px)'
|
74
|
-
}
|
75
|
+
},
|
76
|
+
disabled: disabled
|
75
77
|
}), /*#__PURE__*/React.createElement(_Tooltip, {
|
76
78
|
title: tr('手动建表'),
|
77
79
|
style: {
|
@@ -79,13 +81,15 @@ var KafkaDatasource = function KafkaDatasource(props) {
|
|
79
81
|
}
|
80
82
|
}, /*#__PURE__*/React.createElement(_Button, {
|
81
83
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
82
|
-
onClick: onPlusClick
|
84
|
+
onClick: onPlusClick,
|
85
|
+
disabled: disabled
|
83
86
|
}))) : /*#__PURE__*/React.createElement(_Select, {
|
84
87
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$datasource5 = extraInfo.datasource) === null || _extraInfo$datasource5 === void 0 ? void 0 : (_extraInfo$datasource6 = _extraInfo$datasource5.kafka) === null || _extraInfo$datasource6 === void 0 ? void 0 : _extraInfo$datasource6.isMutiple) ? 'multiple' : undefined,
|
85
88
|
value: topic,
|
86
89
|
allowClear: true,
|
87
90
|
options: topicOpts,
|
88
|
-
onChange: onTopicChange
|
91
|
+
onChange: onTopicChange,
|
92
|
+
disabled: disabled
|
89
93
|
})));
|
90
94
|
};
|
91
95
|
export default KafkaDatasource;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IPostgreSQLDatasourceProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
wrapperCol: string;
|
@@ -6,6 +5,7 @@ interface IPostgreSQLDatasourceProps {
|
|
6
5
|
datasource?: any;
|
7
6
|
onChange?: any;
|
8
7
|
initialValue?: any;
|
8
|
+
disabled?: boolean;
|
9
9
|
}
|
10
|
-
declare const PostgreSQLDatasource: (props: IPostgreSQLDatasourceProps) =>
|
10
|
+
declare const PostgreSQLDatasource: (props: IPostgreSQLDatasourceProps) => JSX.Element;
|
11
11
|
export default PostgreSQLDatasource;
|
@@ -25,7 +25,8 @@ var PostgreSQLDatasource = function PostgreSQLDatasource(props) {
|
|
25
25
|
labelCol = props.labelCol,
|
26
26
|
datasource = props.datasource,
|
27
27
|
onChange = props.onChange,
|
28
|
-
initialValue = props.initialValue
|
28
|
+
initialValue = props.initialValue,
|
29
|
+
disabled = props.disabled;
|
29
30
|
var _React$useState = React.useState(),
|
30
31
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
31
32
|
dataBase = _React$useState2[0],
|
@@ -95,7 +96,8 @@ var PostgreSQLDatasource = function PostgreSQLDatasource(props) {
|
|
95
96
|
allowClear: true,
|
96
97
|
value: dataBase,
|
97
98
|
options: dataBaseOpts,
|
98
|
-
onChange: onDataBaseChange
|
99
|
+
onChange: onDataBaseChange,
|
100
|
+
disabled: disabled
|
99
101
|
})), /*#__PURE__*/React.createElement(_Col, {
|
100
102
|
span: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelSpan) && (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.layout) === 'vertical' && 24,
|
101
103
|
flex: labelCol
|
@@ -120,7 +122,8 @@ var PostgreSQLDatasource = function PostgreSQLDatasource(props) {
|
|
120
122
|
allowClear: true,
|
121
123
|
value: schema,
|
122
124
|
options: schemaOpts,
|
123
|
-
onChange: onSchemaChange
|
125
|
+
onChange: onSchemaChange,
|
126
|
+
disabled: disabled
|
124
127
|
})), /*#__PURE__*/React.createElement(_Col, {
|
125
128
|
span: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelSpan) && (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.layout) === 'vertical' && 24,
|
126
129
|
flex: labelCol
|
@@ -150,7 +153,8 @@ var PostgreSQLDatasource = function PostgreSQLDatasource(props) {
|
|
150
153
|
onChange: onDataTableChange,
|
151
154
|
style: {
|
152
155
|
width: 'calc(100% - 32px)'
|
153
|
-
}
|
156
|
+
},
|
157
|
+
disabled: disabled
|
154
158
|
}), /*#__PURE__*/React.createElement(_Tooltip, {
|
155
159
|
title: tr('手动建表'),
|
156
160
|
style: {
|
@@ -158,13 +162,15 @@ var PostgreSQLDatasource = function PostgreSQLDatasource(props) {
|
|
158
162
|
}
|
159
163
|
}, /*#__PURE__*/React.createElement(_Button, {
|
160
164
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
161
|
-
onClick: onPlusClick
|
165
|
+
onClick: onPlusClick,
|
166
|
+
disabled: disabled
|
162
167
|
}))) : /*#__PURE__*/React.createElement(_Select, {
|
163
168
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$datasource9 = extraInfo.datasource) === null || _extraInfo$datasource9 === void 0 ? void 0 : (_extraInfo$datasource10 = _extraInfo$datasource9.postgreSql) === null || _extraInfo$datasource10 === void 0 ? void 0 : _extraInfo$datasource10.isMutiple) ? 'multiple' : undefined,
|
164
169
|
allowClear: true,
|
165
170
|
value: dataTable,
|
166
171
|
options: dataTableOpts,
|
167
|
-
onChange: onDataTableChange
|
172
|
+
onChange: onDataTableChange,
|
173
|
+
disabled: disabled
|
168
174
|
})));
|
169
175
|
};
|
170
176
|
export default PostgreSQLDatasource;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ISqlServerDatasourceProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
datasource?: any;
|
@@ -6,6 +5,7 @@ interface ISqlServerDatasourceProps {
|
|
6
5
|
labelCol: string;
|
7
6
|
onChange?: any;
|
8
7
|
initialValue?: any;
|
8
|
+
disabled?: any;
|
9
9
|
}
|
10
|
-
declare const SqlServerDatasource: (props: ISqlServerDatasourceProps) =>
|
10
|
+
declare const SqlServerDatasource: (props: ISqlServerDatasourceProps) => JSX.Element;
|
11
11
|
export default SqlServerDatasource;
|
@@ -20,7 +20,8 @@ var SqlServerDatasource = function SqlServerDatasource(props) {
|
|
20
20
|
wrapperCol = props.wrapperCol,
|
21
21
|
labelCol = props.labelCol,
|
22
22
|
onChange = props.onChange,
|
23
|
-
initialValue = props.initialValue
|
23
|
+
initialValue = props.initialValue,
|
24
|
+
disabled = props.disabled;
|
24
25
|
var _React$useState = React.useState(),
|
25
26
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
26
27
|
dataBase = _React$useState2[0],
|
@@ -90,7 +91,8 @@ var SqlServerDatasource = function SqlServerDatasource(props) {
|
|
90
91
|
allowClear: true,
|
91
92
|
value: dataBase,
|
92
93
|
options: dataBaseOpts,
|
93
|
-
onChange: onDataBaseChange
|
94
|
+
onChange: onDataBaseChange,
|
95
|
+
disabled: disabled
|
94
96
|
})), /*#__PURE__*/React.createElement(_Col, {
|
95
97
|
span: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelSpan) && (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.layout) === 'vertical' && 24,
|
96
98
|
flex: labelCol
|
@@ -115,7 +117,8 @@ var SqlServerDatasource = function SqlServerDatasource(props) {
|
|
115
117
|
allowClear: true,
|
116
118
|
value: schema,
|
117
119
|
options: schemaOpts,
|
118
|
-
onChange: onSchemaChange
|
120
|
+
onChange: onSchemaChange,
|
121
|
+
disabled: disabled
|
119
122
|
})), /*#__PURE__*/React.createElement(_Col, {
|
120
123
|
span: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.labelSpan) && (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.layout) === 'vertical' && 24,
|
121
124
|
flex: labelCol
|
@@ -145,7 +148,8 @@ var SqlServerDatasource = function SqlServerDatasource(props) {
|
|
145
148
|
onChange: onDataTableChange,
|
146
149
|
style: {
|
147
150
|
width: 'calc(100% - 32px)'
|
148
|
-
}
|
151
|
+
},
|
152
|
+
disabled: disabled
|
149
153
|
}), /*#__PURE__*/React.createElement(_Tooltip, {
|
150
154
|
title: tr('手动建表'),
|
151
155
|
style: {
|
@@ -153,13 +157,15 @@ var SqlServerDatasource = function SqlServerDatasource(props) {
|
|
153
157
|
}
|
154
158
|
}, /*#__PURE__*/React.createElement(_Button, {
|
155
159
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
156
|
-
onClick: onPlusClick
|
160
|
+
onClick: onPlusClick,
|
161
|
+
disabled: disabled
|
157
162
|
}))) : /*#__PURE__*/React.createElement(_Select, {
|
158
163
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$datasource9 = extraInfo.datasource) === null || _extraInfo$datasource9 === void 0 ? void 0 : (_extraInfo$datasource10 = _extraInfo$datasource9.sqlServer) === null || _extraInfo$datasource10 === void 0 ? void 0 : _extraInfo$datasource10.isMutiple) ? 'multiple' : undefined,
|
159
164
|
allowClear: true,
|
160
165
|
value: dataTable,
|
161
166
|
options: dataTableOpts,
|
162
|
-
onChange: onDataTableChange
|
167
|
+
onChange: onDataTableChange,
|
168
|
+
disabled: disabled
|
163
169
|
})));
|
164
170
|
};
|
165
171
|
export default SqlServerDatasource;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IDatasourceProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
disabled?: boolean;
|
5
4
|
value?: any;
|
6
5
|
onChange?: (value: any) => void;
|
7
6
|
}
|
8
|
-
declare const DataSource: (props: IDatasourceProps) =>
|
7
|
+
declare const DataSource: (props: IDatasourceProps) => JSX.Element;
|
9
8
|
export default DataSource;
|
@@ -120,6 +120,16 @@ var DataSource = function DataSource(props) {
|
|
120
120
|
datasource: value.datasource
|
121
121
|
});
|
122
122
|
}
|
123
|
+
if (value.link) {
|
124
|
+
triggerChange({
|
125
|
+
link: value.link
|
126
|
+
});
|
127
|
+
}
|
128
|
+
if (value.plus) {
|
129
|
+
triggerChange({
|
130
|
+
plus: value.plus
|
131
|
+
});
|
132
|
+
}
|
123
133
|
switch (value === null || value === void 0 ? void 0 : value.dsType) {
|
124
134
|
case 'Kafka':
|
125
135
|
setKafkaInitValue(value);
|
@@ -174,7 +184,8 @@ var DataSource = function DataSource(props) {
|
|
174
184
|
},
|
175
185
|
value: dsType,
|
176
186
|
options: datasourceTypeOpts,
|
177
|
-
onChange: onDatasourceTypeChange
|
187
|
+
onChange: onDatasourceTypeChange,
|
188
|
+
disabled: disabled
|
178
189
|
}), /*#__PURE__*/React.createElement(_Select, {
|
179
190
|
id: 'datasource',
|
180
191
|
style: {
|
@@ -182,7 +193,8 @@ var DataSource = function DataSource(props) {
|
|
182
193
|
},
|
183
194
|
value: datasource,
|
184
195
|
options: datasourceOpts,
|
185
|
-
onChange: onDatasourceChange
|
196
|
+
onChange: onDatasourceChange,
|
197
|
+
disabled: disabled
|
186
198
|
}), /*#__PURE__*/React.createElement(_Tooltip, {
|
187
199
|
title: tr('测试链接'),
|
188
200
|
style: {
|
@@ -190,35 +202,40 @@ var DataSource = function DataSource(props) {
|
|
190
202
|
}
|
191
203
|
}, /*#__PURE__*/React.createElement(_Button, {
|
192
204
|
icon: /*#__PURE__*/React.createElement(LinkOutlined, null),
|
193
|
-
onClick: onLinkClick
|
205
|
+
onClick: onLinkClick,
|
206
|
+
disabled: disabled
|
194
207
|
})))), dsType === 'Kafka' && /*#__PURE__*/React.createElement(KafkaDatasource, {
|
195
208
|
wrapperCol: wrapperCol,
|
196
209
|
labelCol: labelCol,
|
197
210
|
extraInfo: extraInfo,
|
198
211
|
datasource: datasource,
|
199
212
|
onChange: onKafkaChange,
|
200
|
-
initialValue: kafkaInitValue
|
213
|
+
initialValue: kafkaInitValue,
|
214
|
+
disabled: disabled
|
201
215
|
}), dsType === 'PostgreSql' && /*#__PURE__*/React.createElement(PostgreSQLDatasource, {
|
202
216
|
wrapperCol: wrapperCol,
|
203
217
|
labelCol: labelCol,
|
204
218
|
extraInfo: extraInfo,
|
205
219
|
datasource: datasource,
|
206
220
|
onChange: onPgSqlChange,
|
207
|
-
initialValue: postgreSQLInitValue
|
221
|
+
initialValue: postgreSQLInitValue,
|
222
|
+
disabled: disabled
|
208
223
|
}), dsType === 'Cassandra' && /*#__PURE__*/React.createElement(CassandraDatasource, {
|
209
224
|
wrapperCol: wrapperCol,
|
210
225
|
labelCol: labelCol,
|
211
226
|
extraInfo: extraInfo,
|
212
227
|
datasource: datasource,
|
213
228
|
onChange: onCassandraChange,
|
214
|
-
initialValue: cassandraInitValue
|
229
|
+
initialValue: cassandraInitValue,
|
230
|
+
disabled: disabled
|
215
231
|
}), dsType === 'SqlServer' && /*#__PURE__*/React.createElement(SqlServerDatasource, {
|
216
232
|
wrapperCol: wrapperCol,
|
217
233
|
labelCol: labelCol,
|
218
234
|
extraInfo: extraInfo,
|
219
235
|
datasource: datasource,
|
220
236
|
onChange: onSqlServerChange,
|
221
|
-
initialValue: sqlServerInitValue
|
237
|
+
initialValue: sqlServerInitValue,
|
238
|
+
disabled: disabled
|
222
239
|
}))));
|
223
240
|
};
|
224
241
|
export default DataSource;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IMapTableProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
value?: any;
|
4
|
+
disabled?: boolean;
|
5
5
|
onChange?: (value: any) => void;
|
6
6
|
}
|
7
|
-
declare const MapTable: (props: IMapTableProps) =>
|
7
|
+
declare const MapTable: (props: IMapTableProps) => JSX.Element;
|
8
8
|
export default MapTable;
|