import React from 'react';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
import TextField from '@material-ui/core/TextField';
import FormControl from '@material-ui/core/FormControl';
import { Pattern } from './pattern';
class RegexField extends React.Component {
render() {
var pitems = this.props.options;
var p0 = new Pattern.emptyPattern();
let items = [];
pitems[p0.id] = p0;
for (let id in pitems)
items.push(
);
return (
{this.props.value.label == null && (
this.props.onChange({target: { value: new Pattern(0, true, event.target.value, null)}})} />
)}
);
}
}
export function CalendarField(props) {
let options = {};
for (let id in props.cached.calendars) {
options[id] = new Pattern(id, false,
props.cached.calendars[id].name,
props.cached.calendars[id].name);
}
return (
);
}
export function EventField(props) {
let any = Pattern.anyPattern();
let options = {};
options[any.id] = any;
return (
);
}