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.cjs
CHANGED
@@ -1482,6 +1482,7 @@ var DataTable = function DataTable(props) {
|
|
1482
1482
|
colspan = _ref2[1];
|
1483
1483
|
|
1484
1484
|
return /*#__PURE__*/React__default["default"].createElement("th", {
|
1485
|
+
key: id,
|
1485
1486
|
rowSpan: rowspan,
|
1486
1487
|
colSpan: colspan
|
1487
1488
|
}, id === "checked" ? /*#__PURE__*/React__default["default"].createElement(CheckBox, {
|
@@ -2426,7 +2427,8 @@ var Planner = function Planner(_ref) {
|
|
2426
2427
|
lanes = _ref$lanes === void 0 ? [] : _ref$lanes,
|
2427
2428
|
_ref$navigation = _ref.navigation,
|
2428
2429
|
navigation = _ref$navigation === void 0 ? true : _ref$navigation,
|
2429
|
-
onSelectCell = _ref.onSelectCell
|
2430
|
+
onSelectCell = _ref.onSelectCell,
|
2431
|
+
focusEvent = _ref.focusEvent;
|
2430
2432
|
|
2431
2433
|
var _useState = React.useState("month"),
|
2432
2434
|
dateRange = _useState[0],
|
@@ -2440,6 +2442,14 @@ var Planner = function Planner(_ref) {
|
|
2440
2442
|
to = _useState3[0],
|
2441
2443
|
setTo = _useState3[1];
|
2442
2444
|
|
2445
|
+
React.useEffect(function () {
|
2446
|
+
var element = document.getElementById(focusEvent);
|
2447
|
+
if (element) element.scrollIntoView({
|
2448
|
+
behavior: 'smooth',
|
2449
|
+
block: 'start',
|
2450
|
+
inline: 'center'
|
2451
|
+
});
|
2452
|
+
}, [focusEvent]);
|
2443
2453
|
React.useEffect(function () {
|
2444
2454
|
var today = moment__default["default"]();
|
2445
2455
|
var from_date = today.startOf(dateRange).format("YYYY-MM-DD");
|