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.cjs CHANGED
@@ -5685,25 +5685,19 @@ var TableSelector = function TableSelector(props) {
5685
5685
  var count = checked.size + "/" + all.length;
5686
5686
  var columns = Object.keys(schema).filter(function (key) {
5687
5687
  return schema[key].selectorColumn === true;
5688
- }).map(function (field) {
5688
+ }).map(function (key) {
5689
+ var field = schema[key];
5689
5690
  return {
5690
5691
  id: field.id,
5691
5692
  label: field.label
5692
5693
  };
5693
5694
  });
5695
+ console.log("TableSelector ", columns, schema);
5694
5696
  var rows = all.filter(function (item) {
5695
5697
  return checked.has(item.id);
5696
5698
  });
5697
5699
  var table = {
5698
5700
  columns: columns,
5699
-
5700
- /*
5701
- columns: [
5702
- { id: "id", label: "ID" },
5703
- { id: "idMatricula", label: "ID Matricula" },
5704
- { id: "flow", "Circuito"},
5705
- ],
5706
- */
5707
5701
  rows: rows || []
5708
5702
  };
5709
5703
  var buttons = actions.map(function (_ref) {
@@ -5722,7 +5716,8 @@ var TableSelector = function TableSelector(props) {
5722
5716
  return Promise.reject(e);
5723
5717
  }
5724
5718
  });
5725
- }
5719
+ },
5720
+ disabled: _action.validate ? !_action.validate(checked) : false
5726
5721
  });
5727
5722
  });
5728
5723
  return /*#__PURE__*/React__default["default"].createElement("div", {