@steroidsjs/core 3.0.33 → 3.0.34
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
|
@@ -20743,6 +20743,14 @@
|
|
|
20743
20743
|
"type": "string",
|
|
20744
20744
|
"example": null
|
|
20745
20745
|
},
|
|
20746
|
+
{
|
|
20747
|
+
"name": "removeIcon",
|
|
20748
|
+
"decorators": [],
|
|
20749
|
+
"description": "",
|
|
20750
|
+
"required": false,
|
|
20751
|
+
"type": "string",
|
|
20752
|
+
"example": null
|
|
20753
|
+
},
|
|
20746
20754
|
{
|
|
20747
20755
|
"name": "required",
|
|
20748
20756
|
"decorators": [],
|
|
@@ -21008,6 +21016,15 @@
|
|
|
21008
21016
|
"example": null,
|
|
21009
21017
|
"defaultValue": null
|
|
21010
21018
|
},
|
|
21019
|
+
{
|
|
21020
|
+
"name": "removeIcon",
|
|
21021
|
+
"decorators": [],
|
|
21022
|
+
"description": "Название иконки, которая отобразится для удаления группы с полями",
|
|
21023
|
+
"required": false,
|
|
21024
|
+
"type": "string",
|
|
21025
|
+
"example": "'remove'",
|
|
21026
|
+
"defaultValue": null
|
|
21027
|
+
},
|
|
21011
21028
|
{
|
|
21012
21029
|
"name": "required",
|
|
21013
21030
|
"decorators": [],
|
package/en.json
CHANGED
|
@@ -1004,6 +1004,7 @@
|
|
|
1004
1004
|
"Разделитель для даты и времени, не влияет на отображение": "",
|
|
1005
1005
|
"Начальные элементы списка": "",
|
|
1006
1006
|
"Значения для полей при нажатии кнопки 'Добавить'": "",
|
|
1007
|
+
"Название иконки, которая отобразится для удаления группы с полями": "",
|
|
1007
1008
|
"Размер компонента и вложенных полей": "",
|
|
1008
1009
|
"Текст, который отобразится при загрузке файла": "",
|
|
1009
1010
|
"Параметры для кнопки отправки формы": "",
|
package/package.json
CHANGED
package/ui/content/Menu/Menu.js
CHANGED
|
@@ -7,7 +7,7 @@ var react_1 = require("react");
|
|
|
7
7
|
var useComponents_1 = __importDefault(require("../../../hooks/useComponents"));
|
|
8
8
|
function Menu(props) {
|
|
9
9
|
var components = (0, useComponents_1["default"])();
|
|
10
|
-
var MenuItemView = components.ui.getView(
|
|
10
|
+
var MenuItemView = props.itemView || components.ui.getView('content.MenuItemView');
|
|
11
11
|
var viewProps = (0, react_1.useMemo)(function () { return ({
|
|
12
12
|
items: props.items,
|
|
13
13
|
dropDownProps: props.dropDownProps,
|
|
@@ -80,6 +80,11 @@ export interface IFieldListProps extends IFieldWrapperInputProps, IUiComponent {
|
|
|
80
80
|
* @example true
|
|
81
81
|
*/
|
|
82
82
|
showRemove?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Название иконки, которая отобразится для удаления группы с полями
|
|
85
|
+
* @example 'remove'
|
|
86
|
+
*/
|
|
87
|
+
removeIcon?: string;
|
|
83
88
|
/**
|
|
84
89
|
* Дополнительный CSS-класс для таблицы
|
|
85
90
|
*/
|
|
@@ -136,6 +141,7 @@ export interface IFieldListItemViewProps extends IFieldWrapperOutputProps {
|
|
|
136
141
|
required?: boolean;
|
|
137
142
|
rowIndex: number;
|
|
138
143
|
showRemove: boolean;
|
|
144
|
+
removeIcon?: string;
|
|
139
145
|
onAdd?: (rowsCount?: number) => void;
|
|
140
146
|
}
|
|
141
147
|
declare const _default: import("../../form/Field/fieldWrapper").FieldWrapperComponent<IFieldListProps>;
|
|
@@ -135,7 +135,7 @@ function FieldList(props) {
|
|
|
135
135
|
onAdd: onAdd
|
|
136
136
|
}); }, [items, onAdd, props.className, props.disabled, props.required, props.showAdd, props.showRemove, props.size, props.tableClassName]);
|
|
137
137
|
var viewProps = (0, react_1.useMemo)(function () { return (__assign(__assign(__assign({}, commonProps), props.viewProps), { forwardedRef: nodeRef, hasAlternatingColors: props.hasAlternatingColors, style: props.style, children: props.children })); }, [commonProps, props.children, props.hasAlternatingColors, props.style, props.viewProps]);
|
|
138
|
-
var itemViewProps = (0, react_1.useMemo)(function () { return (__assign(__assign(__assign({}, commonProps), props.itemViewProps), { onRemove: onRemove })); }, [commonProps, onRemove, props.itemViewProps]);
|
|
138
|
+
var itemViewProps = (0, react_1.useMemo)(function () { return (__assign(__assign(__assign({}, commonProps), props.itemViewProps), { onRemove: onRemove, removeIcon: props.removeIcon })); }, [commonProps, onRemove, props.itemViewProps, props.removeIcon]);
|
|
139
139
|
var FieldListView = props.view || components.ui.getView('form.FieldListView');
|
|
140
140
|
var FieldListItemView = props.itemView || components.ui.getView('form.FieldListItemView');
|
|
141
141
|
return (react_1["default"].createElement(Form_1.FormContext.Provider, { value: contextValue },
|