@steroidsjs/core 3.0.32 → 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 +25 -0
- package/en.json +1 -0
- package/package.json +1 -1
- package/ui/content/Menu/Menu.d.ts +1 -0
- package/ui/content/Menu/Menu.js +1 -1
- package/ui/form/CheckboxTreeField/CheckboxTreeField.d.ts +1 -0
- package/ui/form/CheckboxTreeField/CheckboxTreeField.js +4 -3
- package/ui/form/FieldList/FieldList.d.ts +6 -0
- package/ui/form/FieldList/FieldList.js +1 -1
package/docs-autogen-result.json
CHANGED
|
@@ -16290,6 +16290,14 @@
|
|
|
16290
16290
|
"type": "IInputParams",
|
|
16291
16291
|
"example": null
|
|
16292
16292
|
},
|
|
16293
|
+
{
|
|
16294
|
+
"name": "itemProps",
|
|
16295
|
+
"decorators": [],
|
|
16296
|
+
"description": "",
|
|
16297
|
+
"required": true,
|
|
16298
|
+
"type": "any",
|
|
16299
|
+
"example": null
|
|
16300
|
+
},
|
|
16293
16301
|
{
|
|
16294
16302
|
"name": "itemView",
|
|
16295
16303
|
"decorators": [],
|
|
@@ -20735,6 +20743,14 @@
|
|
|
20735
20743
|
"type": "string",
|
|
20736
20744
|
"example": null
|
|
20737
20745
|
},
|
|
20746
|
+
{
|
|
20747
|
+
"name": "removeIcon",
|
|
20748
|
+
"decorators": [],
|
|
20749
|
+
"description": "",
|
|
20750
|
+
"required": false,
|
|
20751
|
+
"type": "string",
|
|
20752
|
+
"example": null
|
|
20753
|
+
},
|
|
20738
20754
|
{
|
|
20739
20755
|
"name": "required",
|
|
20740
20756
|
"decorators": [],
|
|
@@ -21000,6 +21016,15 @@
|
|
|
21000
21016
|
"example": null,
|
|
21001
21017
|
"defaultValue": null
|
|
21002
21018
|
},
|
|
21019
|
+
{
|
|
21020
|
+
"name": "removeIcon",
|
|
21021
|
+
"decorators": [],
|
|
21022
|
+
"description": "Название иконки, которая отобразится для удаления группы с полями",
|
|
21023
|
+
"required": false,
|
|
21024
|
+
"type": "string",
|
|
21025
|
+
"example": "'remove'",
|
|
21026
|
+
"defaultValue": null
|
|
21027
|
+
},
|
|
21003
21028
|
{
|
|
21004
21029
|
"name": "required",
|
|
21005
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,
|
|
@@ -71,6 +71,7 @@ export interface ICheckboxTreeFieldViewProps extends IFieldWrapperOutputProps, P
|
|
|
71
71
|
size?: Size;
|
|
72
72
|
hasOnlyLeafCheckboxes?: boolean;
|
|
73
73
|
itemView: CustomView;
|
|
74
|
+
itemProps: CustomViewProps;
|
|
74
75
|
}
|
|
75
76
|
export declare const getNestedItemsIds: (item: any, groupAttribute: any, hasOnlyLeafCheckboxes?: boolean) => any[];
|
|
76
77
|
declare const _default: import("../../../ui/form/Field/fieldWrapper").FieldWrapperComponent<ICheckboxTreeFieldProps>;
|
|
@@ -131,9 +131,10 @@ function CheckboxTreeField(props) {
|
|
|
131
131
|
levelPadding: props.levelPadding,
|
|
132
132
|
hasOnlyLeafCheckboxes: props.hasOnlyLeafCheckboxes,
|
|
133
133
|
hasIconExpandOnly: props.hasIconExpandOnly,
|
|
134
|
-
itemView: TreeItemView
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
itemView: TreeItemView,
|
|
135
|
+
itemProps: props.itemProps
|
|
136
|
+
}); }, [treeItems, onItemSelect, selectedIds, renderCheckbox, props.size, props.levelPadding,
|
|
137
|
+
props.hasOnlyLeafCheckboxes, props.hasIconExpandOnly, props.itemProps, TreeItemView]);
|
|
137
138
|
return components.ui.renderView(props.view || 'form.CheckboxTreeFieldView', viewProps);
|
|
138
139
|
}
|
|
139
140
|
CheckboxTreeField.defaultProps = {
|
|
@@ -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 },
|