PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.2.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.2.0
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / classes / Visualizer / Gutenberg / src / Components / Sidebar.js

Sidebar.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.2.0, at classes/Visualizer/Gutenberg/src/Components/Sidebar.js

135 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * External dependencies
3 */
4 import GeneralSettings from './Sidebar/GeneralSettings.js';
5 import HorizontalAxisSettings from './Sidebar/HorizontalAxisSettings.js';
6 import VerticalAxisSettings from './Sidebar/VerticalAxisSettings.js';
7 import PieSettings from './Sidebar/PieSettings.js';
8 import ResidueSettings from './Sidebar/ResidueSettings.js';
9 import LinesSettings from './Sidebar/LinesSettings.js';
10 import BarsSettings from './Sidebar/BarsSettings.js';
11 import CandlesSettings from './Sidebar/CandlesSettings.js';
12 import MapSettings from './Sidebar/MapSettings.js';
13 import ColorAxis from './Sidebar/ColorAxis.js';
14 import SizeAxis from './Sidebar/SizeAxis.js';
15 import MagnifyingGlass from './Sidebar/MagnifyingGlass.js';
16 import GaugeSettings from './Sidebar/GaugeSettings.js';
17 import TimelineSettings from './Sidebar/TimelineSettings.js';
18 import TableSettings from './Sidebar/TableSettings.js';
19 import RowCellSettings from './Sidebar/RowCellSettings.js';
20 import ComboSettings from './Sidebar/ComboSettings.js';
21 import SeriesSettings from './Sidebar/SeriesSettings.js';
22 import SlicesSettings from './Sidebar/SlicesSettings.js';
23 import LayoutAndChartArea from './Sidebar/LayoutAndChartArea.js';
24 import FrontendActions from './Sidebar/FrontendActions.js';
25 import ManualConfiguration from './Sidebar/ManualConfiguration.js';
26
27 /**
28 * WordPress dependencies
29 */
30 const {
31 Component,
32 Fragment
33 } = wp.element;
34
35 class Sidebar extends Component {
36 constructor() {
37 super( ...arguments );
38 }
39
40 render() {
41
42 const type = this.props.chart['visualizer-chart-type'];
43
44 return (
45 <Fragment>
46
47 <GeneralSettings chart={ this.props.chart } edit={ this.props.edit } />
48
49 { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
50 <HorizontalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
51 ) }
52
53 { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
54 <VerticalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
55 ) }
56
57 { ( 0 <= [ 'pie' ].indexOf( type ) ) && (
58 <Fragment>
59
60 <PieSettings chart={ this.props.chart } edit={ this.props.edit } />
61
62 <ResidueSettings chart={ this.props.chart } edit={ this.props.edit } />
63
64 </Fragment>
65 ) }
66
67 { ( 0 <= [ 'area', 'scatter', 'line' ].indexOf( type ) ) && (
68 <LinesSettings chart={ this.props.chart } edit={ this.props.edit } />
69 ) }
70
71 { ( 0 <= [ 'bar', 'column' ].indexOf( type ) ) && (
72 <BarsSettings chart={ this.props.chart } edit={ this.props.edit } />
73 ) }
74
75 { ( 0 <= [ 'candlestick' ].indexOf( type ) ) && (
76 <CandlesSettings chart={ this.props.chart } edit={ this.props.edit } />
77 ) }
78
79 { ( 0 <= [ 'geo' ].indexOf( type ) ) && (
80 <Fragment>
81
82 <MapSettings chart={ this.props.chart } edit={ this.props.edit } />
83
84 <ColorAxis chart={ this.props.chart } edit={ this.props.edit } />
85
86 <SizeAxis chart={ this.props.chart } edit={ this.props.edit } />
87
88 <MagnifyingGlass chart={ this.props.chart } edit={ this.props.edit } />
89
90 </Fragment>
91 ) }
92
93 { ( 0 <= [ 'gauge' ].indexOf( type ) ) && (
94 <GaugeSettings chart={ this.props.chart } edit={ this.props.edit } />
95 ) }
96
97 { ( 0 <= [ 'timeline' ].indexOf( type ) ) && (
98 <TimelineSettings chart={ this.props.chart } edit={ this.props.edit } />
99 ) }
100
101 { ( 0 <= [ 'table' ].indexOf( type ) ) && (
102 <Fragment>
103
104 <TableSettings chart={ this.props.chart } edit={ this.props.edit } />
105
106 <RowCellSettings chart={ this.props.chart } edit={ this.props.edit } />
107
108 </Fragment>
109 ) }
110
111 { ( 0 <= [ 'combo' ].indexOf( type ) ) && (
112 <ComboSettings chart={ this.props.chart } edit={ this.props.edit } />
113 ) }
114
115 { ( -1 >= [ 'timeline', 'gauge', 'geo', 'pie' ].indexOf( type ) ) && (
116 <SeriesSettings chart={ this.props.chart } edit={ this.props.edit } />
117 ) }
118
119 { ( 0 <= [ 'pie' ].indexOf( type ) ) && (
120 <SlicesSettings chart={ this.props.chart } edit={ this.props.edit } />
121 ) }
122
123 <LayoutAndChartArea chart={ this.props.chart } edit={ this.props.edit } />
124
125 <FrontendActions chart={ this.props.chart } edit={ this.props.edit } />
126
127 <ManualConfiguration chart={ this.props.chart } edit={ this.props.edit } />
128
129 </Fragment>
130 );
131 }
132 }
133
134 export default Sidebar;
135