ywana-core8 0.0.511 → 0.0.512

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.511",
3
+ "version": "0.0.512",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -180,7 +180,7 @@ const DataTableCell = ({ row, column, cell, editable }) => {
180
180
  }
181
181
  }
182
182
 
183
- return column.type === TYPES.ENTITY ? <EntityCellViewer id={column.id} item={column.item} value={cell} format={column.format} /> : (
183
+ return column.type === TYPES.ENTITY ? <EntityCellViewer id={column.id} item={column.item} value={cell} /> : (
184
184
  <td key={column.id} className={column.id}>{render(column.type)}</td>
185
185
  )
186
186
  }
@@ -190,14 +190,14 @@ const DataTableCell = ({ row, column, cell, editable }) => {
190
190
  * @param {*} param0
191
191
  * @returns
192
192
  */
193
- const EntityCellViewer = ({ id, item, value, format = "" }) => {
193
+ const EntityCellViewer = ({ id, item, value }) => {
194
194
  const fields = Object.values(item).filter(field => field.column === true)
195
195
 
196
196
  return fields.map(field => {
197
197
 
198
198
  let text = value[field.id]
199
199
 
200
- if (format) {
200
+ if (field.format) {
201
201
  switch (format) {
202
202
  case FORMATS.COLOR:
203
203
  text = <input type="color" value={text} disabled />