ywana-core8 0.0.457 → 0.0.460

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.
@@ -4676,9 +4676,7 @@ var CollectionPage = function CollectionPage(props) {
4676
4676
  };
4677
4677
 
4678
4678
  var site = useContext(SiteContext);
4679
- var _props$version = props.version,
4680
- version = _props$version === void 0 ? 0 : _props$version,
4681
- _props$id = props.id,
4679
+ var _props$id = props.id,
4682
4680
  id = _props$id === void 0 ? "collection" : _props$id,
4683
4681
  icon = props.icon,
4684
4682
  title = props.title,
@@ -4713,7 +4711,7 @@ var CollectionPage = function CollectionPage(props) {
4713
4711
  } catch (e) {
4714
4712
  return Promise.reject(e);
4715
4713
  }
4716
- }, [version]);
4714
+ }, []);
4717
4715
 
4718
4716
  function add() {
4719
4717
  var onOK = function onOK(form) {
@@ -5666,7 +5664,8 @@ var TableRowEditor = function TableRowEditor(props) {
5666
5664
 
5667
5665
 
5668
5666
  var TableSelector = function TableSelector(props) {
5669
- var _props$actions2 = props.actions,
5667
+ var schema = props.schema,
5668
+ _props$actions2 = props.actions,
5670
5669
  actions = _props$actions2 === void 0 ? [] : _props$actions2;
5671
5670
 
5672
5671
  var _useContext2 = useContext(PageContext),
@@ -5676,17 +5675,27 @@ var TableSelector = function TableSelector(props) {
5676
5675
  var all = pageContext.all,
5677
5676
  checked = pageContext.checked;
5678
5677
  var count = checked.size + "/" + all.length;
5678
+ var columns = Object.keys(schema).filter(function (key) {
5679
+ return schema[key].selectorColumn === true;
5680
+ }).map(function (field) {
5681
+ return {
5682
+ id: field.id,
5683
+ label: field.label
5684
+ };
5685
+ });
5679
5686
  var rows = all.filter(function (item) {
5680
5687
  return checked.has(item.id);
5681
5688
  });
5682
5689
  var table = {
5683
- columns: [{
5684
- id: "id",
5685
- label: "ID"
5686
- }, {
5687
- id: "idMatricula",
5688
- label: "ID Matricula"
5689
- }],
5690
+ columns: columns,
5691
+
5692
+ /*
5693
+ columns: [
5694
+ { id: "id", label: "ID" },
5695
+ { id: "idMatricula", label: "ID Matricula" },
5696
+ { id: "flow", "Circuito"},
5697
+ ],
5698
+ */
5690
5699
  rows: rows || []
5691
5700
  };
5692
5701
  var buttons = actions.map(function (_ref) {