ywana-core8 0.0.431 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -64,7 +64,7 @@ const FieldViewer = (props) => {
64
64
  /**
65
65
  * EntityViewer
66
66
  */
67
- const EntityViewer = (props) => {
67
+ const EntityViewer = (props) => {
68
68
  const { field, value } = props
69
69
  const { item, label } = field
70
70
  const content = new Content(item, value)
@@ -89,14 +89,19 @@ const FieldViewer = (props) => {
89
89
  const ArrayViewer = (props) => {
90
90
  const { item, value } = props
91
91
  const columns = Object.keys(item).map(key => item[key]["label"])
92
+ console.log("ARRAYVIEWER", item, value, columns)
92
93
  return (
93
94
  <div className="array-viewer">
94
95
  <table>
95
96
  <thead>
96
- { columns.map(column => <th>{column.name}</th>)}
97
+ {columns.map(column => <th>{column}</th>)}
97
98
  </thead>
98
99
  <tbody>
99
- ...
100
+ {value.map(v => (
101
+ <tr>
102
+ { Object.keys(item).map(key => <td>{v[key]}</td>) }
103
+ </tr>
104
+ ))}
100
105
  </tbody>
101
106
  </table>
102
107
  </div>