ronds-metadata 1.2.37 → 1.2.39

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.
Files changed (131) hide show
  1. package/es/api/index.js +83 -131
  2. package/es/comps/DynamicPorts/comps/ContextMenu.js +3 -11
  3. package/es/comps/DynamicPorts/comps/DragNode.js +3 -8
  4. package/es/comps/DynamicPorts/comps/GraphHandler/index.js +4 -5
  5. package/es/comps/DynamicPorts/comps/NodeElement.js +1 -4
  6. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +3 -6
  7. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +3 -7
  8. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +18 -21
  9. package/es/comps/DynamicPorts/comps/shape/edge.js +5 -18
  10. package/es/comps/DynamicPorts/comps/shape/node.js +4 -17
  11. package/es/comps/DynamicPorts/constant/index.js +2 -5
  12. package/es/comps/DynamicPorts/graph.d.ts +2 -2
  13. package/es/comps/DynamicPorts/graph.js +228 -312
  14. package/es/comps/DynamicPorts/index.js +39 -58
  15. package/es/comps/DynamicPorts/utils.js +21 -25
  16. package/es/comps/Editable/DataCell/ButtonCell.js +4 -10
  17. package/es/comps/Editable/DataCell/ColorPicker.js +2 -7
  18. package/es/comps/Editable/DataCell/Input.js +5 -14
  19. package/es/comps/Editable/DataCell/Number.js +3 -10
  20. package/es/comps/Editable/DataCell/Select.js +7 -14
  21. package/es/comps/Editable/DataCell/Switch.js +2 -7
  22. package/es/comps/Editable/comps/EditableAction.js +8 -12
  23. package/es/comps/Editable/comps/EditableCell.js +16 -26
  24. package/es/comps/Editable/comps/EditableHeardCell.js +21 -34
  25. package/es/comps/Editable/comps/EditableRow.js +49 -59
  26. package/es/comps/Editable/comps/Texty.js +40 -73
  27. package/es/comps/Editable/index.js +67 -112
  28. package/es/comps/Editable/interface.d.ts +1 -1
  29. package/es/comps/Editable/utils.js +0 -1
  30. package/es/comps/FileView/index.js +65 -101
  31. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +8 -13
  32. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +8 -4
  33. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +6 -2
  34. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +8 -4
  35. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +6 -11
  36. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +6 -10
  37. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +6 -2
  38. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +6 -11
  39. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +8 -4
  40. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +8 -13
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +6 -10
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +6 -2
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.js +6 -11
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +6 -3
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +2 -5
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +86 -109
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +3 -7
  48. package/es/comps/FormGenerator/comps/Canvas/core/index.js +54 -91
  49. package/es/comps/FormGenerator/comps/Canvas/index.js +8 -15
  50. package/es/comps/FormGenerator/comps/Settings/index.js +16 -30
  51. package/es/comps/FormGenerator/comps/Sidebar/Elements.js +23 -22
  52. package/es/comps/FormGenerator/comps/Sidebar/index.js +6 -2
  53. package/es/comps/FormGenerator/index.js +3 -9
  54. package/es/comps/FormGenerator/interface.d.ts +1 -1
  55. package/es/comps/FormGenerator/settings/index.js +12 -11
  56. package/es/comps/FormGenerator/settings/ruleConfig.js +0 -1
  57. package/es/comps/FormGenerator/transformer.js +40 -105
  58. package/es/comps/Icons/index.js +4 -7
  59. package/es/comps/JsonEdit/index.js +25 -50
  60. package/es/comps/JsonView/index.js +7 -21
  61. package/es/comps/MdEdit/index.js +7 -10
  62. package/es/comps/MdEditPro/index.d.ts +10 -0
  63. package/es/comps/MdEditPro/index.js +22 -0
  64. package/es/comps/MdEditPro/index.less +74 -0
  65. package/es/comps/MdNavbar/index.js +17 -40
  66. package/es/comps/MdNavbar/utils.js +0 -4
  67. package/es/comps/MdView/index.js +7 -11
  68. package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +129 -183
  69. package/es/comps/MetadataEdit/components/MetaPropsEdit.js +11 -27
  70. package/es/comps/MetadataEdit/hooks/index.js +3 -11
  71. package/es/comps/MetadataEdit/index.js +25 -58
  72. package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +17 -33
  73. package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +15 -29
  74. package/es/comps/MetadataEditV2/hooks/index.js +5 -12
  75. package/es/comps/MetadataEditV2/index.js +30 -65
  76. package/es/comps/MetadataForm/DataCell/Array.js +12 -23
  77. package/es/comps/MetadataForm/DataCell/Input.js +23 -39
  78. package/es/comps/MetadataForm/DataCell/Number.js +10 -21
  79. package/es/comps/MetadataForm/DataCell/Ref.js +87 -121
  80. package/es/comps/MetadataForm/DataCell/Select.js +131 -226
  81. package/es/comps/MetadataForm/DataCell/Switch.js +7 -14
  82. package/es/comps/MetadataForm/DataCell/layout/TableArray.js +98 -169
  83. package/es/comps/MetadataForm/HOC/index.js +20 -37
  84. package/es/comps/MetadataForm/hooks/index.js +12 -38
  85. package/es/comps/MetadataForm/index.js +37 -72
  86. package/es/comps/MetadataForm/interface.d.ts +3 -3
  87. package/es/comps/MetadataForm/utils.d.ts +1 -0
  88. package/es/comps/MetadataForm/utils.js +12 -14
  89. package/es/comps/Split/index.js +40 -38
  90. package/es/config.js +0 -4
  91. package/es/framework/RxStore/demo/index.js +9 -10
  92. package/es/framework/RxStore/hooks.d.ts +9 -9
  93. package/es/framework/RxStore/hooks.js +10 -35
  94. package/es/framework/RxStore/store.d.ts +4 -4
  95. package/es/framework/RxStore/store.js +0 -10
  96. package/es/framework/fg/index.js +18 -80
  97. package/es/framework/fg/interface.d.ts +2 -2
  98. package/es/framework/fg/utils.js +0 -10
  99. package/es/framework/graph/index.d.ts +2 -2
  100. package/es/framework/graph/index.js +55 -110
  101. package/es/framework/hooks/use-async-memo.js +3 -7
  102. package/es/framework/hooks/use-sync-scroll.js +2 -15
  103. package/es/framework/http/cache.js +25 -32
  104. package/es/framework/http/cancel.js +1 -7
  105. package/es/framework/http/index.js +22 -82
  106. package/es/framework/http/msgpack.js +0 -4
  107. package/es/framework/http/msgpack5/index.js +2 -12
  108. package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +1 -13
  109. package/es/framework/http/msgpack5/lib/decoder.js +10 -68
  110. package/es/framework/http/msgpack5/lib/encoder.js +8 -36
  111. package/es/framework/http/msgpack5/lib/helpers.js +3 -2
  112. package/es/framework/http/msgpack5/lib/streams.js +0 -18
  113. package/es/framework/libs/jquery.min.js +1009 -1696
  114. package/es/framework/locale/dil8/di18n.js +4 -15
  115. package/es/framework/locale/dil8/translate.js +0 -14
  116. package/es/framework/locale/dil8/util.js +0 -3
  117. package/es/framework/locale/index.js +2 -3
  118. package/es/framework/metadata/MetadataService.js +39 -78
  119. package/es/framework/metadata/index.js +4 -70
  120. package/es/framework/rxjs-hooks/useMemoSubject.js +0 -2
  121. package/es/framework/rxjs-hooks/useObservable.js +2 -4
  122. package/es/framework/rxjs-hooks/useObservableState.js +8 -14
  123. package/es/index.d.ts +1 -0
  124. package/es/index.js +2 -1
  125. package/es/utils.js +58 -97
  126. package/package.json +4 -2
  127. package/es/comps/MdEdit/plugin/EditContent.d.ts +0 -5
  128. package/es/comps/MdEdit/plugin/EditContent.js +0 -34
  129. package/es/comps/MdEdit/plugin/Mark.d.ts +0 -7
  130. package/es/comps/MdEdit/plugin/Mark.js +0 -60
  131. package/es/framework/libs/iconfont/iconfont.json +0 -401
@@ -4,41 +4,38 @@ import "antd/es/col/style";
4
4
  import _Col from "antd/es/col";
5
5
  import "antd/es/checkbox/style";
6
6
  import _Checkbox from "antd/es/checkbox";
7
+ /*
8
+ * @Author: uloveits 719310130@qq.com
9
+ * @Date: 2023-02-06 15:05:42
10
+ * @LastEditors: Please set LastEditors
11
+ * @LastEditTime: 2023-02-25 13:41:30
12
+ */
7
13
  import React from 'react';
8
14
  import { withFieldCellWrapper } from '../HOC';
9
15
  import { deepClone } from '../../../../../../../utils';
10
-
11
16
  var Index = function Index(props) {
12
17
  var data = props.data,
13
- fgStream = props.fgStream,
14
- setting = props.setting;
18
+ fgStream = props.fgStream,
19
+ setting = props.setting;
15
20
  var processNormalOptions = React.useCallback(function (opt) {
16
21
  var _options = [];
17
-
18
22
  var _enum = deepClone(opt);
19
-
20
23
  _enum.forEach(function (it) {
21
24
  var _it$key;
22
-
23
25
  var obj = {
24
26
  label: it.value,
25
27
  value: (_it$key = it === null || it === void 0 ? void 0 : it.key) !== null && _it$key !== void 0 ? _it$key : it === null || it === void 0 ? void 0 : it.value
26
28
  };
27
-
28
29
  _options.push(obj);
29
30
  });
30
-
31
31
  return _options;
32
32
  }, []);
33
33
  var options = React.useMemo(function () {
34
34
  var _setting$enum;
35
-
36
35
  if (setting === null || setting === void 0 ? void 0 : (_setting$enum = setting.enum) === null || _setting$enum === void 0 ? void 0 : _setting$enum.value) {
37
36
  var _setting$enum2;
38
-
39
37
  return processNormalOptions(setting === null || setting === void 0 ? void 0 : (_setting$enum2 = setting.enum) === null || _setting$enum2 === void 0 ? void 0 : _setting$enum2.value);
40
38
  }
41
-
42
39
  return [{
43
40
  label: 'uloveits1',
44
41
  value: '1'
@@ -56,7 +53,6 @@ var Index = function Index(props) {
56
53
  }
57
54
  }, /*#__PURE__*/React.createElement(_Row, null, options.map(function (it) {
58
55
  var _setting$checkbox;
59
-
60
56
  return /*#__PURE__*/React.createElement(_Col, {
61
57
  key: it.value,
62
58
  span: setting === null || setting === void 0 ? void 0 : (_setting$checkbox = setting.checkbox) === null || _setting$checkbox === void 0 ? void 0 : _setting$checkbox.colSpan
@@ -65,5 +61,4 @@ var Index = function Index(props) {
65
61
  }, it.label));
66
62
  }))));
67
63
  };
68
-
69
64
  export default withFieldCellWrapper(Index);
@@ -1,17 +1,21 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: uloveits 719310130@qq.com
8
+ * @LastEditTime: 2023-02-16 14:52:38
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var data = props.data,
8
- fgStream = props.fgStream,
9
- setting = props.setting;
13
+ fgStream = props.fgStream,
14
+ setting = props.setting;
10
15
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Input, {
11
16
  type: "color",
12
17
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled,
13
18
  placeholder: setting === null || setting === void 0 ? void 0 : setting.placeholder
14
19
  }));
15
20
  };
16
-
17
21
  export default withFieldCellWrapper(Index);
@@ -1,9 +1,14 @@
1
1
  import "antd/es/date-picker/style";
2
2
  import _DatePicker from "antd/es/date-picker";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: Please set LastEditors
8
+ * @LastEditTime: 2023-04-27 18:51:17
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
11
  import { DEFAULT_DATE_FORMAT } from '../../../../../../../comps/MetadataForm/DataCell/Input';
6
-
7
12
  var Index = function Index(props) {
8
13
  var setting = props.setting;
9
14
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_DatePicker, {
@@ -13,5 +18,4 @@ var Index = function Index(props) {
13
18
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled
14
19
  }));
15
20
  };
16
-
17
21
  export default withFieldCellWrapper(Index);
@@ -1,17 +1,21 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: Please set LastEditors
8
+ * @LastEditTime: 2023-02-08 14:02:58
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var data = props.data,
8
- fgStream = props.fgStream,
9
- setting = props.setting;
13
+ fgStream = props.fgStream,
14
+ setting = props.setting;
10
15
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Input, {
11
16
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled,
12
17
  placeholder: setting === null || setting === void 0 ? void 0 : setting.placeholder,
13
18
  allowClear: true
14
19
  }));
15
20
  };
16
-
17
21
  export default withFieldCellWrapper(Index);
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
-
5
4
  /*
6
5
  * @Author: uloveits 719310130@qq.com
7
6
  * @Date: 2023-02-06 15:05:42
@@ -12,18 +11,15 @@ import React from 'react';
12
11
  import CanvasCore from '../../index';
13
12
  import { withFieldCellWrapper } from '../HOC';
14
13
  import { streamEventType } from '../../../../../settings/index';
15
-
16
14
  var Index = function Index(props) {
17
15
  var data = props.data,
18
- fgStream = props.fgStream,
19
- setting = props.setting,
20
- types = props.types;
21
-
16
+ fgStream = props.fgStream,
17
+ setting = props.setting,
18
+ types = props.types;
22
19
  var _React$useState = React.useState([]),
23
- _React$useState2 = _slicedToArray(_React$useState, 2),
24
- nodes = _React$useState2[0],
25
- setNodes = _React$useState2[1];
26
-
20
+ _React$useState2 = _slicedToArray(_React$useState, 2),
21
+ nodes = _React$useState2[0],
22
+ setNodes = _React$useState2[1];
27
23
  var nodesRef = React.useRef([]);
28
24
  React.useEffect(function () {
29
25
  if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
@@ -46,5 +42,4 @@ var Index = function Index(props) {
46
42
  }
47
43
  }));
48
44
  };
49
-
50
45
  export default withFieldCellWrapper(Index);
@@ -1,38 +1,35 @@
1
1
  import "antd/es/select/style";
2
2
  import _Select from "antd/es/select";
3
+ /*
4
+ * @Author: uloveits 719310130@qq.com
5
+ * @Date: 2023-02-06 15:05:42
6
+ * @LastEditors: uloveits 719310130@qq.com
7
+ * @LastEditTime: 2023-02-10 19:04:10
8
+ */
3
9
  import React from 'react';
4
10
  import { withFieldCellWrapper } from '../HOC';
5
11
  import { deepClone } from '../../../../../../../utils';
6
-
7
12
  var Index = function Index(props) {
8
13
  var setting = props.setting;
9
14
  var processNormalOptions = React.useCallback(function (opt) {
10
15
  var _options = [];
11
-
12
16
  var _enum = deepClone(opt);
13
-
14
17
  _enum.forEach(function (it) {
15
18
  var _it$key;
16
-
17
19
  var obj = {
18
20
  label: it.value,
19
21
  value: (_it$key = it === null || it === void 0 ? void 0 : it.key) !== null && _it$key !== void 0 ? _it$key : it === null || it === void 0 ? void 0 : it.value
20
22
  };
21
-
22
23
  _options.push(obj);
23
24
  });
24
-
25
25
  return _options;
26
26
  }, []);
27
27
  var options = React.useMemo(function () {
28
28
  var _setting$enum;
29
-
30
29
  if (setting === null || setting === void 0 ? void 0 : (_setting$enum = setting.enum) === null || _setting$enum === void 0 ? void 0 : _setting$enum.value) {
31
30
  var _setting$enum2;
32
-
33
31
  return processNormalOptions(setting === null || setting === void 0 ? void 0 : (_setting$enum2 = setting.enum) === null || _setting$enum2 === void 0 ? void 0 : _setting$enum2.value);
34
32
  }
35
-
36
33
  return [{
37
34
  label: 'uloveits1',
38
35
  value: '1'
@@ -51,5 +48,4 @@ var Index = function Index(props) {
51
48
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled
52
49
  }));
53
50
  };
54
-
55
51
  export default withFieldCellWrapper(Index);
@@ -1,8 +1,13 @@
1
1
  import "antd/es/input-number/style";
2
2
  import _InputNumber from "antd/es/input-number";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: Please set LastEditors
8
+ * @LastEditTime: 2023-02-10 09:04:21
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var setting = props.setting;
8
13
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_InputNumber, {
@@ -10,5 +15,4 @@ var Index = function Index(props) {
10
15
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled
11
16
  }));
12
17
  };
13
-
14
18
  export default withFieldCellWrapper(Index);
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
-
5
4
  /*
6
5
  * @Author: uloveits 719310130@qq.com
7
6
  * @Date: 2023-02-06 15:05:42
@@ -12,18 +11,15 @@ import React from 'react';
12
11
  import CanvasCore from '../../index';
13
12
  import { withFieldCellWrapper } from '../HOC';
14
13
  import { streamEventType } from '../../../../../settings/index';
15
-
16
14
  var Index = function Index(props) {
17
15
  var data = props.data,
18
- fgStream = props.fgStream,
19
- setting = props.setting,
20
- types = props.types;
21
-
16
+ fgStream = props.fgStream,
17
+ setting = props.setting,
18
+ types = props.types;
22
19
  var _React$useState = React.useState([]),
23
- _React$useState2 = _slicedToArray(_React$useState, 2),
24
- nodes = _React$useState2[0],
25
- setNodes = _React$useState2[1];
26
-
20
+ _React$useState2 = _slicedToArray(_React$useState, 2),
21
+ nodes = _React$useState2[0],
22
+ setNodes = _React$useState2[1];
27
23
  var nodesRef = React.useRef([]);
28
24
  React.useEffect(function () {
29
25
  if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
@@ -46,5 +42,4 @@ var Index = function Index(props) {
46
42
  }
47
43
  }));
48
44
  };
49
-
50
45
  export default withFieldCellWrapper(Index);
@@ -1,17 +1,21 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: Please set LastEditors
8
+ * @LastEditTime: 2023-02-25 11:31:55
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var data = props.data,
8
- fgStream = props.fgStream,
9
- setting = props.setting;
13
+ fgStream = props.fgStream,
14
+ setting = props.setting;
10
15
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Input.Password, {
11
16
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled,
12
17
  placeholder: setting === null || setting === void 0 ? void 0 : setting.placeholder,
13
18
  allowClear: true
14
19
  }));
15
20
  };
16
-
17
21
  export default withFieldCellWrapper(Index);
@@ -4,41 +4,38 @@ import "antd/es/col/style";
4
4
  import _Col from "antd/es/col";
5
5
  import "antd/es/radio/style";
6
6
  import _Radio from "antd/es/radio";
7
+ /*
8
+ * @Author: uloveits 719310130@qq.com
9
+ * @Date: 2023-02-06 15:05:42
10
+ * @LastEditors: Please set LastEditors
11
+ * @LastEditTime: 2023-02-25 13:42:12
12
+ */
7
13
  import React from 'react';
8
14
  import { withFieldCellWrapper } from '../HOC';
9
15
  import { deepClone } from '../../../../../../../utils';
10
-
11
16
  var Index = function Index(props) {
12
17
  var data = props.data,
13
- fgStream = props.fgStream,
14
- setting = props.setting;
18
+ fgStream = props.fgStream,
19
+ setting = props.setting;
15
20
  var processNormalOptions = React.useCallback(function (opt) {
16
21
  var _options = [];
17
-
18
22
  var _enum = deepClone(opt);
19
-
20
23
  _enum.forEach(function (it) {
21
24
  var _it$key;
22
-
23
25
  var obj = {
24
26
  label: it.value,
25
27
  value: (_it$key = it === null || it === void 0 ? void 0 : it.key) !== null && _it$key !== void 0 ? _it$key : it === null || it === void 0 ? void 0 : it.value
26
28
  };
27
-
28
29
  _options.push(obj);
29
30
  });
30
-
31
31
  return _options;
32
32
  }, []);
33
33
  var options = React.useMemo(function () {
34
34
  var _setting$enum;
35
-
36
35
  if (setting === null || setting === void 0 ? void 0 : (_setting$enum = setting.enum) === null || _setting$enum === void 0 ? void 0 : _setting$enum.value) {
37
36
  var _setting$enum2;
38
-
39
37
  return processNormalOptions(setting === null || setting === void 0 ? void 0 : (_setting$enum2 = setting.enum) === null || _setting$enum2 === void 0 ? void 0 : _setting$enum2.value);
40
38
  }
41
-
42
39
  return [{
43
40
  label: 'uloveits1',
44
41
  value: '1'
@@ -56,7 +53,6 @@ var Index = function Index(props) {
56
53
  }
57
54
  }, /*#__PURE__*/React.createElement(_Row, null, options.map(function (it) {
58
55
  var _setting$checkbox;
59
-
60
56
  return /*#__PURE__*/React.createElement(_Col, {
61
57
  key: it.value,
62
58
  span: setting === null || setting === void 0 ? void 0 : (_setting$checkbox = setting.checkbox) === null || _setting$checkbox === void 0 ? void 0 : _setting$checkbox.colSpan
@@ -65,5 +61,4 @@ var Index = function Index(props) {
65
61
  }, it.label));
66
62
  }))));
67
63
  };
68
-
69
64
  export default withFieldCellWrapper(Index);
@@ -1,38 +1,35 @@
1
1
  import "antd/es/select/style";
2
2
  import _Select from "antd/es/select";
3
+ /*
4
+ * @Author: uloveits 719310130@qq.com
5
+ * @Date: 2023-02-06 15:05:42
6
+ * @LastEditors: uloveits 719310130@qq.com
7
+ * @LastEditTime: 2023-02-28 15:55:42
8
+ */
3
9
  import React from 'react';
4
10
  import { withFieldCellWrapper } from '../HOC';
5
11
  import { deepClone } from '../../../../../../../utils';
6
-
7
12
  var Index = function Index(props) {
8
13
  var setting = props.setting;
9
14
  var processNormalOptions = React.useCallback(function (opt) {
10
15
  var _options = [];
11
-
12
16
  var _enum = deepClone(opt);
13
-
14
17
  _enum.forEach(function (it) {
15
18
  var _it$key;
16
-
17
19
  var obj = {
18
20
  label: it.value,
19
21
  value: (_it$key = it === null || it === void 0 ? void 0 : it.key) !== null && _it$key !== void 0 ? _it$key : it === null || it === void 0 ? void 0 : it.value
20
22
  };
21
-
22
23
  _options.push(obj);
23
24
  });
24
-
25
25
  return _options;
26
26
  }, []);
27
27
  var options = React.useMemo(function () {
28
28
  var _setting$enum;
29
-
30
29
  if (setting === null || setting === void 0 ? void 0 : (_setting$enum = setting.enum) === null || _setting$enum === void 0 ? void 0 : _setting$enum.value) {
31
30
  var _setting$enum2;
32
-
33
31
  return processNormalOptions(setting === null || setting === void 0 ? void 0 : (_setting$enum2 = setting.enum) === null || _setting$enum2 === void 0 ? void 0 : _setting$enum2.value);
34
32
  }
35
-
36
33
  return [{
37
34
  label: 'uloveits1',
38
35
  value: '1'
@@ -51,5 +48,4 @@ var Index = function Index(props) {
51
48
  allowClear: true
52
49
  }));
53
50
  };
54
-
55
51
  export default withFieldCellWrapper(Index);
@@ -1,13 +1,17 @@
1
1
  import "antd/es/switch/style";
2
2
  import _Switch from "antd/es/switch";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: Please set LastEditors
8
+ * @LastEditTime: 2023-02-10 09:05:33
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var setting = props.setting;
8
13
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Switch, {
9
14
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled
10
15
  }));
11
16
  };
12
-
13
17
  export default withFieldCellWrapper(Index);
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
-
5
4
  /*
6
5
  * @Author: uloveits 719310130@qq.com
7
6
  * @Date: 2023-02-06 15:05:42
@@ -12,18 +11,15 @@ import React from 'react';
12
11
  import CanvasCore from '../../index';
13
12
  import { withFieldCellWrapper } from '../HOC';
14
13
  import { streamEventType } from '../../../../../settings/index';
15
-
16
14
  var Index = function Index(props) {
17
15
  var data = props.data,
18
- fgStream = props.fgStream,
19
- setting = props.setting,
20
- types = props.types;
21
-
16
+ fgStream = props.fgStream,
17
+ setting = props.setting,
18
+ types = props.types;
22
19
  var _React$useState = React.useState([]),
23
- _React$useState2 = _slicedToArray(_React$useState, 2),
24
- nodes = _React$useState2[0],
25
- setNodes = _React$useState2[1];
26
-
20
+ _React$useState2 = _slicedToArray(_React$useState, 2),
21
+ nodes = _React$useState2[0],
22
+ setNodes = _React$useState2[1];
27
23
  var nodesRef = React.useRef([]);
28
24
  React.useEffect(function () {
29
25
  if ((types === null || types === void 0 ? void 0 : types.nodes.length) > 0) {
@@ -46,5 +42,4 @@ var Index = function Index(props) {
46
42
  }
47
43
  }));
48
44
  };
49
-
50
45
  export default withFieldCellWrapper(Index);
@@ -1,11 +1,15 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  import React from "react";
4
+ /*
5
+ * @Author: uloveits 719310130@qq.com
6
+ * @Date: 2023-02-06 15:05:42
7
+ * @LastEditors: uloveits 719310130@qq.com
8
+ * @LastEditTime: 2023-02-28 16:26:14
9
+ */
4
10
  import { withFieldCellWrapper } from '../HOC';
5
-
6
11
  var Index = function Index(props) {
7
12
  var _setting$text;
8
-
9
13
  var setting = props.setting;
10
14
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Input.TextArea, {
11
15
  rows: (setting === null || setting === void 0 ? void 0 : (_setting$text = setting.text) === null || _setting$text === void 0 ? void 0 : _setting$text.textareaRows) || 4,
@@ -13,5 +17,4 @@ var Index = function Index(props) {
13
17
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled
14
18
  }));
15
19
  };
16
-
17
20
  export default withFieldCellWrapper(Index);
@@ -3,7 +3,6 @@ import _Upload from "antd/es/upload";
3
3
  import "antd/es/button/style";
4
4
  import _Button from "antd/es/button";
5
5
  import React from "react";
6
-
7
6
  /*
8
7
  * @Author: uloveits 719310130@qq.com
9
8
  * @Date: 2023-02-06 15:05:42
@@ -13,15 +12,13 @@ import React from "react";
13
12
  import { UploadOutlined } from '@ant-design/icons';
14
13
  import { withFieldCellWrapper } from '../HOC';
15
14
  import { tr } from '../../../../../../../framework/locale';
16
-
17
15
  var Index = function Index(props) {
18
16
  var data = props.data,
19
- fgStream = props.fgStream,
20
- setting = props.setting;
17
+ fgStream = props.fgStream,
18
+ setting = props.setting;
21
19
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Upload, null, /*#__PURE__*/React.createElement(_Button, {
22
20
  disabled: setting === null || setting === void 0 ? void 0 : setting.disabled,
23
21
  icon: /*#__PURE__*/React.createElement(UploadOutlined, null)
24
22
  }, tr('上传'))));
25
23
  };
26
-
27
24
  export default withFieldCellWrapper(Index);