ywana-core8 0.0.511 → 0.0.512
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 +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -1806,8 +1806,7 @@ var DataTableCell = function DataTableCell(_ref4) {
|
|
1806
1806
|
return column.type === TYPES.ENTITY ? /*#__PURE__*/React.createElement(EntityCellViewer, {
|
1807
1807
|
id: column.id,
|
1808
1808
|
item: column.item,
|
1809
|
-
value: cell
|
1810
|
-
format: column.format
|
1809
|
+
value: cell
|
1811
1810
|
}) : /*#__PURE__*/React.createElement("td", {
|
1812
1811
|
key: column.id,
|
1813
1812
|
className: column.id
|
@@ -1822,16 +1821,14 @@ var DataTableCell = function DataTableCell(_ref4) {
|
|
1822
1821
|
|
1823
1822
|
var EntityCellViewer = function EntityCellViewer(_ref5) {
|
1824
1823
|
var item = _ref5.item,
|
1825
|
-
value = _ref5.value
|
1826
|
-
_ref5$format = _ref5.format,
|
1827
|
-
format = _ref5$format === void 0 ? "" : _ref5$format;
|
1824
|
+
value = _ref5.value;
|
1828
1825
|
var fields = Object.values(item).filter(function (field) {
|
1829
1826
|
return field.column === true;
|
1830
1827
|
});
|
1831
1828
|
return fields.map(function (field) {
|
1832
1829
|
var text = value[field.id];
|
1833
1830
|
|
1834
|
-
if (format) {
|
1831
|
+
if (field.format) {
|
1835
1832
|
switch (format) {
|
1836
1833
|
case FORMATS.COLOR:
|
1837
1834
|
text = /*#__PURE__*/React.createElement("input", {
|