ywana-core8 0.0.111 → 0.0.115

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.111",
3
+ "version": "0.0.115",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/html/table.js CHANGED
@@ -77,11 +77,12 @@ export const DataTable = (props) => {
77
77
  const sort = sortDir[id] ? sortDir[id] : null
78
78
  return (
79
79
  <th>
80
- {id === "checked" ? <CheckBox onChange={checkAll}/> : <Text>{label}</Text>}
80
+ {id === "checked" ? <CheckBox onChange={checkAll} /> : <Text>{label}</Text>}
81
81
  {sortable ? <Icon icon="arrow_up" size="small" clickable /> : null}
82
82
  </th>
83
83
  )
84
84
  })}
85
+ <th></th>
85
86
  </tr>
86
87
  </thead>
87
88
  <tbody>
@@ -110,11 +111,13 @@ const DataTableRow = (props) => {
110
111
  <Fragment>
111
112
  <tr onClick={ev => onSelect(row, ev)}>
112
113
  {columns.map(column => <DataTableCell row={row} column={column} cell={row[column.id]} editable={editable} />)}
113
- {row.info ? <Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /> : null}
114
+ {row.info ? <td><Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /></td> : <td></td>}
114
115
  </tr>
115
116
  {row.info && isInfoOpen ? (
116
117
  <tr className="table-row-info">
117
- {isFunction(row.info) ? row.info() : row.info}
118
+ <td colSpan={columns.length + 1}>
119
+ {isFunction(row.info) ? row.info() : row.info}
120
+ </td>
118
121
  </tr>
119
122
  ) : null}
120
123
  </Fragment>