ywana-core8 0.0.214 → 0.0.218
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 +25 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +25 -16
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +25 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -1
- package/src/html/table.js +13 -11
- package/src/test.js +2 -3
package/dist/index.cjs
CHANGED
@@ -1564,36 +1564,42 @@ var DataTableCell = function DataTableCell(_ref4) {
|
|
1564
1564
|
options: options
|
1565
1565
|
});
|
1566
1566
|
|
1567
|
-
case TYPES.ENTITY:
|
1568
|
-
return /*#__PURE__*/React__default["default"].createElement(EntityCellViewer, {
|
1569
|
-
id: id,
|
1570
|
-
value: cell
|
1571
|
-
});
|
1572
|
-
|
1573
1567
|
default:
|
1574
1568
|
return cell;
|
1575
1569
|
}
|
1576
1570
|
}
|
1577
1571
|
};
|
1578
1572
|
|
1579
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
1573
|
+
return column.type === TYPES.ENTITY ? /*#__PURE__*/React__default["default"].createElement(EntityCellViewer, {
|
1574
|
+
id: column.id,
|
1575
|
+
item: column.item,
|
1576
|
+
value: cell
|
1577
|
+
}) : /*#__PURE__*/React__default["default"].createElement("td", {
|
1580
1578
|
key: column.id,
|
1581
1579
|
className: column.id
|
1582
1580
|
}, render(column.type));
|
1583
1581
|
};
|
1582
|
+
/**
|
1583
|
+
* Entity Cell Viewer
|
1584
|
+
* @param {*} param0
|
1585
|
+
* @returns
|
1586
|
+
*/
|
1587
|
+
|
1584
1588
|
|
1585
1589
|
var EntityCellViewer = function EntityCellViewer(_ref5) {
|
1586
1590
|
var id = _ref5.id,
|
1591
|
+
item = _ref5.item,
|
1587
1592
|
value = _ref5.value;
|
1588
|
-
console.log(id, value);
|
1589
|
-
var
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
return
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1593
|
+
console.log(id, item, value);
|
1594
|
+
var fields = Object.values(item).filter(function (field) {
|
1595
|
+
return field.column === true;
|
1596
|
+
});
|
1597
|
+
return fields.map(function (field) {
|
1598
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
1599
|
+
key: column.id,
|
1600
|
+
className: "entity-cell " + column.id
|
1601
|
+
}, value[field.id]);
|
1602
|
+
});
|
1597
1603
|
};
|
1598
1604
|
/**
|
1599
1605
|
* Boolean Cell Viewer
|
@@ -4502,6 +4508,9 @@ var TableSelector = function TableSelector(props) {
|
|
4502
4508
|
});
|
4503
4509
|
var table = {
|
4504
4510
|
columns: [{
|
4511
|
+
id: "id",
|
4512
|
+
label: "ID"
|
4513
|
+
}, {
|
4505
4514
|
id: "idMatricula",
|
4506
4515
|
label: "ID Matricula"
|
4507
4516
|
}],
|