ywana-core8 0.0.460 → 0.0.463

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.
@@ -5677,25 +5677,19 @@ var TableSelector = function TableSelector(props) {
5677
5677
  var count = checked.size + "/" + all.length;
5678
5678
  var columns = Object.keys(schema).filter(function (key) {
5679
5679
  return schema[key].selectorColumn === true;
5680
- }).map(function (field) {
5680
+ }).map(function (key) {
5681
+ var field = schema[key];
5681
5682
  return {
5682
5683
  id: field.id,
5683
5684
  label: field.label
5684
5685
  };
5685
5686
  });
5687
+ console.log("TableSelector ", columns, schema);
5686
5688
  var rows = all.filter(function (item) {
5687
5689
  return checked.has(item.id);
5688
5690
  });
5689
5691
  var table = {
5690
5692
  columns: columns,
5691
-
5692
- /*
5693
- columns: [
5694
- { id: "id", label: "ID" },
5695
- { id: "idMatricula", label: "ID Matricula" },
5696
- { id: "flow", "Circuito"},
5697
- ],
5698
- */
5699
5693
  rows: rows || []
5700
5694
  };
5701
5695
  var buttons = actions.map(function (_ref) {
@@ -5714,7 +5708,8 @@ var TableSelector = function TableSelector(props) {
5714
5708
  return Promise.reject(e);
5715
5709
  }
5716
5710
  });
5717
- }
5711
+ },
5712
+ disabled: _action.validate ? !_action.validate(checked) : false
5718
5713
  });
5719
5714
  });
5720
5715
  return /*#__PURE__*/React.createElement("div", {