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.modern.js
CHANGED
@@ -1557,36 +1557,42 @@ var DataTableCell = function DataTableCell(_ref4) {
|
|
1557
1557
|
options: options
|
1558
1558
|
});
|
1559
1559
|
|
1560
|
-
case TYPES.ENTITY:
|
1561
|
-
return /*#__PURE__*/React.createElement(EntityCellViewer, {
|
1562
|
-
id: id,
|
1563
|
-
value: cell
|
1564
|
-
});
|
1565
|
-
|
1566
1560
|
default:
|
1567
1561
|
return cell;
|
1568
1562
|
}
|
1569
1563
|
}
|
1570
1564
|
};
|
1571
1565
|
|
1572
|
-
return /*#__PURE__*/React.createElement(
|
1566
|
+
return column.type === TYPES.ENTITY ? /*#__PURE__*/React.createElement(EntityCellViewer, {
|
1567
|
+
id: column.id,
|
1568
|
+
item: column.item,
|
1569
|
+
value: cell
|
1570
|
+
}) : /*#__PURE__*/React.createElement("td", {
|
1573
1571
|
key: column.id,
|
1574
1572
|
className: column.id
|
1575
1573
|
}, render(column.type));
|
1576
1574
|
};
|
1575
|
+
/**
|
1576
|
+
* Entity Cell Viewer
|
1577
|
+
* @param {*} param0
|
1578
|
+
* @returns
|
1579
|
+
*/
|
1580
|
+
|
1577
1581
|
|
1578
1582
|
var EntityCellViewer = function EntityCellViewer(_ref5) {
|
1579
1583
|
var id = _ref5.id,
|
1584
|
+
item = _ref5.item,
|
1580
1585
|
value = _ref5.value;
|
1581
|
-
console.log(id, value);
|
1582
|
-
var
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
return
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1586
|
+
console.log(id, item, value);
|
1587
|
+
var fields = Object.values(item).filter(function (field) {
|
1588
|
+
return field.column === true;
|
1589
|
+
});
|
1590
|
+
return fields.map(function (field) {
|
1591
|
+
return /*#__PURE__*/React.createElement("td", {
|
1592
|
+
key: column.id,
|
1593
|
+
className: "entity-cell " + column.id
|
1594
|
+
}, value[field.id]);
|
1595
|
+
});
|
1590
1596
|
};
|
1591
1597
|
/**
|
1592
1598
|
* Boolean Cell Viewer
|
@@ -4495,6 +4501,9 @@ var TableSelector = function TableSelector(props) {
|
|
4495
4501
|
});
|
4496
4502
|
var table = {
|
4497
4503
|
columns: [{
|
4504
|
+
id: "id",
|
4505
|
+
label: "ID"
|
4506
|
+
}, {
|
4498
4507
|
id: "idMatricula",
|
4499
4508
|
label: "ID Matricula"
|
4500
4509
|
}],
|