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.cjs
CHANGED
@@ -2564,17 +2564,23 @@ var Planner = function Planner(_ref) {
|
|
2564
2564
|
navigation = _ref$navigation === void 0 ? true : _ref$navigation,
|
2565
2565
|
onSelectCell = _ref.onSelectCell,
|
2566
2566
|
focusEvent = _ref.focusEvent,
|
2567
|
+
_ref$config = _ref.config,
|
2568
|
+
config = _ref$config === void 0 ? {
|
2569
|
+
range: "year",
|
2570
|
+
from: "2022-01-01",
|
2571
|
+
to: "2022-12-30"
|
2572
|
+
} : _ref$config,
|
2567
2573
|
onChange = _ref.onChange;
|
2568
2574
|
|
2569
|
-
var _useState = React.useState(
|
2575
|
+
var _useState = React.useState(config.range),
|
2570
2576
|
dateRange = _useState[0],
|
2571
2577
|
setDateRange = _useState[1];
|
2572
2578
|
|
2573
|
-
var _useState2 = React.useState(
|
2579
|
+
var _useState2 = React.useState(config.from),
|
2574
2580
|
from = _useState2[0],
|
2575
2581
|
setFrom = _useState2[1];
|
2576
2582
|
|
2577
|
-
var _useState3 = React.useState(
|
2583
|
+
var _useState3 = React.useState(config.to),
|
2578
2584
|
to = _useState3[0],
|
2579
2585
|
setTo = _useState3[1];
|
2580
2586
|
|
@@ -2582,7 +2588,7 @@ var Planner = function Planner(_ref) {
|
|
2582
2588
|
var element = document.getElementById(focusEvent);
|
2583
2589
|
if (element) element.scrollIntoView({
|
2584
2590
|
behavior: 'smooth',
|
2585
|
-
block: '
|
2591
|
+
block: 'center',
|
2586
2592
|
inline: 'center'
|
2587
2593
|
});
|
2588
2594
|
}, [focusEvent]);
|