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