@steroidsjs/core 3.0.36 → 3.0.37
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/docs-autogen-result.json
CHANGED
|
@@ -19041,6 +19041,15 @@
|
|
|
19041
19041
|
"type": "React.ReactNode | {}",
|
|
19042
19042
|
"example": "MyCustomView",
|
|
19043
19043
|
"defaultValue": null
|
|
19044
|
+
},
|
|
19045
|
+
{
|
|
19046
|
+
"name": "viewProps",
|
|
19047
|
+
"decorators": [],
|
|
19048
|
+
"description": "Свойства для компонента отображения",
|
|
19049
|
+
"required": false,
|
|
19050
|
+
"type": "{}",
|
|
19051
|
+
"example": "{\n customHandler: () => {...}\n}",
|
|
19052
|
+
"defaultValue": null
|
|
19044
19053
|
}
|
|
19045
19054
|
],
|
|
19046
19055
|
"methods": [
|
|
@@ -19503,6 +19512,14 @@
|
|
|
19503
19512
|
"required": false,
|
|
19504
19513
|
"type": "React.ReactNode | {}",
|
|
19505
19514
|
"example": "MyCustomView"
|
|
19515
|
+
},
|
|
19516
|
+
{
|
|
19517
|
+
"name": "viewProps",
|
|
19518
|
+
"decorators": [],
|
|
19519
|
+
"description": "Свойства для компонента отображения",
|
|
19520
|
+
"required": false,
|
|
19521
|
+
"type": "{}",
|
|
19522
|
+
"example": "{\n customHandler: () => {...}\n}"
|
|
19506
19523
|
}
|
|
19507
19524
|
],
|
|
19508
19525
|
"methods": [
|
package/package.json
CHANGED
|
@@ -130,6 +130,16 @@ export interface IDropDownFieldProps extends IFieldWrapperInputProps, Omit<IData
|
|
|
130
130
|
* Кастомная вьюшка для элемента
|
|
131
131
|
*/
|
|
132
132
|
itemView?: CustomView;
|
|
133
|
+
/**
|
|
134
|
+
* Свойства для компонента отображения
|
|
135
|
+
* @example
|
|
136
|
+
* {
|
|
137
|
+
* customHandler: () => {...}
|
|
138
|
+
* }
|
|
139
|
+
*/
|
|
140
|
+
viewProps?: {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
};
|
|
133
143
|
/**
|
|
134
144
|
* Callback-функция, которая вызывается при выборе элемента DropDown
|
|
135
145
|
*/
|
|
@@ -232,6 +232,7 @@ function DropDownField(props) {
|
|
|
232
232
|
isSearchAutoFocus: props.isSearchAutoFocus,
|
|
233
233
|
itemToSelectAll: normalizedItemToSelectAll,
|
|
234
234
|
className: props.className,
|
|
235
|
+
viewProps: props.viewProps,
|
|
235
236
|
style: props.style,
|
|
236
237
|
size: props.size,
|
|
237
238
|
color: props.color,
|
|
@@ -241,10 +242,9 @@ function DropDownField(props) {
|
|
|
241
242
|
showEllipses: props.showEllipses,
|
|
242
243
|
errors: props.errors,
|
|
243
244
|
disabled: props.disabled
|
|
244
|
-
}); }, [isAutoComplete, items, hoveredId, selectedIds, searchInputProps, isOpened, isLoading, onOpen, selectedItems,
|
|
245
|
-
|
|
246
|
-
props.
|
|
247
|
-
props.errors, props.disabled, normalizedItemToSelectAll]);
|
|
245
|
+
}); }, [isAutoComplete, items, hoveredId, selectedIds, searchInputProps, isOpened, isLoading, onOpen, selectedItems, onReset, onClose,
|
|
246
|
+
renderItem, onItemRemove, hasGroup, props.multiple, props.isSearchAutoFocus, props.className, props.viewProps, props.style, props.size,
|
|
247
|
+
props.color, props.outline, props.placeholder, props.showReset, props.showEllipses, props.errors, props.disabled, normalizedItemToSelectAll]);
|
|
248
248
|
return components.ui.renderView(props.view || 'form.DropDownFieldView', viewProps);
|
|
249
249
|
}
|
|
250
250
|
DropDownField.defaultProps = {
|