ywana-core8 0.0.465 → 0.0.468

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
@@ -5692,7 +5692,6 @@ var TableSelector = function TableSelector(props) {
5692
5692
  label: field.label
5693
5693
  };
5694
5694
  });
5695
- console.log("TableSelector ", columns, schema);
5696
5695
  var rows = all.filter(function (item) {
5697
5696
  return checked.has(item.id);
5698
5697
  });
@@ -5702,7 +5701,8 @@ var TableSelector = function TableSelector(props) {
5702
5701
  };
5703
5702
  var buttons = actions.map(function (_ref) {
5704
5703
  var label = _ref.label,
5705
- _action = _ref.action;
5704
+ _action = _ref.action,
5705
+ validate = _ref.validate;
5706
5706
  return /*#__PURE__*/React__default["default"].createElement(Button, {
5707
5707
  label: label,
5708
5708
  raised: true,
@@ -5715,9 +5715,9 @@ var TableSelector = function TableSelector(props) {
5715
5715
  } catch (e) {
5716
5716
  return Promise.reject(e);
5717
5717
  }
5718
- });
5718
+ }, rows);
5719
5719
  },
5720
- disabled: !_action.validate(checked)
5720
+ disabled: !validate(checked, rows)
5721
5721
  });
5722
5722
  });
5723
5723
  return /*#__PURE__*/React__default["default"].createElement("div", {