ywana-core8 0.0.804 → 0.0.806

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.804",
3
+ "version": "0.0.806",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -540,6 +540,7 @@ const TableEditor = (props) => {
540
540
  type: field.type,
541
541
  format: field.format,
542
542
  item: field.item ? field.item : [],
543
+ editable: field.editable,
543
544
  onChange: field.id === "checked" ? checkOne : field.editable ? change : null, /* checked has it´s own handler */
544
545
  options
545
546
  }
package/src/html/table.js CHANGED
@@ -154,7 +154,7 @@ const DataTableRow = (props) => {
154
154
  return (
155
155
  <Fragment>
156
156
  <tr className={`${style} ${className}`} onClick={ev => onSelect(row, ev)}>
157
- {columns.map((column, cindex) => <DataTableCell key={`${column.id}_${cindex}`} index={index} row={row} column={column} cell={row[column.id]} editable={editable} />)}
157
+ {columns.map((column, cindex) => <DataTableCell key={`${column.id}_${cindex}`} index={index} row={row} column={column} cell={row[column.id]} editable={editable || column.editable} />)}
158
158
  {row.info ? <td><Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /></td> : <td></td>}
159
159
  </tr>
160
160
  {row.info && isInfoOpen ? (