@steroidsjs/bootstrap 2.1.10 → 2.1.12
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.
|
@@ -40,7 +40,7 @@ function RadioListFieldView(props) {
|
|
|
40
40
|
var bem = hooks_1.useBem('RadioListFieldView');
|
|
41
41
|
var prefix = useUniqueId_1["default"]('radio');
|
|
42
42
|
return (React.createElement("div", { className: bem.block() }, props.items.map(function (item, index) { return (React.createElement("div", { key: typeof item.id !== 'boolean' ? item.id : (item.id ? 'true' : 'false'), className: 'custom-control custom-radio' },
|
|
43
|
-
React.createElement("input", __assign({}, props.inputProps, { id: prefix + "_" + item.id, className: bem(bem.element('input'), 'custom-control-input', !!props.errors && 'is-invalid'), checked: props.selectedIds.includes(item.id), disabled: props.disabled, onChange: function (e) {
|
|
43
|
+
React.createElement("input", __assign({}, props.inputProps, { id: prefix + "_" + item.id, className: bem(bem.element('input'), 'custom-control-input', !!props.errors && 'is-invalid'), checked: props.selectedIds.includes(item.id), disabled: props.disabled || item.disabled, onChange: function (e) {
|
|
44
44
|
props.inputProps.onChange(e.target.value);
|
|
45
45
|
props.onItemSelect(item.id);
|
|
46
46
|
} })),
|
package/list/Grid/GridView.js
CHANGED
|
@@ -52,7 +52,10 @@ function GridView(props) {
|
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
var fields = keyBy_1["default"](props.searchForm.fields.map(function (column) { return isString_1["default"](column) ? { attribute: column } : column; }), 'attribute');
|
|
55
|
-
return (React.createElement("tr", null, props.columns.map(function (column, columnIndex) {
|
|
55
|
+
return (React.createElement("tr", null, props.columns.map(function (column, columnIndex) {
|
|
56
|
+
var _a;
|
|
57
|
+
return (React.createElement("td", { key: columnIndex, className: column.headerClassName }, column.attribute && fields[column.attribute] && (React.createElement(Field_1["default"], __assign({ layout: 'inline', size: (_a = props.searchForm) === null || _a === void 0 ? void 0 : _a.size }, fields[column.attribute])))));
|
|
58
|
+
})));
|
|
56
59
|
}, [props.searchForm, props.columns]);
|
|
57
60
|
var renderSortButton = react_1.useCallback(function (attribute, direction) {
|
|
58
61
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
21
21
|
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
22
|
-
"@steroidsjs/core": "^2.2.
|
|
22
|
+
"@steroidsjs/core": "^2.2.39",
|
|
23
23
|
"bootstrap": "^4.5.2",
|
|
24
24
|
"lodash": "^4.17.20",
|
|
25
25
|
"lodash-es": "^4.17.20",
|