ywana-core8 0.0.556 → 0.0.559

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.556",
3
+ "version": "0.0.559",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -22,7 +22,7 @@ export const Property = (props) => {
22
22
 
23
23
  let value2 = value || initial
24
24
 
25
- if (options && typeof options === 'array') {
25
+ if (options && Array.isArray(options)) {
26
26
  const opt = options.find(option => option.value == value2)
27
27
  if (opt) value2 = opt.label
28
28
  }
package/src/html/table.js CHANGED
@@ -139,12 +139,12 @@ const DataTableRow = (props) => {
139
139
  const { className } = row
140
140
  const [isInfoOpen, toggleInfo] = useState(expanded)
141
141
  const infoIcon = isInfoOpen ? 'expand_more' : 'expand_less'
142
-
142
+ const style = expanded ? "expanded" : ""
143
143
  return (
144
144
  <Fragment>
145
- <tr className={className} onClick={ev => onSelect(row, ev)}>
146
- {columns.map((column, cindex) => <DataTableCell key={`${column.id}_${cindex}`} index={index} row={row} column={column} cell={row[column.id]} editable={editable} />)}
145
+ <tr className={`${style} ${className}`} onClick={ev => onSelect(row, ev)}>
147
146
  {row.info ? <td><Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /></td> : <td></td>}
147
+ {columns.map((column, cindex) => <DataTableCell key={`${column.id}_${cindex}`} index={index} row={row} column={column} cell={row[column.id]} editable={editable} />)}
148
148
  </tr>
149
149
  {row.info && isInfoOpen ? (
150
150
  <tr className="table-row-info">