// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { StringArrayCommandInputParameter } from 'models/workflow'; import { Field } from 'redux-form'; import { GenericInputProps } from 'views/run-process-panel/inputs/generic-input'; import { ChipsInput } from 'components/chips-input/chips-input'; import { identity } from 'lodash'; import { withStyles, WithStyles, FormGroup, Input, InputLabel, FormControl } from '@material-ui/core'; export interface StringArrayInputProps { name: string; input: StringArrayCommandInputParameter; required: boolean; } type CssRules = 'chips'; const styles = { chips: { marginTop: "16px", }, }; export const GroupArrayInput = ({name, input}: StringArrayInputProps) => ; const StringArrayInputComponent = (props: GenericInputProps) => { return 0}>{props.commandInput.id} ; }; const StyledInputComponent = withStyles(styles)( class InputComponent extends React.PureComponent>{ render() { const { classes } = this.props; const { commandInput, input, meta } = this.props; return ; } handleChange = (values: {}[]) => { const { input, meta } = this.props; if (!meta.touched) { input.onBlur(values); } input.onChange(values); } handleBlur = (e: React.FocusEvent) => { const { input } = this.props; if (!input.value?.length) { input.onBlur(e); } } } );