ywana-core8 0.0.504 → 0.0.505
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 +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/planner/Planner.js +5 -5
package/dist/index.umd.js
CHANGED
@@ -2559,17 +2559,23 @@
|
|
2559
2559
|
navigation = _ref$navigation === void 0 ? true : _ref$navigation,
|
2560
2560
|
onSelectCell = _ref.onSelectCell,
|
2561
2561
|
focusEvent = _ref.focusEvent,
|
2562
|
+
_ref$config = _ref.config,
|
2563
|
+
config = _ref$config === void 0 ? {
|
2564
|
+
range: "year",
|
2565
|
+
from: "2022-01-01",
|
2566
|
+
to: "2022-12-30"
|
2567
|
+
} : _ref$config,
|
2562
2568
|
onChange = _ref.onChange;
|
2563
2569
|
|
2564
|
-
var _useState = React.useState(
|
2570
|
+
var _useState = React.useState(config.range),
|
2565
2571
|
dateRange = _useState[0],
|
2566
2572
|
setDateRange = _useState[1];
|
2567
2573
|
|
2568
|
-
var _useState2 = React.useState(
|
2574
|
+
var _useState2 = React.useState(config.from),
|
2569
2575
|
from = _useState2[0],
|
2570
2576
|
setFrom = _useState2[1];
|
2571
2577
|
|
2572
|
-
var _useState3 = React.useState(
|
2578
|
+
var _useState3 = React.useState(config.to),
|
2573
2579
|
to = _useState3[0],
|
2574
2580
|
setTo = _useState3[1];
|
2575
2581
|
|
@@ -2577,7 +2583,7 @@
|
|
2577
2583
|
var element = document.getElementById(focusEvent);
|
2578
2584
|
if (element) element.scrollIntoView({
|
2579
2585
|
behavior: 'smooth',
|
2580
|
-
block: '
|
2586
|
+
block: 'center',
|
2581
2587
|
inline: 'center'
|
2582
2588
|
});
|
2583
2589
|
}, [focusEvent]);
|