ywana-core8 0.0.215 → 0.0.219

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.215",
3
+ "version": "0.0.219",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -165,7 +165,8 @@ const TableSelector = (props) => {
165
165
  const rows = all.filter(item => checked.has(item.id))
166
166
  const table = {
167
167
  columns: [
168
- { id: "idMatricula", label: "ID Matricula" }
168
+ { id: "id", label: "ID" },
169
+ { id: "idMatricula", label: "ID Matricula" },
169
170
  ],
170
171
  rows: rows || []
171
172
  }
package/src/html/table.js CHANGED
@@ -171,7 +171,7 @@ const DataTableCell = ({ row, column, cell, editable }) => {
171
171
  }
172
172
  }
173
173
 
174
- return column.type === TYPES.ENTITY ? <EntityCellViewer id={id} item={item} value={cell} /> : (
174
+ return column.type === TYPES.ENTITY ? <EntityCellViewer id={column.id} item={column.item} value={cell} /> : (
175
175
  <td key={column.id} className={column.id}>{render(column.type)}</td>
176
176
  )
177
177
  }
@@ -185,7 +185,7 @@ const EntityCellViewer = ({ id, item, value }) => {
185
185
  console.log(id, item, value)
186
186
  const fields = Object.values(item).filter(field => field.column === true)
187
187
  return fields.map( field => {
188
- return (<td>{value[field.id]}</td>)
188
+ return (<td key={field.id} className={`entity-cell ${field.id}`} >{value[field.id]}</td>)
189
189
  })
190
190
  }
191
191