ywana-core8 0.0.217 → 0.0.221
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 +30 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +25 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +30 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +30 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +19 -1
- package/src/domain/TablePage.css +26 -0
- package/src/domain/TablePage.js +2 -1
- package/src/html/table.js +2 -2
package/dist/index.umd.js
CHANGED
@@ -1338,7 +1338,9 @@
|
|
1338
1338
|
item = _ref.item,
|
1339
1339
|
sortable = _ref.sortable;
|
1340
1340
|
|
1341
|
-
var _ref2 = type === TYPES.ENTITY ? [1, Object.
|
1341
|
+
var _ref2 = type === TYPES.ENTITY ? [1, Object.values(item).filter(function (v) {
|
1342
|
+
return v.column === true;
|
1343
|
+
}).length] : [2, 1],
|
1342
1344
|
rowspan = _ref2[0],
|
1343
1345
|
colspan = _ref2[1];
|
1344
1346
|
|
@@ -1593,8 +1595,8 @@
|
|
1593
1595
|
});
|
1594
1596
|
return fields.map(function (field) {
|
1595
1597
|
return /*#__PURE__*/React__default["default"].createElement("td", {
|
1596
|
-
key:
|
1597
|
-
className: "entity-cell " +
|
1598
|
+
key: field.id,
|
1599
|
+
className: "entity-cell " + field.id
|
1598
1600
|
}, value[field.id]);
|
1599
1601
|
});
|
1600
1602
|
};
|
@@ -4100,7 +4102,28 @@
|
|
4100
4102
|
|
4101
4103
|
var CollectionAPI = function CollectionAPI(url) {
|
4102
4104
|
return {
|
4103
|
-
all: function all() {
|
4105
|
+
all: function all(filters) {
|
4106
|
+
var queryParams = "?";
|
4107
|
+
|
4108
|
+
if (filters) {
|
4109
|
+
var filterQuery = Object.keys(filters).reduce(function (query, key) {
|
4110
|
+
var value = filters[key];
|
4111
|
+
|
4112
|
+
if (typeof value === 'boolean') {
|
4113
|
+
return query.concat(key + "=" + value + "&");
|
4114
|
+
} else if (Array.isArray(value)) {
|
4115
|
+
var param = value.length === 0 ? '' : value.reduce(function (param, item) {
|
4116
|
+
param = param.concat(key + "=" + item + "&");
|
4117
|
+
return param;
|
4118
|
+
}, "");
|
4119
|
+
return query.concat(param);
|
4120
|
+
} else {
|
4121
|
+
return query.concat(key + "=%" + filters[key] + "%&");
|
4122
|
+
}
|
4123
|
+
}, "");
|
4124
|
+
queryParams = queryParams.concat(filterQuery);
|
4125
|
+
}
|
4126
|
+
|
4104
4127
|
return http$1.GET(url);
|
4105
4128
|
},
|
4106
4129
|
find: function find(id) {
|
@@ -4505,6 +4528,9 @@
|
|
4505
4528
|
});
|
4506
4529
|
var table = {
|
4507
4530
|
columns: [{
|
4531
|
+
id: "id",
|
4532
|
+
label: "ID"
|
4533
|
+
}, {
|
4508
4534
|
id: "idMatricula",
|
4509
4535
|
label: "ID Matricula"
|
4510
4536
|
}],
|