@steroidsjs/bootstrap 3.0.11 → 3.0.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.
|
@@ -42,7 +42,7 @@ function CalendarSystemView(props) {
|
|
|
42
42
|
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: props.style },
|
|
43
43
|
react_1["default"].createElement("aside", { className: bem.element('aside') },
|
|
44
44
|
react_1["default"].createElement(AsideHeader_1["default"], { openCreateModal: props.openCreateModal, className: bem.element('aside-header') }),
|
|
45
|
-
react_1["default"].createElement(Calendar_1["default"], { showFooter: false, onMonthChange: props.onCalendarChangedMonth }),
|
|
45
|
+
react_1["default"].createElement(Calendar_1["default"], __assign({ showFooter: false, onTodayButtonClick: props.onCalendarChangedMonth, onMonthChange: props.onCalendarChangedMonth }, props.asideCalendarProps)),
|
|
46
46
|
react_1["default"].createElement(AsideCalendars_1["default"], { eventGroups: props.eventGroups, eventGroupsTitle: props.eventGroupsTitle, onChangeEventGroupsIds: props.onChangeEventGroupsIds, openCreateEventGroupModal: props.openCreateEventGroupModal })),
|
|
47
47
|
react_1["default"].createElement("div", { className: bem.element('content') },
|
|
48
48
|
react_1["default"].createElement(ContentHeader_1["default"], { dateToDisplay: props.dateToDisplay, handleCalendarTypeChange: props.handleCalendarTypeChange, onClickControl: props.onClickControl }),
|
package/list/Grid/GridView.js
CHANGED
|
@@ -73,6 +73,7 @@ function GridView(props) {
|
|
|
73
73
|
} }));
|
|
74
74
|
}, [bem, props]);
|
|
75
75
|
var emptyContent = (0, react_1.useMemo)(function () { return props.renderEmpty(); }, [props]);
|
|
76
|
+
var loading = (0, react_1.useMemo)(function () { return props.renderLoading(); }, [props]);
|
|
76
77
|
return props.renderList(React.createElement("div", { className: bem(bem.block({
|
|
77
78
|
loading: props.isLoading || ((_a = props.list) === null || _a === void 0 ? void 0 : _a.isLoading),
|
|
78
79
|
size: props.size,
|
|
@@ -93,8 +94,8 @@ function GridView(props) {
|
|
|
93
94
|
props.items && props.items.map(function (item, rowIndex) { return (React.createElement("tr", { key: item[props.primaryKey] || rowIndex }, props.columns.map(function (column, columnIndex) { return (React.createElement("td", { key: columnIndex, className: bem(bem.element('column', {
|
|
94
95
|
isDiagram: !!column.diagram
|
|
95
96
|
}), column.className), "data-label": (0, isString_1["default"])(column.label) ? column.label : null }, props.renderValue(item, column))); }))); }),
|
|
96
|
-
emptyContent && (React.createElement("tr", null,
|
|
97
|
-
React.createElement("td", { colSpan: props.columns.length }, emptyContent))))),
|
|
97
|
+
(loading || emptyContent) && (React.createElement("tr", null,
|
|
98
|
+
React.createElement("td", { colSpan: props.columns.length }, loading || emptyContent))))),
|
|
98
99
|
props.renderPagination()));
|
|
99
100
|
}
|
|
100
101
|
exports["default"] = GridView;
|
package/list/List/ListView.js
CHANGED
|
@@ -44,6 +44,6 @@ function ListView(props) {
|
|
|
44
44
|
renderPagination(['top', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['top', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['top', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
45
45
|
React.createElement("div", { className: bem(bem.element('content'), props.contentClassName) }, props.content),
|
|
46
46
|
renderPagination(['bottom', 'both'].includes(props.paginationPosition) && props.renderPagination(), ['bottom', 'both'].includes(props.paginationSizePosition) && props.renderPaginationSize(), ['bottom', 'both'].includes(props.layoutNamesPosition) && props.renderLayoutNames()),
|
|
47
|
-
props.renderEmpty()));
|
|
47
|
+
props.renderLoading() || props.renderEmpty()));
|
|
48
48
|
}
|
|
49
49
|
exports["default"] = ListView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
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.17",
|
|
39
39
|
"@steroidsjs/eslint-config": "^2.1.6",
|
|
40
40
|
"@types/enzyme": "^3.10.8",
|
|
41
41
|
"@types/googlemaps": "^3.43.3",
|