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.
Files changed (133) hide show
  1. package/README.md +25 -25
  2. package/es/api/index.js +5 -7
  3. package/es/comps/CodeEdit/index.d.ts +2 -2
  4. package/es/comps/CodeEdit/index.js +3 -2
  5. package/es/comps/CodeEdit/index.less +6 -6
  6. package/es/comps/DataMine/Line.d.ts +1 -2
  7. package/es/comps/DataMine/Line.js +1 -0
  8. package/es/comps/DataMine/index.d.ts +1 -2
  9. package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
  10. package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
  11. package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
  12. package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +1 -2
  13. package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +1 -2
  14. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
  15. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
  16. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +1 -2
  17. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
  18. package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
  19. package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
  20. package/es/comps/DynamicPorts/comps/shape/node.js +9 -8
  21. package/es/comps/DynamicPorts/graph.js +4 -5
  22. package/es/comps/DynamicPorts/index.d.ts +1 -2
  23. package/es/comps/DynamicPorts/index.less +307 -307
  24. package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
  25. package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
  26. package/es/comps/Editable/DataCell/Input.d.ts +1 -1
  27. package/es/comps/Editable/DataCell/Number.d.ts +1 -1
  28. package/es/comps/Editable/DataCell/Select.d.ts +1 -1
  29. package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
  30. package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
  31. package/es/comps/Editable/comps/EditableAction.d.ts +1 -2
  32. package/es/comps/Editable/comps/Texty.d.ts +1 -1
  33. package/es/comps/Editable/comps/Texty.js +4 -5
  34. package/es/comps/Editable/comps/Texty.less +43 -43
  35. package/es/comps/Editable/comps/index.less +38 -38
  36. package/es/comps/Editable/index.d.ts +1 -2
  37. package/es/comps/Editable/index.less +97 -97
  38. package/es/comps/Editable/utils.d.ts +1 -2
  39. package/es/comps/FileView/index.d.ts +1 -2
  40. package/es/comps/FileView/index.js +3 -2
  41. package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +1 -2
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +1 -2
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +1 -2
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +1 -2
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
  57. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
  58. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +1 -2
  59. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
  60. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
  61. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  62. package/es/comps/FormGenerator/comps/Canvas/index.d.ts +1 -2
  63. package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
  64. package/es/comps/FormGenerator/comps/Settings/index.js +2 -1
  65. package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
  66. package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
  67. package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -2
  68. package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
  69. package/es/comps/FormGenerator/index.d.ts +1 -2
  70. package/es/comps/FormGenerator/index.less +20 -20
  71. package/es/comps/JsonEdit/index.d.ts +1 -2
  72. package/es/comps/JsonEdit/index.js +1 -0
  73. package/es/comps/JsonEdit/index.less +64 -64
  74. package/es/comps/JsonView/index.d.ts +1 -2
  75. package/es/comps/JsonView/index.less +41 -41
  76. package/es/comps/MdEdit/index.d.ts +1 -2
  77. package/es/comps/MdEdit/index.less +6 -6
  78. package/es/comps/MdEditPro/index.d.ts +1 -2
  79. package/es/comps/MdEditPro/index.less +166 -166
  80. package/es/comps/MdEditPro/index2.d.ts +1 -1
  81. package/es/comps/MdNavbar/index.d.ts +1 -2
  82. package/es/comps/MdNavbar/index.less +77 -77
  83. package/es/comps/MdView/index.d.ts +1 -1
  84. package/es/comps/MdView/index.less +376 -376
  85. package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +1 -2
  86. package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
  87. package/es/comps/MetadataEdit/constant/index.js +2 -0
  88. package/es/comps/MetadataEdit/index.d.ts +1 -2
  89. package/es/comps/MetadataEdit/index.less +10 -10
  90. package/es/comps/MetadataEdit/type.d.ts +20 -20
  91. package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
  92. package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
  93. package/es/comps/MetadataForm/DataCell/Input.js +8 -4
  94. package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
  95. package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
  96. package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
  97. package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
  98. package/es/comps/MetadataForm/DataCell/business/index.d.ts +1 -2
  99. package/es/comps/MetadataForm/DataCell/business/index.js +1 -0
  100. package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
  101. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.d.ts +2 -2
  102. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.js +10 -5
  103. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.d.ts +2 -2
  104. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.js +8 -4
  105. package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.d.ts +2 -2
  106. package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.js +12 -6
  107. package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.d.ts +2 -2
  108. package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.js +12 -6
  109. package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.d.ts +1 -2
  110. package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.js +24 -7
  111. package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +2 -2
  112. package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +12 -16
  113. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
  114. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +2 -1
  115. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +1 -2
  116. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +2 -2
  117. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +12 -6
  118. package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
  119. package/es/comps/MetadataForm/HOC/index.less +41 -41
  120. package/es/comps/MetadataForm/index.d.ts +1 -2
  121. package/es/comps/MetadataForm/utils.d.ts +2 -3
  122. package/es/comps/Split/index.d.ts +1 -1
  123. package/es/comps/Split/index.less +29 -29
  124. package/es/framework/RxStore/demo/index.d.ts +1 -2
  125. package/es/framework/graph/index.less +15 -15
  126. package/es/framework/http/msgpack5/lib/helpers.js +1 -0
  127. package/es/framework/libs/jquery.min.js +4 -4
  128. package/es/framework/locale/dil8/di18n.js +3 -5
  129. package/es/framework/metadata/MetadataService.js +14 -14
  130. package/es/framework/metadata/index.js +15 -14
  131. package/es/framework/metadata/types.d.ts +103 -103
  132. package/es/theme.less +81 -81
  133. 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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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): React.JSX.Element;
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): React.JSX.Element;
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$disabled10;
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$disabled10 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled10 !== void 0 ? _extraInfo$disabled10 : disabled,
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): React.JSX.Element;
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): React.JSX.Element;
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): React.JSX.Element;
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): React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
7
+ declare const MapTable: (props: IMapTableProps) => JSX.Element;
8
8
  export default MapTable;