ronds-metadata 1.2.73 → 1.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +12 -3
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.js +3 -3
- package/es/comps/FormGenerator/comps/Canvas/core/index.js +3 -3
- package/es/comps/FormGenerator/comps/Canvas/index.js +2 -2
- package/es/comps/FormGenerator/comps/Settings/index.js +2 -2
- package/es/comps/FormGenerator/comps/Sidebar/index.js +2 -2
- package/es/comps/FormGenerator/settings/index.d.ts +168 -9
- package/es/comps/FormGenerator/settings/index.js +3 -3
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ var Index = function Index(props) {
|
|
|
22
22
|
setNodes = _React$useState2[1];
|
|
23
23
|
var nodesRef = React.useRef([]);
|
|
24
24
|
React.useEffect(function () {
|
|
25
|
-
if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
25
|
+
if (types && (types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
26
26
|
setNodes(_toConsumableArray(types.nodes));
|
|
27
27
|
nodesRef.current = types.nodes;
|
|
28
28
|
}
|
|
@@ -4,8 +4,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
4
4
|
/*
|
|
5
5
|
* @Author: uloveits 719310130@qq.com
|
|
6
6
|
* @Date: 2023-02-06 15:05:42
|
|
7
|
-
* @LastEditors:
|
|
8
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditors: Please set LastEditors
|
|
8
|
+
* @LastEditTime: 2023-06-26 09:11:56
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import CanvasCore from '../../index';
|
|
@@ -22,9 +22,18 @@ var Index = function Index(props) {
|
|
|
22
22
|
setNodes = _React$useState2[1];
|
|
23
23
|
var nodesRef = React.useRef([]);
|
|
24
24
|
React.useEffect(function () {
|
|
25
|
-
if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
25
|
+
if (types && (types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
26
26
|
setNodes(_toConsumableArray(types.nodes));
|
|
27
27
|
nodesRef.current = types.nodes;
|
|
28
|
+
if (nodes.length === 0) {
|
|
29
|
+
fgStream && fgStream.next({
|
|
30
|
+
type: streamEventType.onTypesChange,
|
|
31
|
+
payload: _defineProperty({}, data.id, {
|
|
32
|
+
id: (setting === null || setting === void 0 ? void 0 : setting.id) || data.id,
|
|
33
|
+
nodes: nodesRef.current
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
}, [types]);
|
|
30
39
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CanvasCore, {
|
|
@@ -4,8 +4,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
4
4
|
/*
|
|
5
5
|
* @Author: uloveits 719310130@qq.com
|
|
6
6
|
* @Date: 2023-02-06 15:05:42
|
|
7
|
-
* @LastEditors:
|
|
8
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditors: Please set LastEditors
|
|
8
|
+
* @LastEditTime: 2023-06-26 09:00:47
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import CanvasCore from '../../index';
|
|
@@ -22,7 +22,7 @@ var Index = function Index(props) {
|
|
|
22
22
|
setNodes = _React$useState2[1];
|
|
23
23
|
var nodesRef = React.useRef([]);
|
|
24
24
|
React.useEffect(function () {
|
|
25
|
-
if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
25
|
+
if (types && (types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
|
|
26
26
|
setNodes(_toConsumableArray(types.nodes));
|
|
27
27
|
nodesRef.current = types.nodes;
|
|
28
28
|
}
|
|
@@ -10,7 +10,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
10
10
|
/*
|
|
11
11
|
* @Author: wangxian
|
|
12
12
|
* @Date: 2023-02-06 09:46:17
|
|
13
|
-
* @LastEditTime: 2023-
|
|
13
|
+
* @LastEditTime: 2023-06-25 18:09:24
|
|
14
14
|
*/
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { useDrop } from 'react-dnd';
|
|
@@ -79,7 +79,7 @@ var CanvasCore = function CanvasCore(props) {
|
|
|
79
79
|
newIdx = position === 'borderTop' ? newIdx : newIdx + 1;
|
|
80
80
|
if (oldIdx === -1) {
|
|
81
81
|
newNode = _objectSpread(_objectSpread({}, _node), {}, {
|
|
82
|
-
id: "".concat(_node.id.split('
|
|
82
|
+
id: "".concat(_node.id.split('_')[0], "_").concat(guid().substring(0, 4))
|
|
83
83
|
});
|
|
84
84
|
_list = arrayInsert(_list, newIdx, newNode);
|
|
85
85
|
} else {
|
|
@@ -89,7 +89,7 @@ var CanvasCore = function CanvasCore(props) {
|
|
|
89
89
|
} else {
|
|
90
90
|
if (oldIdx === -1) {
|
|
91
91
|
newNode = _objectSpread(_objectSpread({}, _node), {}, {
|
|
92
|
-
id: "".concat(_node.id.split('
|
|
92
|
+
id: "".concat(_node.id.split('_')[0], "_").concat(guid().substring(0, 4))
|
|
93
93
|
});
|
|
94
94
|
_list.push(newNode);
|
|
95
95
|
}
|
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
8
8
|
/*
|
|
9
9
|
* @Author: wangxian
|
|
10
10
|
* @Date: 2023-02-06 08:24:17
|
|
11
|
-
* @LastEditTime: 2023-
|
|
11
|
+
* @LastEditTime: 2023-06-26 08:55:24
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import copy from 'copy-to-clipboard';
|
|
@@ -91,7 +91,7 @@ var Canvas = function Canvas() {
|
|
|
91
91
|
style: {
|
|
92
92
|
width: '100%',
|
|
93
93
|
height: 'calc(100% - 40px)',
|
|
94
|
-
background: 'var(--ronds-metadata-color-bg-
|
|
94
|
+
background: 'var(--ronds-metadata-color-bg-2)',
|
|
95
95
|
padding: '8px',
|
|
96
96
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
|
97
97
|
overflowY: 'auto'
|
|
@@ -7,7 +7,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
7
7
|
* @Author: uloveits 719310130@qq.com
|
|
8
8
|
* @Date: 2023-02-04 16:35:15
|
|
9
9
|
* @LastEditors: Please set LastEditors
|
|
10
|
-
* @LastEditTime: 2023-
|
|
10
|
+
* @LastEditTime: 2023-06-26 08:52:25
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { FGCtx } from '../../Provider';
|
|
@@ -35,7 +35,7 @@ var Settings = function Settings() {
|
|
|
35
35
|
var processDefaultValue = React.useCallback(function (data) {
|
|
36
36
|
var _data$settings;
|
|
37
37
|
settingValueRef.current = data.settings;
|
|
38
|
-
formRef.current.setFieldsValue(_objectSpread({}, (data === null || data === void 0 ? void 0 : (_data$settings = data.settings) === null || _data$settings === void 0 ? void 0 : _data$settings.formSetting) || {}));
|
|
38
|
+
formRef.current && formRef.current.setFieldsValue(_objectSpread({}, (data === null || data === void 0 ? void 0 : (_data$settings = data.settings) === null || _data$settings === void 0 ? void 0 : _data$settings.formSetting) || {}));
|
|
39
39
|
fGCtx.fgStream && fGCtx.fgStream.next({
|
|
40
40
|
type: streamEventType.onSettingValueChange,
|
|
41
41
|
payload: _objectSpread(_objectSpread({}, data.settings), {}, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "antd/es/row/style";
|
|
2
2
|
import _Row from "antd/es/row";
|
|
3
|
-
import React from "react";
|
|
4
3
|
/*
|
|
5
4
|
* @Author: uloveits 719310130@qq.com
|
|
6
5
|
* @Date: 2023-02-04 16:35:16
|
|
7
6
|
* @LastEditors: Please set LastEditors
|
|
8
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditTime: 2023-06-26 08:46:07
|
|
9
8
|
*/
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import { sidebarCtx } from '../../settings';
|
|
11
11
|
import Elements from './Elements';
|
|
12
12
|
var Sidebar = function Sidebar() {
|
|
@@ -484,7 +484,26 @@ export declare const objSchema: {
|
|
|
484
484
|
};
|
|
485
485
|
}[];
|
|
486
486
|
})[];
|
|
487
|
-
types:
|
|
487
|
+
types: {
|
|
488
|
+
id: string;
|
|
489
|
+
type: string;
|
|
490
|
+
properties: {
|
|
491
|
+
id: string;
|
|
492
|
+
type: string;
|
|
493
|
+
fields: {
|
|
494
|
+
id: string;
|
|
495
|
+
type: string;
|
|
496
|
+
refId: string;
|
|
497
|
+
value: {
|
|
498
|
+
text: {};
|
|
499
|
+
common: {
|
|
500
|
+
label: string;
|
|
501
|
+
};
|
|
502
|
+
'common-en-US': {};
|
|
503
|
+
};
|
|
504
|
+
}[];
|
|
505
|
+
}[];
|
|
506
|
+
}[];
|
|
488
507
|
}[];
|
|
489
508
|
export declare const settingSchema: {
|
|
490
509
|
input: {
|
|
@@ -1023,7 +1042,26 @@ export declare const settingSchema: {
|
|
|
1023
1042
|
};
|
|
1024
1043
|
}[];
|
|
1025
1044
|
})[];
|
|
1026
|
-
types:
|
|
1045
|
+
types: {
|
|
1046
|
+
id: string;
|
|
1047
|
+
type: string;
|
|
1048
|
+
properties: {
|
|
1049
|
+
id: string;
|
|
1050
|
+
type: string;
|
|
1051
|
+
fields: {
|
|
1052
|
+
id: string;
|
|
1053
|
+
type: string;
|
|
1054
|
+
refId: string;
|
|
1055
|
+
value: {
|
|
1056
|
+
text: {};
|
|
1057
|
+
common: {
|
|
1058
|
+
label: string;
|
|
1059
|
+
};
|
|
1060
|
+
'common-en-US': {};
|
|
1061
|
+
};
|
|
1062
|
+
}[];
|
|
1063
|
+
}[];
|
|
1064
|
+
}[];
|
|
1027
1065
|
}[];
|
|
1028
1066
|
list: {
|
|
1029
1067
|
id: string;
|
|
@@ -1054,7 +1092,26 @@ export declare const settingSchema: {
|
|
|
1054
1092
|
};
|
|
1055
1093
|
}[];
|
|
1056
1094
|
})[];
|
|
1057
|
-
types:
|
|
1095
|
+
types: {
|
|
1096
|
+
id: string;
|
|
1097
|
+
type: string;
|
|
1098
|
+
properties: {
|
|
1099
|
+
id: string;
|
|
1100
|
+
type: string;
|
|
1101
|
+
fields: {
|
|
1102
|
+
id: string;
|
|
1103
|
+
type: string;
|
|
1104
|
+
refId: string;
|
|
1105
|
+
value: {
|
|
1106
|
+
text: {};
|
|
1107
|
+
common: {
|
|
1108
|
+
label: string;
|
|
1109
|
+
};
|
|
1110
|
+
'common-en-US': {};
|
|
1111
|
+
};
|
|
1112
|
+
}[];
|
|
1113
|
+
}[];
|
|
1114
|
+
}[];
|
|
1058
1115
|
}[];
|
|
1059
1116
|
table: {
|
|
1060
1117
|
id: string;
|
|
@@ -1085,7 +1142,26 @@ export declare const settingSchema: {
|
|
|
1085
1142
|
};
|
|
1086
1143
|
}[];
|
|
1087
1144
|
})[];
|
|
1088
|
-
types:
|
|
1145
|
+
types: {
|
|
1146
|
+
id: string;
|
|
1147
|
+
type: string;
|
|
1148
|
+
properties: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
type: string;
|
|
1151
|
+
fields: {
|
|
1152
|
+
id: string;
|
|
1153
|
+
type: string;
|
|
1154
|
+
refId: string;
|
|
1155
|
+
value: {
|
|
1156
|
+
text: {};
|
|
1157
|
+
common: {
|
|
1158
|
+
label: string;
|
|
1159
|
+
};
|
|
1160
|
+
'common-en-US': {};
|
|
1161
|
+
};
|
|
1162
|
+
}[];
|
|
1163
|
+
}[];
|
|
1164
|
+
}[];
|
|
1089
1165
|
}[];
|
|
1090
1166
|
};
|
|
1091
1167
|
export declare const inputParam: {
|
|
@@ -1901,7 +1977,26 @@ export declare const objParam: {
|
|
|
1901
1977
|
};
|
|
1902
1978
|
}[];
|
|
1903
1979
|
})[];
|
|
1904
|
-
types:
|
|
1980
|
+
types: {
|
|
1981
|
+
id: string;
|
|
1982
|
+
type: string;
|
|
1983
|
+
properties: {
|
|
1984
|
+
id: string;
|
|
1985
|
+
type: string;
|
|
1986
|
+
fields: {
|
|
1987
|
+
id: string;
|
|
1988
|
+
type: string;
|
|
1989
|
+
refId: string;
|
|
1990
|
+
value: {
|
|
1991
|
+
text: {};
|
|
1992
|
+
common: {
|
|
1993
|
+
label: string;
|
|
1994
|
+
};
|
|
1995
|
+
'common-en-US': {};
|
|
1996
|
+
};
|
|
1997
|
+
}[];
|
|
1998
|
+
}[];
|
|
1999
|
+
}[];
|
|
1905
2000
|
}[];
|
|
1906
2001
|
};
|
|
1907
2002
|
export declare const listParam: {
|
|
@@ -1935,7 +2030,26 @@ export declare const listParam: {
|
|
|
1935
2030
|
};
|
|
1936
2031
|
}[];
|
|
1937
2032
|
})[];
|
|
1938
|
-
types:
|
|
2033
|
+
types: {
|
|
2034
|
+
id: string;
|
|
2035
|
+
type: string;
|
|
2036
|
+
properties: {
|
|
2037
|
+
id: string;
|
|
2038
|
+
type: string;
|
|
2039
|
+
fields: {
|
|
2040
|
+
id: string;
|
|
2041
|
+
type: string;
|
|
2042
|
+
refId: string;
|
|
2043
|
+
value: {
|
|
2044
|
+
text: {};
|
|
2045
|
+
common: {
|
|
2046
|
+
label: string;
|
|
2047
|
+
};
|
|
2048
|
+
'common-en-US': {};
|
|
2049
|
+
};
|
|
2050
|
+
}[];
|
|
2051
|
+
}[];
|
|
2052
|
+
}[];
|
|
1939
2053
|
}[];
|
|
1940
2054
|
};
|
|
1941
2055
|
export declare const tableParam: {
|
|
@@ -1969,7 +2083,26 @@ export declare const tableParam: {
|
|
|
1969
2083
|
};
|
|
1970
2084
|
}[];
|
|
1971
2085
|
})[];
|
|
1972
|
-
types:
|
|
2086
|
+
types: {
|
|
2087
|
+
id: string;
|
|
2088
|
+
type: string;
|
|
2089
|
+
properties: {
|
|
2090
|
+
id: string;
|
|
2091
|
+
type: string;
|
|
2092
|
+
fields: {
|
|
2093
|
+
id: string;
|
|
2094
|
+
type: string;
|
|
2095
|
+
refId: string;
|
|
2096
|
+
value: {
|
|
2097
|
+
text: {};
|
|
2098
|
+
common: {
|
|
2099
|
+
label: string;
|
|
2100
|
+
};
|
|
2101
|
+
'common-en-US': {};
|
|
2102
|
+
};
|
|
2103
|
+
}[];
|
|
2104
|
+
}[];
|
|
2105
|
+
}[];
|
|
1973
2106
|
}[];
|
|
1974
2107
|
rule: {
|
|
1975
2108
|
layout: string;
|
|
@@ -2010,7 +2143,26 @@ export declare const layoutComps: {
|
|
|
2010
2143
|
};
|
|
2011
2144
|
}[];
|
|
2012
2145
|
})[];
|
|
2013
|
-
types:
|
|
2146
|
+
types: {
|
|
2147
|
+
id: string;
|
|
2148
|
+
type: string;
|
|
2149
|
+
properties: {
|
|
2150
|
+
id: string;
|
|
2151
|
+
type: string;
|
|
2152
|
+
fields: {
|
|
2153
|
+
id: string;
|
|
2154
|
+
type: string;
|
|
2155
|
+
refId: string;
|
|
2156
|
+
value: {
|
|
2157
|
+
text: {};
|
|
2158
|
+
common: {
|
|
2159
|
+
label: string;
|
|
2160
|
+
};
|
|
2161
|
+
'common-en-US': {};
|
|
2162
|
+
};
|
|
2163
|
+
}[];
|
|
2164
|
+
}[];
|
|
2165
|
+
}[];
|
|
2014
2166
|
}[];
|
|
2015
2167
|
};
|
|
2016
2168
|
}[];
|
|
@@ -2051,7 +2203,14 @@ export declare const sidebarCtx: {
|
|
|
2051
2203
|
};
|
|
2052
2204
|
}[];
|
|
2053
2205
|
})[];
|
|
2054
|
-
types:
|
|
2206
|
+
types: {
|
|
2207
|
+
id: string;
|
|
2208
|
+
type: string;
|
|
2209
|
+
properties: {
|
|
2210
|
+
id: string;
|
|
2211
|
+
type: string;
|
|
2212
|
+
}[];
|
|
2213
|
+
}[];
|
|
2055
2214
|
}[];
|
|
2056
2215
|
};
|
|
2057
2216
|
}[];
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
2
2
|
/*
|
|
3
3
|
* @Author: wangxian
|
|
4
4
|
* @Date: 2023-02-06 08:24:17
|
|
5
|
-
* @LastEditTime: 2023-06-
|
|
5
|
+
* @LastEditTime: 2023-06-25 18:27:38
|
|
6
6
|
*/
|
|
7
7
|
import { RefRule, Rule } from './ruleConfig';
|
|
8
8
|
export var inputSchema = [{
|
|
@@ -78,8 +78,8 @@ export var uploadSchema = [{
|
|
|
78
78
|
export var objSchema = [{
|
|
79
79
|
id: 'objSchema',
|
|
80
80
|
type: 'object',
|
|
81
|
-
properties: [Rule.common.id, Rule.common.label, Rule.common.colSpan, Rule.common.help, Rule.common.tooltip, Rule.common.hidden],
|
|
82
|
-
types:
|
|
81
|
+
properties: [Rule.common.id, Rule.common.label, Rule.common.colSpan, Rule.common.help, Rule.common.tooltip, Rule.common.hidden, RefRule.common.depend.props],
|
|
82
|
+
types: _toConsumableArray(RefRule.common.depend.types)
|
|
83
83
|
}];
|
|
84
84
|
export var settingSchema = {
|
|
85
85
|
input: inputSchema,
|