/** * Uses AutosuggestWidget to apply autosuggested values to multiple object's fields. Options are passed to AutosuggestWidget. * * uischema = {"ui:options": { * autosuggestField: (field name which is used for api call. The suggestions renderer method is also defined by autosuggestField) * suggestionInputField: (the field which is rendered as the autosuggest input) * suggestionValueField: (the field which the value for autosuggest is pulled from) * suggestionReceivers: { * : , (when an autosuggestion is selected, these fields receive the autosuggestions value defined by suggestion path. * : , Example: autosuggestion = {key: "MLV.2", value: "kalalokki", informalGroups: ["linnut"]} * } suggestionReceivers: {someFieldName: "key", someFieldName2: "/informalgroups/0"} * If fieldName start with '$', then a function from autosuggestFieldSettings parses the suggestion. Example: $taxonGroup * If fieldName start with '/', it is handled as a JSON pointer. * uiSchema: (uiSchema which is passed to inner SchemaField) * } */ export default class AutosuggestField extends React.Component { static propTypes: { uiSchema: PropTypes.Validator; suggestionInputField: PropTypes.Validator; allowNonsuggestedValue: PropTypes.Requireable; suggestionReceivers: PropTypes.Validator; inputTransformer: PropTypes.Requireable; transformations: PropTypes.Validator; }>>; informalTaxonGroups: PropTypes.Requireable; informalTaxonGroupPersistenceKey: PropTypes.Requireable; }>>>; uiSchema: PropTypes.Requireable; }>>>; schema: PropTypes.Validator; }>>>; formData: PropTypes.Validator; }; static getName(): string; constructor(props: any); state: { schema: any; uiSchema: any; toggled: any; taxonGroupID: any; }; UNSAFE_componentWillReceiveProps: (props: any) => void; onNextTick: (() => any) | undefined; getTogglePersistenceContextKey: (props: any) => string; getInformalTaxonGroupsPersistenceContextKey: (props: any) => string; getStateFromProps: (props: any, toggled: any) => { schema: any; uiSchema: any; toggled: any; taxonGroupID: any; }; getActiveOptions: (options: any, toggled: any) => any; getSuggestionReceiverValue(suggestion: any, suggestionReceiver: any): any; getSuggestionValue: (suggestion: any, def: any) => any; onSuggestionSelected: (suggestion: any, mounted: any) => void; onConfirmUnsuggested: (value: any) => void; onInputChange: ({ target: { value } }: { target: { value: any; }; }) => any; isValueSuggested: () => boolean; getSuggestionFromValue: () => Promise<{ value: any; key: any; }>; onInformalTaxonGroupSelected: (informalTaxonID: any) => void; onToggleChange: (value: any) => void; render(): JSX.Element; } import * as React from "react"; import * as PropTypes from "prop-types";