ywana-core8 0.0.214 → 0.0.215
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 +19 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +19 -16
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +19 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +13 -11
- package/src/test.js +2 -3
package/dist/index.umd.js
CHANGED
@@ -1561,36 +1561,39 @@
|
|
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: id,
|
1572
|
+
item: 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
|
-
return /*#__PURE__*/React__default["default"].createElement("div", null, v);
|
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", null, value[field.id]);
|
1596
|
+
});
|
1594
1597
|
};
|
1595
1598
|
/**
|
1596
1599
|
* Boolean Cell Viewer
|