ywana-core8 0.0.288 → 0.0.291

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
@@ -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");
@@ -3124,7 +3134,8 @@ var SiteMenu = function SiteMenu(_ref5) {
3124
3134
  var children = _ref5.children,
3125
3135
  min = _ref5.min;
3126
3136
  var context = React.useContext(SiteContext);
3127
- var sideNav = context.sideNav,
3137
+ var page = context.page,
3138
+ sideNav = context.sideNav,
3128
3139
  setSideNav = context.setSideNav,
3129
3140
  showNav = context.showNav;
3130
3141
  React.useEffect(function () {
@@ -3167,8 +3178,9 @@ var SiteMenu = function SiteMenu(_ref5) {
3167
3178
  _ref6$icon = _ref6.icon,
3168
3179
  icon = _ref6$icon === void 0 ? 'info' : _ref6$icon,
3169
3180
  title = _ref6.title;
3181
+ var styleItem = id === page ? 'selected' : '';
3170
3182
  return /*#__PURE__*/React__default["default"].createElement("div", {
3171
- className: "site-menu-item",
3183
+ className: "site-menu-item " + styleItem,
3172
3184
  key: id,
3173
3185
  onClick: function onClick() {
3174
3186
  return _goto(id);
@@ -3177,7 +3189,6 @@ var SiteMenu = function SiteMenu(_ref5) {
3177
3189
  key: id,
3178
3190
  icon: icon,
3179
3191
  clickable: true,
3180
- checked: id === context.page,
3181
3192
  action: function action() {
3182
3193
  return _goto(id);
3183
3194
  }
@@ -5508,7 +5519,6 @@ var TableEditor = function TableEditor(props) {
5508
5519
  var option = options.find(function (option) {
5509
5520
  return option.value === groupName;
5510
5521
  });
5511
- console.log(groupName, options, option);
5512
5522
  return option ? option.label : groupName;
5513
5523
  } else {
5514
5524
  return groupName;