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.
@@ -1474,6 +1474,7 @@ var DataTable = function DataTable(props) {
1474
1474
  colspan = _ref2[1];
1475
1475
 
1476
1476
  return /*#__PURE__*/React.createElement("th", {
1477
+ key: id,
1477
1478
  rowSpan: rowspan,
1478
1479
  colSpan: colspan
1479
1480
  }, id === "checked" ? /*#__PURE__*/React.createElement(CheckBox, {
@@ -2418,7 +2419,8 @@ var Planner = function Planner(_ref) {
2418
2419
  lanes = _ref$lanes === void 0 ? [] : _ref$lanes,
2419
2420
  _ref$navigation = _ref.navigation,
2420
2421
  navigation = _ref$navigation === void 0 ? true : _ref$navigation,
2421
- onSelectCell = _ref.onSelectCell;
2422
+ onSelectCell = _ref.onSelectCell,
2423
+ focusEvent = _ref.focusEvent;
2422
2424
 
2423
2425
  var _useState = useState("month"),
2424
2426
  dateRange = _useState[0],
@@ -2432,6 +2434,14 @@ var Planner = function Planner(_ref) {
2432
2434
  to = _useState3[0],
2433
2435
  setTo = _useState3[1];
2434
2436
 
2437
+ useEffect(function () {
2438
+ var element = document.getElementById(focusEvent);
2439
+ if (element) element.scrollIntoView({
2440
+ behavior: 'smooth',
2441
+ block: 'start',
2442
+ inline: 'center'
2443
+ });
2444
+ }, [focusEvent]);
2435
2445
  useEffect(function () {
2436
2446
  var today = moment();
2437
2447
  var from_date = today.startOf(dateRange).format("YYYY-MM-DD");