Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{'\u274C'}
}
{
// render contained children of this element
JsonForms.schemaService.getContainmentProperties(schema)
.filter(prop => this.propHasData(prop, data))
.map(prop => <ul>{ this.renderChildren(prop, path, schema) }</ul>)
}
);
// add a separate list for each containment property
JsonForms.schemaService.getContainmentProperties(schema).forEach(p => {
const id = p.schema.id;
if (id === undefined || id === null) {
// TODO proper logging
console.warn(`The property's schema with label '${p.label}' has no id. DnD not possible.`);
return;
}
// FIXME: DND support
// FIXME: create child list and activate drag and drop
// registerDnDWithGroupId(this.treeNodeMapping, ul, id);
});
return vnode;
}
parentPath,
array => {
const copy = array.slice();
return _.filter(copy, el => !_.isEqual(el, data))
}
)
)
}}>
{'\u274C'}
}
{
// render contained children of this element
JsonForms.schemaService.getContainmentProperties(schema)
.filter(prop => this.propHasData(prop, data))
.map(prop => <ul>{ this.renderChildren(prop, path, schema) }</ul>)
}
);
// add a separate list for each containment property
JsonForms.schemaService.getContainmentProperties(schema).forEach(p => {
const id = p.schema.id;
if (id === undefined || id === null) {
// TODO proper logging
console.warn(`The property's schema with label '${p.label}' has no id. DnD not possible.`);
return;
}
// FIXME: DND support
className='label'
onClick={ev =>
this.setState({
selected: {
schema,
data,
path: path
}
})
}
>
<span>
{this.getNamingFunction(schema)(data)}
</span>
{
JsonForms.schemaService.hasContainmentProperties(schema) ?
(<span>) =>
this.setState({
dialog: {
open: true,
schema,
path: path
}
})
}
>
{'\u2795'}
</span>) : ''
}
{