ywana-core8 0.0.216 → 0.0.220

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.
@@ -1334,7 +1334,9 @@ var DataTable = function DataTable(props) {
1334
1334
  item = _ref.item,
1335
1335
  sortable = _ref.sortable;
1336
1336
 
1337
- var _ref2 = type === TYPES.ENTITY ? [1, Object.keys(item).length] : [2, 1],
1337
+ var _ref2 = type === TYPES.ENTITY ? [1, Object.values(item).filter(function (v) {
1338
+ return v.column === true;
1339
+ }).length] : [2, 1],
1338
1340
  rowspan = _ref2[0],
1339
1341
  colspan = _ref2[1];
1340
1342
 
@@ -1588,7 +1590,10 @@ var EntityCellViewer = function EntityCellViewer(_ref5) {
1588
1590
  return field.column === true;
1589
1591
  });
1590
1592
  return fields.map(function (field) {
1591
- return /*#__PURE__*/React.createElement("td", null, value[field.id]);
1593
+ return /*#__PURE__*/React.createElement("td", {
1594
+ key: field.id,
1595
+ className: "entity-cell " + field.id
1596
+ }, value[field.id]);
1592
1597
  });
1593
1598
  };
1594
1599
  /**
@@ -4093,7 +4098,28 @@ var CollectionContext = function CollectionContext(url, field) {
4093
4098
 
4094
4099
  var CollectionAPI = function CollectionAPI(url) {
4095
4100
  return {
4096
- all: function all() {
4101
+ all: function all(filters) {
4102
+ var queryParams = "?";
4103
+
4104
+ if (filters) {
4105
+ var filterQuery = Object.keys(filters).reduce(function (query, key) {
4106
+ var value = filters[key];
4107
+
4108
+ if (typeof value === 'boolean') {
4109
+ return query.concat(key + "=" + value + "&");
4110
+ } else if (Array.isArray(value)) {
4111
+ var param = value.length === 0 ? '' : value.reduce(function (param, item) {
4112
+ param = param.concat(key + "=" + item + "&");
4113
+ return param;
4114
+ }, "");
4115
+ return query.concat(param);
4116
+ } else {
4117
+ return query.concat(key + "=%" + filters[key] + "%&");
4118
+ }
4119
+ }, "");
4120
+ queryParams = queryParams.concat(filterQuery);
4121
+ }
4122
+
4097
4123
  return http$1.GET(url);
4098
4124
  },
4099
4125
  find: function find(id) {
@@ -4498,6 +4524,9 @@ var TableSelector = function TableSelector(props) {
4498
4524
  });
4499
4525
  var table = {
4500
4526
  columns: [{
4527
+ id: "id",
4528
+ label: "ID"
4529
+ }, {
4501
4530
  id: "idMatricula",
4502
4531
  label: "ID Matricula"
4503
4532
  }],