PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.4
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.4
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.4.4, at classes/Visualizer/Gutenberg/src/Components/Sidebar.js

149 lines 4.8 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 BubbleSettings from './Sidebar/BubbleSettings.js';
24 import ColumnSettings from './Sidebar/ColumnSettings.js';
25 import LayoutAndChartArea from './Sidebar/LayoutAndChartArea.js';
26 import FrontendActions from './Sidebar/FrontendActions.js';
27 import ManualConfiguration from './Sidebar/ManualConfiguration.js';
28
29 /**
30 * WordPress dependencies
31 */
32 const {
33 Component,
34 Fragment
35 } = wp.element;
36
37 class Sidebar extends Component {
38 constructor() {
39 super( ...arguments );
40 }
41
42 render() {
43
44 const type = this.props.chart['visualizer-chart-type'];
45
46 return (
47 <Fragment>
48
49 <GeneralSettings chart={ this.props.chart } edit={ this.props.edit } />
50
51 { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && (
52 <HorizontalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
53 ) }
54
55 { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && (
56 <VerticalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
57 ) }
58
59 { ( 0 <= [ 'pie' ].indexOf( type ) ) && (
60 <Fragment>
61
62 <PieSettings chart={ this.props.chart } edit={ this.props.edit } />
63
64 <ResidueSettings chart={ this.props.chart } edit={ this.props.edit } />
65
66 </Fragment>
67 ) }
68
69 { ( 0 <= [ 'area', 'scatter', 'line' ].indexOf( type ) ) && (
70 <LinesSettings chart={ this.props.chart } edit={ this.props.edit } />
71 ) }
72
73 { ( 0 <= [ 'bar', 'column' ].indexOf( type ) ) && (
74 <BarsSettings chart={ this.props.chart } edit={ this.props.edit } />
75 ) }
76
77 { ( 0 <= [ 'candlestick' ].indexOf( type ) ) && (
78 <CandlesSettings chart={ this.props.chart } edit={ this.props.edit } />
79 ) }
80
81 { ( 0 <= [ 'geo' ].indexOf( type ) ) && (
82 <Fragment>
83
84 <MapSettings chart={ this.props.chart } edit={ this.props.edit } />
85
86 <ColorAxis chart={ this.props.chart } edit={ this.props.edit } />
87
88 <SizeAxis chart={ this.props.chart } edit={ this.props.edit } />
89
90 <MagnifyingGlass chart={ this.props.chart } edit={ this.props.edit } />
91
92 </Fragment>
93 ) }
94
95 { ( 0 <= [ 'gauge' ].indexOf( type ) ) && (
96 <GaugeSettings chart={ this.props.chart } edit={ this.props.edit } />
97 ) }
98
99 { ( 0 <= [ 'timeline' ].indexOf( type ) ) && (
100 <TimelineSettings chart={ this.props.chart } edit={ this.props.edit } />
101 ) }
102
103 { ( 0 <= [ 'table', 'dataTable' ].indexOf( type ) ) && (
104 <Fragment>
105
106 <TableSettings chart={ this.props.chart } edit={ this.props.edit } />
107
108 <RowCellSettings chart={ this.props.chart } edit={ this.props.edit } />
109
110 </Fragment>
111 ) }
112
113 { ( 0 <= [ 'combo' ].indexOf( type ) ) && (
114 <ComboSettings chart={ this.props.chart } edit={ this.props.edit } />
115 ) }
116
117 { ( -1 >= [ 'timeline', 'bubble', 'gauge', 'geo', 'pie', 'dataTable' ].indexOf( type ) ) && (
118 <SeriesSettings chart={ this.props.chart } edit={ this.props.edit } />
119 ) }
120
121 { ( 0 <= [ 'bubble' ].indexOf( type ) ) && (
122 <BubbleSettings chart={ this.props.chart } edit={ this.props.edit } />
123 ) }
124
125
126 { ( 0 <= [ 'pie' ].indexOf( type ) ) && (
127 <SlicesSettings chart={ this.props.chart } edit={ this.props.edit } />
128 ) }
129
130 { ( 0 <= [ 'dataTable' ].indexOf( type ) ) && (
131 <ColumnSettings chart={ this.props.chart } edit={ this.props.edit } />
132 ) }
133
134 { ( -1 >= [ 'dataTable' ].indexOf( type ) ) && (
135 <LayoutAndChartArea chart={ this.props.chart } edit={ this.props.edit } />
136 ) }
137
138 <FrontendActions chart={ this.props.chart } edit={ this.props.edit } />
139
140 { ( -1 >= [ 'dataTable' ].indexOf( type ) ) && (
141 <ManualConfiguration chart={ this.props.chart } edit={ this.props.edit } />
142 ) }
143 </Fragment>
144 );
145 }
146 }
147
148 export default Sidebar;
149