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