ywana-core8 0.0.288 → 0.0.289
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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +1 -1
- 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");
|