@signalplus/params-about 0.1.17 → 0.1.20

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/index.d.ts CHANGED
@@ -51,9 +51,9 @@ declare class ParamRenderer extends PureComponent<ParamRendererProps> {
51
51
  interface ParentSelectorOption {
52
52
  parentId?: string | number;
53
53
  $paramId: string | number;
54
- name: string;
54
+ name?: string;
55
55
  disabled?: boolean;
56
- valueType?: ParamType;
56
+ valueType: ParamType;
57
57
  children?: ParentSelectorOption[];
58
58
  [key: string]: any;
59
59
  }
@@ -65,7 +65,7 @@ interface ParentSelectorProps extends BaseInputProps {
65
65
 
66
66
  interface ParamFormData {
67
67
  parentId?: string;
68
- paramId?: string;
68
+ $paramId?: string;
69
69
  key: string;
70
70
  name?: string;
71
71
  valueType: ParamType;
@@ -174,8 +174,9 @@ interface ImageUploadProps extends BaseInputProps {
174
174
 
175
175
  interface ParamGroupEditorData {
176
176
  parentId: string;
177
- paramId?: string;
177
+ $paramId?: string;
178
178
  name: string;
179
+ valueType?: ParamType;
179
180
  descriptionUrl?: string;
180
181
  }
181
182
  interface ParamGroupEditorProps extends Required<Pick<ImageUploadProps, 'getSignedUrl' | 'handleUpload'>> {
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2022-04-10
4
- * Version: 0.1.17
3
+ * Generated: 2022-04-11
4
+ * Version: 0.1.20
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1530,7 +1530,7 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1530
1530
  get: function get() {
1531
1531
  var _this$props$initialVa;
1532
1532
 
1533
- return Boolean((_this$props$initialVa = this.props.initialValues) === null || _this$props$initialVa === void 0 ? void 0 : _this$props$initialVa.paramId);
1533
+ return Boolean((_this$props$initialVa = this.props.initialValues) === null || _this$props$initialVa === void 0 ? void 0 : _this$props$initialVa.$paramId);
1534
1534
  }
1535
1535
  }, {
1536
1536
  key: "render",
@@ -2026,7 +2026,7 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
2026
2026
  get: function get() {
2027
2027
  var _this$props$initialVa2;
2028
2028
 
2029
- return Boolean((_this$props$initialVa2 = this.props.initialValues) === null || _this$props$initialVa2 === void 0 ? void 0 : _this$props$initialVa2.paramId);
2029
+ return Boolean((_this$props$initialVa2 = this.props.initialValues) === null || _this$props$initialVa2 === void 0 ? void 0 : _this$props$initialVa2.$paramId);
2030
2030
  }
2031
2031
  }, {
2032
2032
  key: "render",
@@ -2036,7 +2036,7 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
2036
2036
  return /*#__PURE__*/React.createElement(Modal, {
2037
2037
  key: String(this.state.visible),
2038
2038
  width: 640,
2039
- title: ((_this$props$initialVa3 = this.props.initialValues) === null || _this$props$initialVa3 === void 0 ? void 0 : _this$props$initialVa3.paramId) ? '编辑参数组' : '新增参数组',
2039
+ title: ((_this$props$initialVa3 = this.props.initialValues) === null || _this$props$initialVa3 === void 0 ? void 0 : _this$props$initialVa3.$paramId) ? '编辑参数组' : '新增参数组',
2040
2040
  closable: false,
2041
2041
  visible: this.state.visible,
2042
2042
  footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
@@ -2165,7 +2165,7 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2165
2165
 
2166
2166
  if (String(it.$paramId) === String(parentId)) {
2167
2167
  return _objectSpread2(_objectSpread2({}, it), {}, {
2168
- children: (it.children || []).filter(filter).concat(_this2.props.targetParams.map(function ($paramId) {
2168
+ children: (it.children || []).filter(filter).map(map).concat(_this2.props.targetParams.map(function ($paramId) {
2169
2169
  return _objectSpread2(_objectSpread2({}, _this2.state.paramsMap[$paramId]), {}, {
2170
2170
  parentId: it.$paramId
2171
2171
  });
@@ -2192,7 +2192,10 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2192
2192
  return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
2193
2193
  parentOptions: _this3.state.options
2194
2194
  }));
2195
- }
2195
+ },
2196
+ validator: validatorCvt(function (val) {
2197
+ return emptyValidator(val);
2198
+ })
2196
2199
  }];
2197
2200
  return items;
2198
2201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.17",
3
+ "version": "0.1.20",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",