ywana-core8 0.0.429 → 0.0.432
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 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +25 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +25 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +27 -1
package/dist/index.modern.js
CHANGED
@@ -5233,11 +5233,9 @@ var FieldViewer = function FieldViewer(props) {
|
|
5233
5233
|
});
|
5234
5234
|
|
5235
5235
|
case TYPES.ARRAY:
|
5236
|
-
return
|
5237
|
-
|
5238
|
-
|
5239
|
-
value: v
|
5240
|
-
});
|
5236
|
+
return /*#__PURE__*/React.createElement(ArrayViewer, {
|
5237
|
+
item: item,
|
5238
|
+
value: value
|
5241
5239
|
});
|
5242
5240
|
|
5243
5241
|
default:
|
@@ -5268,6 +5266,28 @@ var EntityViewer = function EntityViewer(props) {
|
|
5268
5266
|
});
|
5269
5267
|
})));
|
5270
5268
|
};
|
5269
|
+
/**
|
5270
|
+
* Array Viewer
|
5271
|
+
*/
|
5272
|
+
|
5273
|
+
|
5274
|
+
var ArrayViewer = function ArrayViewer(props) {
|
5275
|
+
var item = props.item,
|
5276
|
+
value = props.value;
|
5277
|
+
var columns = Object.keys(item).map(function (key) {
|
5278
|
+
return item[key]["label"];
|
5279
|
+
});
|
5280
|
+
console.log("ARRAYVIEWER", item, value, columns);
|
5281
|
+
return /*#__PURE__*/React.createElement("div", {
|
5282
|
+
className: "array-viewer"
|
5283
|
+
}, /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, columns.map(function (column) {
|
5284
|
+
return /*#__PURE__*/React.createElement("th", null, column);
|
5285
|
+
})), /*#__PURE__*/React.createElement("tbody", null, value.map(function (v) {
|
5286
|
+
return /*#__PURE__*/React.createElement("tr", null, Object.keys(item).map(function (key) {
|
5287
|
+
return /*#__PURE__*/React.createElement("td", null, v[key]);
|
5288
|
+
}));
|
5289
|
+
}))));
|
5290
|
+
};
|
5271
5291
|
|
5272
5292
|
var QUERY = {
|
5273
5293
|
id: {
|