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/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -1
- package/src/html/table.js +2 -2
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -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: "
|
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
|
|