Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cell === undefined ||
cell.tester(uischema, schema) === NOT_APPLICABLE
) {
console.warn('No applicable cell found.', uischema, schema);
return null;
} else {
return (
<div id="{id}" hidden="{!visible}">
<label>
{computeLabel(
labelText,
required,
appliedUiSchemaOptions.hideRequiredAsterisk
)}
</label>
<div>
{!isValid ? errors : showDescription ? description : null}
</div>
</div>
);
this.props.uischema.options
);
const onChange = (ev: any) => handleChange(path, ev.target.value);
const fieldType = schema.format;
const showDescription = !isDescriptionHidden(
visible,
description,
this.state.isFocused,
appliedUiSchemaOptions.showUnfocusedDescription
);
return (
const showDescription = !isDescriptionHidden(
visible,
description,
this.state.isFocused,
appliedUiSchemaOptions.showUnfocusedDescription
);
return (
{computeLabel(
isPlainLabel(label) ? label : label.default,
required,
appliedUiSchemaOptions.hideRequiredAsterisk
)}
<div style="{rangeContainerStyle}">
{schema.minimum}
{schema.maximum}
</div>
description,
this.state.isFocused,
appliedUiSchemaOptions.showUnfocusedDescription
);
const options = schema.enum;
return (
<div hidden="{!visible}">
<label>
{computeLabel(
isPlainLabel(label) ? label : label.default,
required,
appliedUiSchemaOptions.hideRequiredAsterisk
)}
</label>
<div style="{groupStyle}">
{options.map(optionValue => (
<div>
<input checked="{data" name="{id}" id="{optionValue}" value="{optionValue}" type="radio"> this.handleChange(ev.currentTarget.value)}</div></div></div>
required,
path,
handleChange,
data,
config
} = this.props;
const appliedUiSchemaOptions = merge({}, config, uischema.options);
const isValid = errors.length === 0;
const inputProps = {};
return (
handleChange(path, datetime ? moment(datetime).format() : '')
}
format='MM/DD/YYYY h:mm a'
clearable={true}
renderers,
label,
required,
rootSchema,
config
} = this.props;
const appliedUiSchemaOptions = merge(
{},
config,
this.props.uischema.options
);
return (
<div>
<div>
{data > 0 ? (
map(range(data), index => {
return (
</div></div>
);
const options = schema.enum;
return (
{computeLabel(
isPlainLabel(label) ? label : label.default,
required,
appliedUiSchemaOptions.hideRequiredAsterisk
)}
this.handleChange(value)}
row={true}
>
{options.map(optionValue => (
}
const InnerComponent = input;
return (
{computeLabel(
isPlainLabel(label) ? label : label.default,
required,
appliedUiSchemaOptions.hideRequiredAsterisk
)}
{firstFormHelperText}
{secondFormHelperText}
if (isPlainLabel(label)) {
labelText = label;
labelCancel = 'Cancel';
labelClear = 'Clear';
} else {
labelText = defaultLabel;
labelCancel = startsWith(cancelLabel, '%') ? 'Cancel' : cancelLabel;
labelClear = startsWith(clearLabel, '%') ? 'Clear' : clearLabel;
}
return (
handleChange(
path,
datetime ? moment(datetime).format('YYYY-MM-DD') : ''
)
}
format={localeDateTimeFormat}
[createDefaultValue]
);
const foundUISchema = findUISchema(
uischemas,
schema,
uischema.scope,
path,
undefined,
uischema
);
const appliedUiSchemaOptions = merge({}, config, uischema.options);
return (
{data > 0 ? (
map(range(data), index => (