ywana-core8 0.0.289 → 0.0.292
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/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +19 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +0 -1
- package/src/site/site.css +19 -1
- package/src/site/site.js +5 -4
- package/src/site/site.test.js +15 -7
package/dist/index.umd.js
CHANGED
@@ -3129,7 +3129,8 @@
|
|
3129
3129
|
var children = _ref5.children,
|
3130
3130
|
min = _ref5.min;
|
3131
3131
|
var context = React.useContext(SiteContext);
|
3132
|
-
var
|
3132
|
+
var page = context.page,
|
3133
|
+
sideNav = context.sideNav,
|
3133
3134
|
setSideNav = context.setSideNav,
|
3134
3135
|
showNav = context.showNav;
|
3135
3136
|
React.useEffect(function () {
|
@@ -3167,13 +3168,16 @@
|
|
3167
3168
|
}, /*#__PURE__*/React__default["default"].createElement("main", null, Object.keys(sections).map(function (title) {
|
3168
3169
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
3169
3170
|
key: title
|
3170
|
-
},
|
3171
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
3172
|
+
className: "section-title"
|
3173
|
+
}, title), sections[title].map(function (_ref6) {
|
3171
3174
|
var id = _ref6.id,
|
3172
3175
|
_ref6$icon = _ref6.icon,
|
3173
3176
|
icon = _ref6$icon === void 0 ? 'info' : _ref6$icon,
|
3174
3177
|
title = _ref6.title;
|
3178
|
+
var styleItem = id === page ? 'selected' : '';
|
3175
3179
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3176
|
-
className: "site-menu-item",
|
3180
|
+
className: "site-menu-item " + styleItem,
|
3177
3181
|
key: id,
|
3178
3182
|
onClick: function onClick() {
|
3179
3183
|
return _goto(id);
|
@@ -3182,7 +3186,6 @@
|
|
3182
3186
|
key: id,
|
3183
3187
|
icon: icon,
|
3184
3188
|
clickable: true,
|
3185
|
-
checked: id === context.page,
|
3186
3189
|
action: function action() {
|
3187
3190
|
return _goto(id);
|
3188
3191
|
}
|
@@ -5513,7 +5516,6 @@
|
|
5513
5516
|
var option = options.find(function (option) {
|
5514
5517
|
return option.value === groupName;
|
5515
5518
|
});
|
5516
|
-
console.log(groupName, options, option);
|
5517
5519
|
return option ? option.label : groupName;
|
5518
5520
|
} else {
|
5519
5521
|
return groupName;
|