diff --git a/src/components/containers/AnnotationAccordion.js b/src/components/containers/AnnotationAccordion.js index 0b6a15e33..0db622967 100644 --- a/src/components/containers/AnnotationAccordion.js +++ b/src/components/containers/AnnotationAccordion.js @@ -1,5 +1,5 @@ import PlotlyFold from './PlotlyFold'; -import TraceRequiredPanel from './TraceRequiredPanel'; +import {LayoutPanel} from './derived'; import {PanelMessage} from './PanelEmpty'; import PropTypes from 'prop-types'; import React, {Component} from 'react'; @@ -43,7 +43,7 @@ class AnnotationAccordion extends Component { }; return ( - + {content ? ( content ) : ( @@ -56,7 +56,7 @@ class AnnotationAccordion extends Component { {_('Click on the + button above to add an annotation.')} )} - + ); } } diff --git a/src/components/containers/ImageAccordion.js b/src/components/containers/ImageAccordion.js index b2d70c7cc..e9a9c488c 100644 --- a/src/components/containers/ImageAccordion.js +++ b/src/components/containers/ImageAccordion.js @@ -1,5 +1,5 @@ import PlotlyFold from './PlotlyFold'; -import TraceRequiredPanel from './TraceRequiredPanel'; +import {LayoutPanel} from './derived'; import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {connectImageToLayout} from 'lib'; @@ -48,7 +48,7 @@ class ImageAccordion extends Component { }; return ( - + {content ? ( content ) : ( @@ -61,7 +61,7 @@ class ImageAccordion extends Component { {_('Click on the + button above to add an image.')} )} - + ); } } diff --git a/src/components/containers/ShapeAccordion.js b/src/components/containers/ShapeAccordion.js index 0947eff99..a321eb643 100644 --- a/src/components/containers/ShapeAccordion.js +++ b/src/components/containers/ShapeAccordion.js @@ -1,5 +1,5 @@ import PlotlyFold from './PlotlyFold'; -import TraceRequiredPanel from './TraceRequiredPanel'; +import {LayoutPanel} from './derived'; import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {connectShapeToLayout} from 'lib'; @@ -48,7 +48,7 @@ class ShapeAccordion extends Component { }; return ( - + {content ? ( content ) : ( @@ -61,7 +61,7 @@ class ShapeAccordion extends Component { {_('Click on the + button above to add a shape.')} )} - + ); } } diff --git a/src/components/fields/DataSelector.js b/src/components/fields/DataSelector.js index fa3a1cfdd..e6e98484a 100644 --- a/src/components/fields/DataSelector.js +++ b/src/components/fields/DataSelector.js @@ -95,6 +95,7 @@ export class UnconnectedDataSelector extends Component { value={this.fullValue} onChange={this.updatePlot} multi={this.is2D} + searchable={true} optionRenderer={this.context.dataSourceOptionRenderer} valueRenderer={this.context.dataSourceValueRenderer} clearable={true} diff --git a/src/default_panels/StyleAxesPanel.js b/src/default_panels/StyleAxesPanel.js index 11bad5a69..1f6fc0a53 100644 --- a/src/default_panels/StyleAxesPanel.js +++ b/src/default_panels/StyleAxesPanel.js @@ -12,7 +12,7 @@ import { Radio, TextEditor, PlotlySection, - TraceRequiredPanel, + LayoutPanel, AxesFold, AxisSide, RangesliderVisible, @@ -26,7 +26,7 @@ class StyleAxesPanel extends Component { render() { const {localize: _} = this.context; return ( - + !(axis._name.includes('angular') || axis._subplot.includes('geo'))} @@ -402,7 +402,7 @@ class StyleAxesPanel extends Component { - + ); } } diff --git a/src/default_panels/StyleLayoutPanel.js b/src/default_panels/StyleLayoutPanel.js index 040816ceb..403abe56d 100644 --- a/src/default_panels/StyleLayoutPanel.js +++ b/src/default_panels/StyleLayoutPanel.js @@ -9,7 +9,7 @@ import { Numeric, TextEditor, PlotlySection, - TraceRequiredPanel, + LayoutPanel, VisibilitySelect, HovermodeDropdown, Flaglist, @@ -18,7 +18,7 @@ import { import {HoverColor} from '../components/fields/derived'; const StyleLayoutPanel = (props, {localize: _}) => ( - + @@ -137,7 +137,7 @@ const StyleLayoutPanel = (props, {localize: _}) => ( - + ); StyleLayoutPanel.contextTypes = {
{_('Click on the + button above to add an annotation.')}
{_('Click on the + button above to add an image.')}
{_('Click on the + button above to add a shape.')}