\n {value && value.length > 0 && (\n
\n {value.map((field, index) => {\n return (\n {\n const newDataLinks = [...value];\n newDataLinks.splice(index, 1, newField);\n onChange(newDataLinks);\n }}\n onDelete={() => {\n const newDataLinks = [...value];\n newDataLinks.splice(index, 1);\n onChange(newDataLinks);\n }}\n suggestions={[\n {\n value: DataLinkBuiltInVars.valueRaw,\n label: 'Raw value',\n documentation: 'Raw value of the field',\n origin: VariableOrigin.Value,\n },\n ]}\n />\n );\n })}\n
\n )}\n\n
\n
\n \n );\n};\n","import React from 'react';\n\nimport { DataSourceSettings, SelectableValue } from '@grafana/data';\nimport { ConfigDescriptionLink, ConfigSubSection } from '@grafana/experimental';\nimport { InlineField, Input, Select, InlineSwitch } from '@grafana/ui';\n\nimport { ElasticsearchOptions, Interval } from '../types';\n\nconst indexPatternTypes: Array