← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar.js
+15
-7
3.1.1
→
3.3.4
View file →
| @@ -19,8 +19,9 @@ | ||
| 19 | 19 | import RowCellSettings from './Sidebar/RowCellSettings.js'; |
| 20 | 20 | import ComboSettings from './Sidebar/ComboSettings.js'; |
| 21 | 21 | import SeriesSettings from './Sidebar/SeriesSettings.js'; |
| 22 | 22 | import SlicesSettings from './Sidebar/SlicesSettings.js'; |
| 23 | +import ColumnSettings from './Sidebar/ColumnSettings.js'; | |
| 23 | 24 | import LayoutAndChartArea from './Sidebar/LayoutAndChartArea.js'; |
| 24 | 25 | import FrontendActions from './Sidebar/FrontendActions.js'; |
| 25 | 26 | import ManualConfiguration from './Sidebar/ManualConfiguration.js'; |
| 26 | 27 | |
| @@ -45,13 +46,13 @@ | ||
| 45 | 46 | <Fragment> |
| 46 | 47 | |
| 47 | 48 | <GeneralSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 48 | 49 | |
| 49 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 50 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 50 | 51 | <HorizontalAxisSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 51 | 52 | ) } |
| 52 | 53 | |
| 53 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 54 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 54 | 55 | <VerticalAxisSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 55 | 56 | ) } |
| 56 | 57 | |
| 57 | 58 | { ( 0 <= [ 'pie' ].indexOf( type ) ) && ( |
| @@ -97,9 +98,9 @@ | ||
| 97 | 98 | { ( 0 <= [ 'timeline' ].indexOf( type ) ) && ( |
| 98 | 99 | <TimelineSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 99 | 100 | ) } |
| 100 | 101 | |
| 101 | - { ( 0 <= [ 'table' ].indexOf( type ) ) && ( | |
| 102 | + { ( 0 <= [ 'table', 'dataTable' ].indexOf( type ) ) && ( | |
| 102 | 103 | <Fragment> |
| 103 | 104 | |
| 104 | 105 | <TableSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 105 | 106 | |
| @@ -111,9 +112,9 @@ | ||
| 111 | 112 | { ( 0 <= [ 'combo' ].indexOf( type ) ) && ( |
| 112 | 113 | <ComboSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 113 | 114 | ) } |
| 114 | 115 | |
| 115 | - { ( -1 >= [ 'timeline', 'gauge', 'geo', 'pie' ].indexOf( type ) ) && ( | |
| 116 | + { ( -1 >= [ 'timeline', 'gauge', 'geo', 'pie', 'dataTable' ].indexOf( type ) ) && ( | |
| 116 | 117 | <SeriesSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 117 | 118 | ) } |
| 118 | 119 | |
| 119 | 120 | { ( 0 <= [ 'pie' ].indexOf( type ) ) && ( |
| @@ -119,14 +120,21 @@ | ||
| 119 | 120 | { ( 0 <= [ 'pie' ].indexOf( type ) ) && ( |
| 120 | 121 | <SlicesSettings chart={ this.props.chart } edit={ this.props.edit } /> |
| 121 | 122 | ) } |
| 122 | 123 | |
| 123 | - <LayoutAndChartArea chart={ this.props.chart } edit={ this.props.edit } /> | |
| 124 | + { ( 0 <= [ 'dataTable' ].indexOf( type ) ) && ( | |
| 125 | + <ColumnSettings chart={ this.props.chart } edit={ this.props.edit } /> | |
| 126 | + ) } | |
| 124 | 127 | |
| 128 | + { ( -1 >= [ 'dataTable' ].indexOf( type ) ) && ( | |
| 129 | + <LayoutAndChartArea chart={ this.props.chart } edit={ this.props.edit } /> | |
| 130 | + ) } | |
| 131 | + | |
| 125 | 132 | <FrontendActions chart={ this.props.chart } edit={ this.props.edit } /> |
| 126 | 133 | |
| 127 | - <ManualConfiguration chart={ this.props.chart } edit={ this.props.edit } /> | |
| 128 | - | |
| 134 | + { ( -1 >= [ 'dataTable' ].indexOf( type ) ) && ( | |
| 135 | + <ManualConfiguration chart={ this.props.chart } edit={ this.props.edit } /> | |
| 136 | + ) } | |
| 129 | 137 | </Fragment> |
| 130 | 138 | ); |
| 131 | 139 | } |
| 132 | 140 | } |