@steroidsjs/bootstrap 3.0.22 → 3.0.24
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.
|
@@ -47,5 +47,5 @@ exports["default"] = React.memo(function (props) {
|
|
|
47
47
|
e.preventDefault();
|
|
48
48
|
props.onRemove(props.rowIndex);
|
|
49
49
|
} },
|
|
50
|
-
React.createElement(content_1.Icon, { name: 'circle_cross_18x18' })))))));
|
|
50
|
+
React.createElement(content_1.Icon, { name: props.removeIcon || 'circle_cross_18x18' })))))));
|
|
51
51
|
});
|
package/list/Grid/GridView.js
CHANGED
|
@@ -72,6 +72,7 @@ function GridView(props) {
|
|
|
72
72
|
props.onSort(!isActive ? sortKey : null);
|
|
73
73
|
} }));
|
|
74
74
|
}, [bem, props]);
|
|
75
|
+
var infiniteScroll = (0, react_1.useMemo)(function () { return props.renderInfiniteScroll(); }, [props]);
|
|
75
76
|
var emptyContent = (0, react_1.useMemo)(function () { return props.renderEmpty(); }, [props]);
|
|
76
77
|
var loading = (0, react_1.useMemo)(function () { return props.renderLoading(); }, [props]);
|
|
77
78
|
return props.renderList(React.createElement("div", { className: bem(bem.block({
|
|
@@ -95,7 +96,9 @@ function GridView(props) {
|
|
|
95
96
|
isDiagram: !!column.diagram
|
|
96
97
|
}), column.className), "data-label": (0, isString_1["default"])(column.label) ? column.label : null }, props.renderValue(item, column))); }))); }),
|
|
97
98
|
(loading || emptyContent) && (React.createElement("tr", null,
|
|
98
|
-
React.createElement("td", { colSpan: props.columns.length }, loading || emptyContent)))
|
|
99
|
+
React.createElement("td", { colSpan: props.columns.length }, loading || emptyContent))),
|
|
100
|
+
!loading && (React.createElement("tr", { className: bem.element('infinite-scroll') },
|
|
101
|
+
React.createElement("td", null, infiniteScroll))))),
|
|
99
102
|
props.renderPagination()));
|
|
100
103
|
}
|
|
101
104
|
exports["default"] = GridView;
|
package/list/Grid/GridView.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-use": "^17.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@steroidsjs/core": "3.0.
|
|
38
|
+
"@steroidsjs/core": "3.0.39",
|
|
39
39
|
"@steroidsjs/eslint-config": "^2.1.6",
|
|
40
40
|
"@types/enzyme": "^3.10.8",
|
|
41
41
|
"@types/googlemaps": "^3.43.3",
|