ywana-core8 0.0.199 → 0.0.200
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 +28 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +28 -13
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +28 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +10 -1
package/dist/index.umd.js
CHANGED
@@ -1537,6 +1537,12 @@
|
|
1537
1537
|
options: options
|
1538
1538
|
});
|
1539
1539
|
|
1540
|
+
case TYPES.ENTITY:
|
1541
|
+
return /*#__PURE__*/React__default["default"].createElement(EntityCellViewer, {
|
1542
|
+
id: id,
|
1543
|
+
value: cell
|
1544
|
+
});
|
1545
|
+
|
1540
1546
|
default:
|
1541
1547
|
return cell;
|
1542
1548
|
}
|
@@ -1548,14 +1554,23 @@
|
|
1548
1554
|
className: column.id
|
1549
1555
|
}, render(column.type));
|
1550
1556
|
};
|
1557
|
+
|
1558
|
+
var EntityCellViewer = function EntityCellViewer(_ref3) {
|
1559
|
+
var value = _ref3.value;
|
1560
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1561
|
+
className: "entity-cell-viewer"
|
1562
|
+
}, value.map(function (v) {
|
1563
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, v);
|
1564
|
+
}));
|
1565
|
+
};
|
1551
1566
|
/**
|
1552
1567
|
* Boolean Cell Viewer
|
1553
1568
|
*/
|
1554
1569
|
|
1555
1570
|
|
1556
|
-
var BooleanCellViewer = function BooleanCellViewer(
|
1557
|
-
var
|
1558
|
-
value =
|
1571
|
+
var BooleanCellViewer = function BooleanCellViewer(_ref4) {
|
1572
|
+
var _ref4$value = _ref4.value,
|
1573
|
+
value = _ref4$value === void 0 ? false : _ref4$value;
|
1559
1574
|
var icon = value === true ? "check_box" : "check_box_outline_blank";
|
1560
1575
|
return /*#__PURE__*/React__default["default"].createElement(Icon, {
|
1561
1576
|
icon: icon
|
@@ -1566,10 +1581,10 @@
|
|
1566
1581
|
*/
|
1567
1582
|
|
1568
1583
|
|
1569
|
-
var StringCellViewer = function StringCellViewer(
|
1570
|
-
var value =
|
1571
|
-
format =
|
1572
|
-
options =
|
1584
|
+
var StringCellViewer = function StringCellViewer(_ref5) {
|
1585
|
+
var value = _ref5.value,
|
1586
|
+
format = _ref5.format,
|
1587
|
+
options = _ref5.options;
|
1573
1588
|
var option = options ? options.find(function (o) {
|
1574
1589
|
return o.value === value;
|
1575
1590
|
}) : null;
|
@@ -1590,12 +1605,12 @@
|
|
1590
1605
|
*/
|
1591
1606
|
|
1592
1607
|
|
1593
|
-
var StringCellEditor = function StringCellEditor(
|
1594
|
-
var id =
|
1595
|
-
|
1596
|
-
value =
|
1597
|
-
options =
|
1598
|
-
onChange =
|
1608
|
+
var StringCellEditor = function StringCellEditor(_ref6) {
|
1609
|
+
var id = _ref6.id,
|
1610
|
+
_ref6$value = _ref6.value,
|
1611
|
+
value = _ref6$value === void 0 ? '' : _ref6$value,
|
1612
|
+
options = _ref6.options,
|
1613
|
+
onChange = _ref6.onChange;
|
1599
1614
|
|
1600
1615
|
function change(id, value) {
|
1601
1616
|
if (onChange) onChange(id, value);
|