()
| 36778 | this.props.onChange(o, this.props.keyName) |
| 36779 | } |
| 36780 | onEnumChange = (s) => this.props.onChange(s) |
| 36781 | render() { |
| 36782 | let { |
| 36783 | getComponent: s, |
| 36784 | value: o, |
| 36785 | schema: i, |
| 36786 | errors: a, |
| 36787 | required: u, |
| 36788 | description: _, |
| 36789 | disabled: w, |
| 36790 | } = this.props |
| 36791 | const x = i && i.get ? i.get('enum') : null, |
| 36792 | C = i && i.get ? i.get('format') : null, |
| 36793 | j = i && i.get ? i.get('type') : null, |
| 36794 | L = i && i.get ? i.get('in') : null |
| 36795 | if ( |
| 36796 | (o ? (isImmutable(o) || 'object' == typeof o) && (o = stringify(o)) : (o = ''), |
| 36797 | (a = a.toJS ? a.toJS() : []), |
| 36798 | x) |
| 36799 | ) { |
| 36800 | const i = s('Select') |
| 36801 | return Re.createElement(i, { |
| 36802 | className: a.length ? 'invalid' : '', |
| 36803 | title: a.length ? a : '', |
| 36804 | allowedValues: [...x], |
| 36805 | value: o, |
| 36806 | allowEmptyValue: !u, |
| 36807 | disabled: w, |
| 36808 | onChange: this.onEnumChange, |
| 36809 | }) |
| 36810 | } |
| 36811 | const B = w || (L && 'formData' === L && !('FormData' in window)), |
| 36812 | $ = s('Input') |
| 36813 | return j && 'file' === j |
| 36814 | ? Re.createElement($, { |
| 36815 | type: 'file', |
| 36816 | className: a.length ? 'invalid' : '', |
| 36817 | title: a.length ? a : '', |
| 36818 | onChange: this.onChange, |
| 36819 | disabled: B, |
| 36820 | }) |
| 36821 | : Re.createElement(ns(), { |
| 36822 | type: C && 'password' === C ? 'password' : 'text', |
| 36823 | className: a.length ? 'invalid' : '', |
| 36824 | title: a.length ? a : '', |
| 36825 | value: o, |
| 36826 | minLength: 0, |
| 36827 | debounceTimeout: 350, |
| 36828 | placeholder: _, |
| 36829 | onChange: this.onChange, |
| 36830 | disabled: B, |
| 36831 | }) |
| 36832 | } |
| 36833 | } |
| 36834 | class JsonSchema_array extends Re.PureComponent { |
nothing calls this directly
no test coverage detected