ywana-core8 0.0.288 → 0.0.291
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 +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +15 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +15 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +0 -1
- package/src/html/table.js +1 -1
- package/src/site/site.css +12 -1
- package/src/site/site.js +4 -4
- package/src/site/site.test.js +15 -7
- package/src/widgets/planner/Planner.js +10 -1
- package/src/widgets/planner/Planner.test.js +16 -7
package/dist/index.umd.js
CHANGED
@@ -1477,6 +1477,7 @@
|
|
1477
1477
|
colspan = _ref2[1];
|
1478
1478
|
|
1479
1479
|
return /*#__PURE__*/React__default["default"].createElement("th", {
|
1480
|
+
key: id,
|
1480
1481
|
rowSpan: rowspan,
|
1481
1482
|
colSpan: colspan
|
1482
1483
|
}, id === "checked" ? /*#__PURE__*/React__default["default"].createElement(CheckBox, {
|
@@ -2421,7 +2422,8 @@
|
|
2421
2422
|
lanes = _ref$lanes === void 0 ? [] : _ref$lanes,
|
2422
2423
|
_ref$navigation = _ref.navigation,
|
2423
2424
|
navigation = _ref$navigation === void 0 ? true : _ref$navigation,
|
2424
|
-
onSelectCell = _ref.onSelectCell
|
2425
|
+
onSelectCell = _ref.onSelectCell,
|
2426
|
+
focusEvent = _ref.focusEvent;
|
2425
2427
|
|
2426
2428
|
var _useState = React.useState("month"),
|
2427
2429
|
dateRange = _useState[0],
|
@@ -2435,6 +2437,14 @@
|
|
2435
2437
|
to = _useState3[0],
|
2436
2438
|
setTo = _useState3[1];
|
2437
2439
|
|
2440
|
+
React.useEffect(function () {
|
2441
|
+
var element = document.getElementById(focusEvent);
|
2442
|
+
if (element) element.scrollIntoView({
|
2443
|
+
behavior: 'smooth',
|
2444
|
+
block: 'start',
|
2445
|
+
inline: 'center'
|
2446
|
+
});
|
2447
|
+
}, [focusEvent]);
|
2438
2448
|
React.useEffect(function () {
|
2439
2449
|
var today = moment__default["default"]();
|
2440
2450
|
var from_date = today.startOf(dateRange).format("YYYY-MM-DD");
|
@@ -3119,7 +3129,8 @@
|
|
3119
3129
|
var children = _ref5.children,
|
3120
3130
|
min = _ref5.min;
|
3121
3131
|
var context = React.useContext(SiteContext);
|
3122
|
-
var
|
3132
|
+
var page = context.page,
|
3133
|
+
sideNav = context.sideNav,
|
3123
3134
|
setSideNav = context.setSideNav,
|
3124
3135
|
showNav = context.showNav;
|
3125
3136
|
React.useEffect(function () {
|
@@ -3162,8 +3173,9 @@
|
|
3162
3173
|
_ref6$icon = _ref6.icon,
|
3163
3174
|
icon = _ref6$icon === void 0 ? 'info' : _ref6$icon,
|
3164
3175
|
title = _ref6.title;
|
3176
|
+
var styleItem = id === page ? 'selected' : '';
|
3165
3177
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3166
|
-
className: "site-menu-item",
|
3178
|
+
className: "site-menu-item " + styleItem,
|
3167
3179
|
key: id,
|
3168
3180
|
onClick: function onClick() {
|
3169
3181
|
return _goto(id);
|
@@ -3172,7 +3184,6 @@
|
|
3172
3184
|
key: id,
|
3173
3185
|
icon: icon,
|
3174
3186
|
clickable: true,
|
3175
|
-
checked: id === context.page,
|
3176
3187
|
action: function action() {
|
3177
3188
|
return _goto(id);
|
3178
3189
|
}
|
@@ -5503,7 +5514,6 @@
|
|
5503
5514
|
var option = options.find(function (option) {
|
5504
5515
|
return option.value === groupName;
|
5505
5516
|
});
|
5506
|
-
console.log(groupName, options, option);
|
5507
5517
|
return option ? option.label : groupName;
|
5508
5518
|
} else {
|
5509
5519
|
return groupName;
|