ywana-core8 0.0.502 → 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 CHANGED
@@ -1493,10 +1493,6 @@ var DataTable = function DataTable(props) {
1493
1493
  allChecked = _useState2[0],
1494
1494
  setAllChecked = _useState2[1];
1495
1495
 
1496
- React.useEffect(function () {
1497
- console.log(sortDir);
1498
- }, [sortDir]);
1499
-
1500
1496
  function changeSort(id) {
1501
1497
  var _Object$assign;
1502
1498
 
@@ -1510,7 +1506,6 @@ var DataTable = function DataTable(props) {
1510
1506
  sortObject = {};
1511
1507
  }
1512
1508
 
1513
- console.log('multisort', sortObject);
1514
1509
  var sortKeys = Object.keys(sortObject);
1515
1510
 
1516
1511
  if (!sortKeys.length) {
@@ -2569,17 +2564,23 @@ var Planner = function Planner(_ref) {
2569
2564
  navigation = _ref$navigation === void 0 ? true : _ref$navigation,
2570
2565
  onSelectCell = _ref.onSelectCell,
2571
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,
2572
2573
  onChange = _ref.onChange;
2573
2574
 
2574
- var _useState = React.useState("year"),
2575
+ var _useState = React.useState(config.range),
2575
2576
  dateRange = _useState[0],
2576
2577
  setDateRange = _useState[1];
2577
2578
 
2578
- var _useState2 = React.useState("2022-01-01"),
2579
+ var _useState2 = React.useState(config.from),
2579
2580
  from = _useState2[0],
2580
2581
  setFrom = _useState2[1];
2581
2582
 
2582
- var _useState3 = React.useState("2022-12-30"),
2583
+ var _useState3 = React.useState(config.to),
2583
2584
  to = _useState3[0],
2584
2585
  setTo = _useState3[1];
2585
2586
 
@@ -2587,7 +2588,7 @@ var Planner = function Planner(_ref) {
2587
2588
  var element = document.getElementById(focusEvent);
2588
2589
  if (element) element.scrollIntoView({
2589
2590
  behavior: 'smooth',
2590
- block: 'start',
2591
+ block: 'center',
2591
2592
  inline: 'center'
2592
2593
  });
2593
2594
  }, [focusEvent]);
@@ -3110,7 +3111,7 @@ var SiteProvider = function SiteProvider(_ref) {
3110
3111
  info = _useState5[0],
3111
3112
  setInfo = _useState5[1];
3112
3113
 
3113
- var _useState6 = React.useState(true),
3114
+ var _useState6 = React.useState(false),
3114
3115
  showConsole = _useState6[0],
3115
3116
  setShowConsole = _useState6[1];
3116
3117