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
@@ -21,7 +21,8 @@ import { STREAM_EVENT_TYPE } from '../../constants';
|
|
21
21
|
var MapTable = function MapTable(props) {
|
22
22
|
var value = props.value,
|
23
23
|
onChange = props.onChange,
|
24
|
-
extraInfo = props.extraInfo
|
24
|
+
extraInfo = props.extraInfo,
|
25
|
+
disabled = props.disabled;
|
25
26
|
var _React$useState = React.useState([]),
|
26
27
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
27
28
|
tableDataSource = _React$useState2[0],
|
@@ -184,7 +185,8 @@ var MapTable = function MapTable(props) {
|
|
184
185
|
}, /*#__PURE__*/React.createElement(_Select, {
|
185
186
|
onChange: onOutputChange,
|
186
187
|
value: output,
|
187
|
-
options: options
|
188
|
+
options: options,
|
189
|
+
disabled: disabled
|
188
190
|
})), /*#__PURE__*/React.createElement("div", {
|
189
191
|
style: {
|
190
192
|
display: 'flex',
|
@@ -197,7 +199,7 @@ var MapTable = function MapTable(props) {
|
|
197
199
|
width: '40%'
|
198
200
|
}
|
199
201
|
}, /*#__PURE__*/React.createElement(Editable, {
|
200
|
-
readonly:
|
202
|
+
readonly: disabled,
|
201
203
|
type: "single",
|
202
204
|
columns: columnSource,
|
203
205
|
dataSource: tableDataSource,
|
@@ -210,7 +212,7 @@ var MapTable = function MapTable(props) {
|
|
210
212
|
onMove: onSourceMove
|
211
213
|
})), /*#__PURE__*/React.createElement("div", {
|
212
214
|
style: {
|
213
|
-
marginTop: '
|
215
|
+
marginTop: '39px',
|
214
216
|
marginRight: '6px'
|
215
217
|
}
|
216
218
|
}, _toConsumableArray(Array(Math.min(tableDataSource === null || tableDataSource === void 0 ? void 0 : tableDataSource.length, tableDataTarget === null || tableDataTarget === void 0 ? void 0 : tableDataTarget.length))).map(function (_, index) {
|
@@ -219,8 +221,7 @@ var MapTable = function MapTable(props) {
|
|
219
221
|
style: {
|
220
222
|
marginLeft: '6px',
|
221
223
|
marginRight: '6px',
|
222
|
-
|
223
|
-
lineHeight: '30px'
|
224
|
+
lineHeight: '33px'
|
224
225
|
}
|
225
226
|
}, /*#__PURE__*/React.createElement(_Button, {
|
226
227
|
key: index,
|
@@ -228,14 +229,15 @@ var MapTable = function MapTable(props) {
|
|
228
229
|
icon: disableArray && disableArray[index] ? /*#__PURE__*/React.createElement(ArrowRightOutlined, null) : /*#__PURE__*/React.createElement(CloseCircleFilled, null),
|
229
230
|
onClick: function onClick() {
|
230
231
|
return onBtnClick(index);
|
231
|
-
}
|
232
|
+
},
|
233
|
+
disabled: disabled
|
232
234
|
}));
|
233
235
|
})), /*#__PURE__*/React.createElement("div", {
|
234
236
|
style: {
|
235
237
|
width: '40%'
|
236
238
|
}
|
237
239
|
}, /*#__PURE__*/React.createElement(Editable, {
|
238
|
-
readonly:
|
240
|
+
readonly: disabled,
|
239
241
|
type: "single",
|
240
242
|
columns: columnTarget,
|
241
243
|
dataSource: tableDataTarget,
|
@@ -256,17 +258,11 @@ var columnSource = [{
|
|
256
258
|
}, {
|
257
259
|
title: '类型',
|
258
260
|
dataIndex: 'type',
|
259
|
-
key: 'type'
|
260
|
-
render: function render(val) {
|
261
|
-
return val !== null && val !== void 0 ? val : 'null';
|
262
|
-
}
|
261
|
+
key: 'type'
|
263
262
|
}, {
|
264
263
|
title: '注释',
|
265
264
|
dataIndex: 'label',
|
266
|
-
key: 'label'
|
267
|
-
render: function render(val) {
|
268
|
-
return val !== null && val !== void 0 ? val : 'null';
|
269
|
-
}
|
265
|
+
key: 'label'
|
270
266
|
}];
|
271
267
|
var columnTarget = [{
|
272
268
|
title: '目标表字段',
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface INumberRangeProps {
|
3
2
|
startKey?: string;
|
4
3
|
endKey?: string;
|
@@ -16,5 +15,5 @@ interface INumberRangeProps {
|
|
16
15
|
value?: any;
|
17
16
|
onChange?: (value: any) => void;
|
18
17
|
}
|
19
|
-
declare const NumberRange: (props: INumberRangeProps) =>
|
18
|
+
declare const NumberRange: (props: INumberRangeProps) => JSX.Element;
|
20
19
|
export default NumberRange;
|
@@ -59,7 +59,8 @@ var NumberRange = function NumberRange(props) {
|
|
59
59
|
}
|
60
60
|
}, [value]);
|
61
61
|
var triggerChange = function triggerChange(changedValue) {
|
62
|
-
|
62
|
+
var _objectSpread2;
|
63
|
+
onChange && onChange(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, addonBefore === null || addonBefore === void 0 ? void 0 : addonBefore.key, before), _defineProperty(_objectSpread2, addonAfter === null || addonAfter === void 0 ? void 0 : addonAfter.key, after), _defineProperty(_objectSpread2, startKey || 'min', min), _defineProperty(_objectSpread2, endKey || 'max', max), _objectSpread2), changedValue));
|
63
64
|
};
|
64
65
|
var onStartChange = function onStartChange(v) {
|
65
66
|
setMin(v);
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface IRefreshSelectProps {
|
3
2
|
extraInfo?: any;
|
4
3
|
disabled?: boolean;
|
@@ -9,5 +8,5 @@ interface IRefreshSelectProps {
|
|
9
8
|
onSelect?: (value: any) => void;
|
10
9
|
onRefresh?: () => void;
|
11
10
|
}
|
12
|
-
declare const RefreshSelect: (props: IRefreshSelectProps) =>
|
11
|
+
declare const RefreshSelect: (props: IRefreshSelectProps) => JSX.Element;
|
13
12
|
export default RefreshSelect;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ISparkSqlTableProps {
|
3
2
|
extraDico?: any[];
|
4
3
|
initSql?: string;
|
5
4
|
value?: any;
|
6
5
|
extraInfo?: any;
|
6
|
+
disabled?: boolean;
|
7
7
|
onChange?: (value: any) => void;
|
8
8
|
}
|
9
|
-
declare const SparkSqlTable: (props: ISparkSqlTableProps) =>
|
9
|
+
declare const SparkSqlTable: (props: ISparkSqlTableProps) => JSX.Element;
|
10
10
|
export default SparkSqlTable;
|
@@ -22,7 +22,8 @@ import { STREAM_EVENT_TYPE } from '../../constants';
|
|
22
22
|
var SparkSqlTable = function SparkSqlTable(props) {
|
23
23
|
var value = props.value,
|
24
24
|
extraInfo = props.extraInfo,
|
25
|
-
onChange = props.onChange
|
25
|
+
onChange = props.onChange,
|
26
|
+
disabled = props.disabled;
|
26
27
|
var _React$useState = React.useState('orgin'),
|
27
28
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
28
29
|
view = _React$useState2[0],
|
@@ -176,7 +177,8 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
176
177
|
marginRight: '8px'
|
177
178
|
},
|
178
179
|
value: view,
|
179
|
-
onChange: onViewChange
|
180
|
+
onChange: onViewChange,
|
181
|
+
disabled: true
|
180
182
|
})), /*#__PURE__*/React.createElement("span", {
|
181
183
|
style: {
|
182
184
|
display: 'flex',
|
@@ -232,7 +234,8 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
232
234
|
value: item.alias,
|
233
235
|
onChange: function onChange(val) {
|
234
236
|
onListChange(val.target.value, idx, 'alias');
|
235
|
-
}
|
237
|
+
},
|
238
|
+
disabled: disabled
|
236
239
|
})), /*#__PURE__*/React.createElement("span", null, tr('输出视图'), ' ', /*#__PURE__*/React.createElement(_Input, {
|
237
240
|
style: {
|
238
241
|
width: '160px',
|
@@ -242,7 +245,8 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
242
245
|
value: item.outputView,
|
243
246
|
onChange: function onChange(val) {
|
244
247
|
return onListChange(val.target.value, idx, 'outputView');
|
245
|
-
}
|
248
|
+
},
|
249
|
+
disabled: disabled
|
246
250
|
}))), /*#__PURE__*/React.createElement("div", {
|
247
251
|
style: {
|
248
252
|
padding: '4px',
|
@@ -256,7 +260,8 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
256
260
|
theme: ((_getConfig = getConfig()) === null || _getConfig === void 0 ? void 0 : _getConfig.theme) === 'normal' ? 'light' : 'vs-dark',
|
257
261
|
onChange: function onChange(val) {
|
258
262
|
return onListChange(val, idx, 'sqlEdit');
|
259
|
-
}
|
263
|
+
},
|
264
|
+
readOnly: disabled
|
260
265
|
}))), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
|
261
266
|
style: {
|
262
267
|
marginLeft: 'auto'
|
@@ -268,7 +273,8 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
268
273
|
}), /*#__PURE__*/React.createElement(_Button, {
|
269
274
|
type: "dashed",
|
270
275
|
onClick: handleAddItem,
|
271
|
-
icon: /*#__PURE__*/React.createElement(PlusOutlined, null)
|
276
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
277
|
+
disabled: disabled
|
272
278
|
}, tr('添加SQL语句')))))));
|
273
279
|
};
|
274
280
|
export default SparkSqlTable;
|
@@ -1,41 +1,41 @@
|
|
1
|
-
.with-add-on-after {
|
2
|
-
--card-bg: #ffffff;
|
3
|
-
position: relative;
|
4
|
-
width: 100%;
|
5
|
-
|
6
|
-
.ant-form-item-label {
|
7
|
-
padding: 0 !important;
|
8
|
-
}
|
9
|
-
|
10
|
-
& > .ant-form-item {
|
11
|
-
padding: 0 0 8px !important;
|
12
|
-
flex: 1;
|
13
|
-
}
|
14
|
-
&-extra {
|
15
|
-
position: absolute;
|
16
|
-
right: 20px;
|
17
|
-
top: 18px;
|
18
|
-
padding: 0 6px;
|
19
|
-
background-color: var(--card-bg);
|
20
|
-
z-index: 1000;
|
21
|
-
}
|
22
|
-
&-ref {
|
23
|
-
position: absolute;
|
24
|
-
right: 20px;
|
25
|
-
top: -10px;
|
26
|
-
padding: 0 6px;
|
27
|
-
background-color: var(--card-bg);
|
28
|
-
z-index: 1000;
|
29
|
-
}
|
30
|
-
.ant-select-tree-indent {
|
31
|
-
.ant-select-tree-indent-unit {
|
32
|
-
width: 10px !important;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
/* .ant-col-2.7 {
|
37
|
-
display: block;
|
38
|
-
flex: 0 0 75%;
|
39
|
-
max-width: 75%;
|
40
|
-
} */
|
41
|
-
}
|
1
|
+
.with-add-on-after {
|
2
|
+
--card-bg: #ffffff;
|
3
|
+
position: relative;
|
4
|
+
width: 100%;
|
5
|
+
|
6
|
+
.ant-form-item-label {
|
7
|
+
padding: 0 !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
& > .ant-form-item {
|
11
|
+
padding: 0 0 8px !important;
|
12
|
+
flex: 1;
|
13
|
+
}
|
14
|
+
&-extra {
|
15
|
+
position: absolute;
|
16
|
+
right: 20px;
|
17
|
+
top: 18px;
|
18
|
+
padding: 0 6px;
|
19
|
+
background-color: var(--card-bg);
|
20
|
+
z-index: 1000;
|
21
|
+
}
|
22
|
+
&-ref {
|
23
|
+
position: absolute;
|
24
|
+
right: 20px;
|
25
|
+
top: -10px;
|
26
|
+
padding: 0 6px;
|
27
|
+
background-color: var(--card-bg);
|
28
|
+
z-index: 1000;
|
29
|
+
}
|
30
|
+
.ant-select-tree-indent {
|
31
|
+
.ant-select-tree-indent-unit {
|
32
|
+
width: 10px !important;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
/* .ant-col-2.7 {
|
37
|
+
display: block;
|
38
|
+
flex: 0 0 75%;
|
39
|
+
max-width: 75%;
|
40
|
+
} */
|
41
|
+
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FormInstance } from 'antd/lib/form/hooks/useForm';
|
2
|
-
import React from 'react';
|
3
2
|
import './index.less';
|
4
3
|
import { IMetaData } from '../../framework/metadata/types';
|
5
4
|
interface IMetadataFormProps {
|
@@ -72,5 +71,5 @@ interface IMetadataFormProps {
|
|
72
71
|
*/
|
73
72
|
onCellButtonClick?: (changedValues: any) => void;
|
74
73
|
}
|
75
|
-
declare const MetadataForm: (props: IMetadataFormProps) =>
|
74
|
+
declare const MetadataForm: (props: IMetadataFormProps) => JSX.Element;
|
76
75
|
export default MetadataForm;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { IFormOptions } from './interface';
|
3
|
-
export declare function getDataCell(item: any, options: IFormOptions, colSpan: number):
|
2
|
+
export declare function getDataCell(item: any, options: IFormOptions, colSpan: number): JSX.Element;
|
4
3
|
/**
|
5
4
|
* 渲染表单
|
6
5
|
* @param schemaRef 元数据的schema
|
@@ -12,7 +11,7 @@ export declare function getDataCell(item: any, options: IFormOptions, colSpan: n
|
|
12
11
|
* @param isObj 是否是个对象
|
13
12
|
* @returns
|
14
13
|
*/
|
15
|
-
export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number):
|
14
|
+
export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number): JSX.Element;
|
16
15
|
export declare function getLabelByProps(data: any): any;
|
17
16
|
export declare function assign(pathArr: string[], val: any, obj: any): void;
|
18
17
|
export declare function assignReplace(pathArr: string[], val: any, obj: any): void;
|
@@ -1,29 +1,29 @@
|
|
1
|
-
.split-panel {
|
2
|
-
width: 100%;
|
3
|
-
height: 100%;
|
4
|
-
overflow: hidden;
|
5
|
-
|
6
|
-
.gutter {
|
7
|
-
width: 100%;
|
8
|
-
height: 100%;
|
9
|
-
|
10
|
-
background-color: #bebebe;
|
11
|
-
background-repeat: no-repeat;
|
12
|
-
background-position: 50%;
|
13
|
-
|
14
|
-
.gutter-vertical {
|
15
|
-
cursor: row-resize;
|
16
|
-
}
|
17
|
-
|
18
|
-
.gutter-horizontal {
|
19
|
-
cursor: col-resize;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
> * {
|
24
|
-
height: 100%;
|
25
|
-
width: 100%;
|
26
|
-
float: left;
|
27
|
-
position: relative;
|
28
|
-
}
|
29
|
-
}
|
1
|
+
.split-panel {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
overflow: hidden;
|
5
|
+
|
6
|
+
.gutter {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
|
10
|
+
background-color: #bebebe;
|
11
|
+
background-repeat: no-repeat;
|
12
|
+
background-position: 50%;
|
13
|
+
|
14
|
+
.gutter-vertical {
|
15
|
+
cursor: row-resize;
|
16
|
+
}
|
17
|
+
|
18
|
+
.gutter-horizontal {
|
19
|
+
cursor: col-resize;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
> * {
|
24
|
+
height: 100%;
|
25
|
+
width: 100%;
|
26
|
+
float: left;
|
27
|
+
position: relative;
|
28
|
+
}
|
29
|
+
}
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export default function (): React.JSX.Element;
|
1
|
+
export default function (): JSX.Element;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
.ant-spin-container {
|
2
|
-
width: 100%;
|
3
|
-
height: 100%;
|
4
|
-
}
|
5
|
-
|
6
|
-
// .x6-widget-selection-inner {
|
7
|
-
// border: none !important;
|
8
|
-
// box-shadow: none !important;
|
9
|
-
// }
|
10
|
-
|
11
|
-
.x6-widget-selection-box {
|
12
|
-
border: none !important;
|
13
|
-
box-shadow: none !important;
|
14
|
-
position: static !important;
|
15
|
-
}
|
1
|
+
.ant-spin-container {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
// .x6-widget-selection-inner {
|
7
|
+
// border: none !important;
|
8
|
+
// box-shadow: none !important;
|
9
|
+
// }
|
10
|
+
|
11
|
+
.x6-widget-selection-box {
|
12
|
+
border: none !important;
|
13
|
+
box-shadow: none !important;
|
14
|
+
position: static !important;
|
15
|
+
}
|
@@ -9,6 +9,7 @@ export function IncompleteBufferError(message) {
|
|
9
9
|
if (Error.captureStackTrace) {
|
10
10
|
Error.captureStackTrace(this, this.constructor); // super helper method to include stack trace in error object
|
11
11
|
}
|
12
|
+
|
12
13
|
this.name = this.constructor.name;
|
13
14
|
this.message = message || 'unable to decode';
|
14
15
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
2
|
-
/*
|
3
|
-
* @Author: wangxian
|
4
|
-
* @Date: 2022-05-07 11:04:42
|
5
|
-
* @LastEditTime: 2022-05-07 11:04:43
|
2
|
+
/*
|
3
|
+
* @Author: wangxian
|
4
|
+
* @Date: 2022-05-07 11:04:42
|
5
|
+
* @LastEditTime: 2022-05-07 11:04:43
|
6
6
|
*/
|
7
7
|
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
8
8
|
!function (e, t) {
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
4
|
-
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
5
|
-
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
6
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
7
|
-
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
8
5
|
import T from './translate';
|
9
6
|
import { addClass } from './util';
|
10
7
|
var CLASS_ATTRIBUTE = 'i18n-class';
|
@@ -15,11 +12,12 @@ var LOCALE_PATTERN = /\$\{locale}/g;
|
|
15
12
|
var noop = function noop() {};
|
16
13
|
export var DI18n = /*#__PURE__*/function (_T) {
|
17
14
|
_inherits(DI18n, _T);
|
15
|
+
var _super = _createSuper(DI18n);
|
18
16
|
function DI18n() {
|
19
17
|
var _this;
|
20
18
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
21
19
|
_classCallCheck(this, DI18n);
|
22
|
-
_this =
|
20
|
+
_this = _super.call(this, options);
|
23
21
|
// public locale: string;
|
24
22
|
// public messages: any;
|
25
23
|
_this.isReplace = void 0;
|
@@ -27,7 +27,7 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
27
27
|
/** 获取元数据列表 */
|
28
28
|
_createClass(MetadataService, [{
|
29
29
|
key: "GetMetadataList",
|
30
|
-
value:
|
30
|
+
value: function () {
|
31
31
|
var _GetMetadataList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyWords) {
|
32
32
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
33
33
|
while (1) switch (_context.prev = _context.next) {
|
@@ -43,10 +43,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
43
43
|
return _GetMetadataList.apply(this, arguments);
|
44
44
|
}
|
45
45
|
return GetMetadataList;
|
46
|
-
}() /** 通过元数据Id获取元数据详情 */
|
46
|
+
}() /** 通过元数据Id获取元数据详情 */
|
47
47
|
}, {
|
48
48
|
key: "GetMetadataDetailById",
|
49
|
-
value:
|
49
|
+
value: function () {
|
50
50
|
var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
|
51
51
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
52
52
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -62,10 +62,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
62
62
|
return _GetMetadataDetailById.apply(this, arguments);
|
63
63
|
}
|
64
64
|
return GetMetadataDetailById;
|
65
|
-
}() /** 添加元数据 */
|
65
|
+
}() /** 添加元数据 */
|
66
66
|
}, {
|
67
67
|
key: "SaveMetadata",
|
68
|
-
value:
|
68
|
+
value: function () {
|
69
69
|
var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
|
70
70
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
71
71
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -81,10 +81,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
81
81
|
return _SaveMetadata.apply(this, arguments);
|
82
82
|
}
|
83
83
|
return SaveMetadata;
|
84
|
-
}() /** 获取元数据的值 */
|
84
|
+
}() /** 获取元数据的值 */
|
85
85
|
}, {
|
86
86
|
key: "GetMetadataObjList",
|
87
|
-
value:
|
87
|
+
value: function () {
|
88
88
|
var _GetMetadataObjList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(data) {
|
89
89
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
90
90
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -100,10 +100,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
100
100
|
return _GetMetadataObjList.apply(this, arguments);
|
101
101
|
}
|
102
102
|
return GetMetadataObjList;
|
103
|
-
}() /** 通过扩展规则获取枚举类型的值 */
|
103
|
+
}() /** 通过扩展规则获取枚举类型的值 */
|
104
104
|
}, {
|
105
105
|
key: "GetEnumDataByUrl",
|
106
|
-
value:
|
106
|
+
value: function () {
|
107
107
|
var _GetEnumDataByUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(url) {
|
108
108
|
var method,
|
109
109
|
body,
|
@@ -124,10 +124,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
124
124
|
return _GetEnumDataByUrl.apply(this, arguments);
|
125
125
|
}
|
126
126
|
return GetEnumDataByUrl;
|
127
|
-
}() /** 获取执行状态 */
|
127
|
+
}() /** 获取执行状态 */
|
128
128
|
}, {
|
129
129
|
key: "GetGraphStatus",
|
130
|
-
value:
|
130
|
+
value: function () {
|
131
131
|
var _GetGraphStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data) {
|
132
132
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
133
133
|
while (1) switch (_context6.prev = _context6.next) {
|
@@ -143,10 +143,10 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
143
143
|
return _GetGraphStatus.apply(this, arguments);
|
144
144
|
}
|
145
145
|
return GetGraphStatus;
|
146
|
-
}() /** 获取执行状态 */
|
146
|
+
}() /** 获取执行状态 */
|
147
147
|
}, {
|
148
148
|
key: "StopGraphRun",
|
149
|
-
value:
|
149
|
+
value: function () {
|
150
150
|
var _StopGraphRun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(data) {
|
151
151
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
152
152
|
while (1) switch (_context7.prev = _context7.next) {
|
@@ -162,7 +162,7 @@ export var MetadataService = /*#__PURE__*/function () {
|
|
162
162
|
return _StopGraphRun.apply(this, arguments);
|
163
163
|
}
|
164
164
|
return StopGraphRun;
|
165
|
-
}()
|
165
|
+
}()
|
166
166
|
}]);
|
167
167
|
return MetadataService;
|
168
168
|
}();
|
@@ -1,10 +1,7 @@
|
|
1
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
2
|
-
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
3
|
-
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
4
1
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
2
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
5
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
6
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
7
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
8
5
|
export var Enum = /*#__PURE__*/function () {
|
9
6
|
function Enum(value) {
|
10
7
|
_classCallCheck(this, Enum);
|
@@ -19,11 +16,12 @@ export var Enum = /*#__PURE__*/function () {
|
|
19
16
|
}], [{
|
20
17
|
key: "makeEnum",
|
21
18
|
value: function makeEnum(name, _enum) {
|
22
|
-
var result = /*#__PURE__*/function (
|
23
|
-
_inherits(result,
|
19
|
+
var result = /*#__PURE__*/function (_Enum) {
|
20
|
+
_inherits(result, _Enum);
|
21
|
+
var _super = _createSuper(result);
|
24
22
|
function result(value) {
|
25
23
|
_classCallCheck(this, result);
|
26
|
-
return
|
24
|
+
return _super.call(this, value);
|
27
25
|
}
|
28
26
|
_createClass(result, [{
|
29
27
|
key: "__type__",
|
@@ -83,9 +81,10 @@ export var MetaObject = /*#__PURE__*/function () {
|
|
83
81
|
value: function makeType(name) {
|
84
82
|
var result = /*#__PURE__*/function (_MetaObject) {
|
85
83
|
_inherits(result, _MetaObject);
|
84
|
+
var _super2 = _createSuper(result);
|
86
85
|
function result() {
|
87
86
|
_classCallCheck(this, result);
|
88
|
-
return
|
87
|
+
return _super2.apply(this, arguments);
|
89
88
|
}
|
90
89
|
_createClass(result, [{
|
91
90
|
key: "__type__",
|
@@ -103,11 +102,12 @@ export var MetaObject = /*#__PURE__*/function () {
|
|
103
102
|
}, {
|
104
103
|
key: "makeArray",
|
105
104
|
value: function makeArray() {
|
106
|
-
var result = /*#__PURE__*/function (
|
107
|
-
_inherits(result,
|
105
|
+
var result = /*#__PURE__*/function (_Array) {
|
106
|
+
_inherits(result, _Array);
|
107
|
+
var _super3 = _createSuper(result);
|
108
108
|
function result(items) {
|
109
109
|
_classCallCheck(this, result);
|
110
|
-
return
|
110
|
+
return _super3.call(this, items);
|
111
111
|
}
|
112
112
|
_createClass(result, [{
|
113
113
|
key: "type",
|
@@ -193,12 +193,13 @@ export var MetadataProvider = /*#__PURE__*/function () {
|
|
193
193
|
}]);
|
194
194
|
return MetadataProvider;
|
195
195
|
}();
|
196
|
-
export var JsonMetadataProvider = /*#__PURE__*/function (
|
197
|
-
_inherits(JsonMetadataProvider,
|
196
|
+
export var JsonMetadataProvider = /*#__PURE__*/function (_MetadataProvider) {
|
197
|
+
_inherits(JsonMetadataProvider, _MetadataProvider);
|
198
|
+
var _super4 = _createSuper(JsonMetadataProvider);
|
198
199
|
function JsonMetadataProvider() {
|
199
200
|
var _this2;
|
200
201
|
_classCallCheck(this, JsonMetadataProvider);
|
201
|
-
_this2 =
|
202
|
+
_this2 = _super4.call(this);
|
202
203
|
_this2.types['str'] = String;
|
203
204
|
_this2.types['int'] = Number;
|
204
205
|
_this2.types['double'] = Number;
|