@steroidsjs/core 3.0.0-beta.109 → 3.0.0-beta.110

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.0-beta.109",
3
+ "version": "3.0.0-beta.110",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -44,6 +44,10 @@ export interface ICheckboxListFieldProps extends IFieldWrapperInputProps, Omit<I
44
44
  * ]
45
45
  */
46
46
  items: CheckboxFieldListItems;
47
+ /**
48
+ * Кастомная вьюшка для элемента
49
+ */
50
+ itemView?: CustomView;
47
51
  [key: string]: any;
48
52
  }
49
53
  export interface ICheckboxListFieldViewProps extends IFieldWrapperOutputProps {
@@ -79,7 +79,7 @@ function CheckboxListField(props) {
79
79
  onReset();
80
80
  }
81
81
  }, [onReset, prevInputValue, props.input.value, selectedIds.length]);
82
- var CheckboxFieldView = components.ui.getView('form.CheckboxFieldView');
82
+ var CheckboxFieldView = props.itemView || components.ui.getView('form.CheckboxFieldView');
83
83
  var renderCheckbox = function (checkboxProps) { return (React.createElement(CheckboxFieldView, __assign({}, checkboxProps))); };
84
84
  return components.ui.renderView(props.view || 'form.CheckboxListFieldView', __assign(__assign({}, props), { items: items, inputProps: inputProps, onItemSelect: onItemSelect, selectedIds: selectedIds, renderCheckbox: renderCheckbox }));
85
85
  }