ronds-metadata 1.3.78 → 1.3.80

Sign up to get free protection for your applications and to get access to all the features.
@@ -198,7 +198,7 @@ var ETL_SOURCE_SCHEMA = [{
198
198
  id: 'headers_ref',
199
199
  type: 'object',
200
200
  properties: [{
201
- id: 'input_fc05',
201
+ id: 'sheetname',
202
202
  type: 'text',
203
203
  fields: [{
204
204
  id: 'com.ronds.schema.default.Rule.Form',
@@ -214,7 +214,7 @@ var ETL_SOURCE_SCHEMA = [{
214
214
  }
215
215
  }]
216
216
  }, {
217
- id: 'input_ae91',
217
+ id: 'header',
218
218
  type: 'number',
219
219
  fields: [{
220
220
  id: 'com.ronds.schema.default.Rule.Form',
@@ -18,7 +18,7 @@ var BusinessForm = function BusinessForm(props) {
18
18
  if (value) {
19
19
  formRef.current.setFieldsValue(_objectSpread({}, value));
20
20
  }
21
- }, [value]);
21
+ }, []);
22
22
  var triggerChange = function triggerChange(changedValue) {
23
23
  valueRef.current = _objectSpread(_objectSpread({}, valueRef.current), changedValue);
24
24
  onChange && onChange(valueRef.current);
@@ -96,11 +96,18 @@ var DataSource = function DataSource(props) {
96
96
  };
97
97
  React.useEffect(function () {
98
98
  if (value) {
99
+ debugger;
99
100
  if (value.dsType) {
100
101
  setDsType(value.dsType);
102
+ triggerChange({
103
+ dsType: value.dsType
104
+ });
101
105
  }
102
106
  if (value.datasource) {
103
107
  setDatasource(value.datasource);
108
+ triggerChange({
109
+ datasource: value.datasource
110
+ });
104
111
  }
105
112
  switch (value === null || value === void 0 ? void 0 : value.dsType) {
106
113
  case 'Kafka':
@@ -117,7 +124,7 @@ var DataSource = function DataSource(props) {
117
124
  break;
118
125
  }
119
126
  }
120
- }, [value]);
127
+ }, []);
121
128
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
122
129
  style: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) ? {
123
130
  padding: '10px 10px 10px 10px',
@@ -90,21 +90,38 @@ var MapTable = function MapTable(props) {
90
90
  if (value) {
91
91
  if (value.mapping) {
92
92
  setMapping(value.mapping);
93
+ triggerChange({
94
+ mapping: value.mapping
95
+ });
93
96
  }
94
97
  if (value.output) {
95
98
  setOutput(value.output);
99
+ triggerChange({
100
+ output: value.output
101
+ });
96
102
  }
97
103
  if (value.options) {
98
104
  setOptions(value.options);
105
+ triggerChange({
106
+ options: value.options
107
+ });
99
108
  }
100
109
  if (value.dataSource) {
101
110
  setTableDataSource(value.dataSource);
111
+ tableDataSourceRef.current = value.dataSource;
112
+ triggerChange({
113
+ dataSource: value.dataSource
114
+ });
102
115
  }
103
116
  if (value.dataTarget) {
104
117
  setTableDataTarget(value.dataTarget);
118
+ tableDataTargetRef.current = value.dataTarget;
119
+ triggerChange({
120
+ dataTarget: value.dataTarget
121
+ });
105
122
  }
106
123
  }
107
- }, [value]);
124
+ }, []);
108
125
  React.useEffect(function () {
109
126
  if (disableArray) {
110
127
  var _mapping = [];
@@ -92,15 +92,25 @@ var SparkSqlTable = function SparkSqlTable(props) {
92
92
  if (value) {
93
93
  if (value.view) {
94
94
  setView(value.view);
95
+ triggerChange({
96
+ view: value.view
97
+ });
95
98
  }
96
99
  if (value.selected) {
97
100
  setSelected(value.selected);
101
+ triggerChange({
102
+ selected: value.selected
103
+ });
98
104
  }
99
105
  if (value.list) {
100
106
  setList(value.list);
107
+ listRef.current = value.list;
108
+ triggerChange({
109
+ list: value.list
110
+ });
101
111
  }
102
112
  }
103
- }, [value]);
113
+ }, []);
104
114
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Row, {
105
115
  className: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) && 'ant-form-item',
106
116
  style: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.78",
4
+ "version": "1.3.80",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",
@@ -44,7 +44,7 @@
44
44
  "@milkdown/react": "^7.3.0",
45
45
  "@milkdown/theme-nord": "^7.3.0",
46
46
  "@milkdown/transformer": "^7.3.0",
47
- "@monaco-editor/react": "^4.6.0",
47
+ "@monaco-editor/react": "4.4.6",
48
48
  "@popperjs/core": "^2.4.4",
49
49
  "@types/file-saver": "^2.0.5",
50
50
  "@types/markdown-it": "^12.2.3",