ywana-core8 0.0.803 → 0.0.805
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/EditContentDialog.js +2 -2
- package/src/html/table.js +1 -1
package/package.json
CHANGED
@@ -8,7 +8,7 @@ import { ContentEditor } from './ContentEditor'
|
|
8
8
|
/**
|
9
9
|
* Edit Content Dialog
|
10
10
|
*/
|
11
|
-
export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, onError }) => {
|
11
|
+
export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, onError }) => {
|
12
12
|
|
13
13
|
const site = useContext(SiteContext);
|
14
14
|
const [form, setForm] = useState(value)
|
@@ -48,7 +48,7 @@ export const EditContentDialog = ({ label, type, value = {}, filter, validator,
|
|
48
48
|
const content = new Content(type, form)
|
49
49
|
return (
|
50
50
|
<Dialog title={title} open={true} onAction={onAction} actions={actions}>
|
51
|
-
<ContentEditor content={content} onChange={change} filter={filterForm}
|
51
|
+
<ContentEditor content={content} onChange={change} filter={filterForm} className={className}/>
|
52
52
|
{errors.map(error => <Text use="overline" tag="div" className="error">{error}</Text>)}
|
53
53
|
</Dialog>
|
54
54
|
)
|
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 ? (
|