← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar/GeneralSettings.js
+8
-8
3.1.3
→
3.4.4
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | const { __ } = wp.i18n; |
| 5 | 5 | |
| 6 | 6 | const { Component } = wp.element; |
| 7 | 7 | |
| 8 | -const { ColorPalette } = wp.editor; | |
| 8 | +const { ColorPalette } = wp.blockEditor || wp.editor; | |
| 9 | 9 | |
| 10 | 10 | const { |
| 11 | 11 | BaseControl, |
| 12 | 12 | CheckboxControl, |
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | this.props.edit( settings ); |
| 57 | 57 | } } |
| 58 | 58 | /> |
| 59 | 59 | |
| 60 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 60 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 61 | 61 | <SelectControl |
| 62 | 62 | label={ __( 'Chart Title Position' ) } |
| 63 | 63 | help={ __( 'Where to place the chart title, compared to the chart area.' ) } |
| 64 | 64 | value={ settings.titlePosition ? settings.titlePosition : 'out' } |
| @@ -73,9 +73,9 @@ | ||
| 73 | 73 | } } |
| 74 | 74 | /> |
| 75 | 75 | ) } |
| 76 | 76 | |
| 77 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && ( | |
| 77 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 78 | 78 | <BaseControl |
| 79 | 79 | label={ __( 'Chart Title Color' ) } |
| 80 | 80 | > |
| 81 | 81 | <ColorPalette |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | /> |
| 88 | 88 | </BaseControl> |
| 89 | 89 | ) } |
| 90 | 90 | |
| 91 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 91 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 92 | 92 | <SelectControl |
| 93 | 93 | label={ __( 'Axes Titles Position' ) } |
| 94 | 94 | help={ __( 'Determines where to place the axis titles, compared to the chart area.' ) } |
| 95 | 95 | value={ settings.axisTitlesPosition ? settings.axisTitlesPosition : 'out' } |
| @@ -106,9 +106,9 @@ | ||
| 106 | 106 | ) } |
| 107 | 107 | |
| 108 | 108 | </PanelBody> |
| 109 | 109 | |
| 110 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 110 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 111 | 111 | <PanelBody |
| 112 | 112 | title={ __( 'Font Styles' ) } |
| 113 | 113 | className="visualizer-inner-sections" |
| 114 | 114 | initialOpen={ false } |
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | |
| 167 | 167 | </PanelBody> |
| 168 | 168 | ) } |
| 169 | 169 | |
| 170 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && ( | |
| 170 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 171 | 171 | <PanelBody |
| 172 | 172 | title={ __( 'Legend' ) } |
| 173 | 173 | className="visualizer-inner-sections" |
| 174 | 174 | initialOpen={ false } |
| @@ -229,9 +229,9 @@ | ||
| 229 | 229 | |
| 230 | 230 | </PanelBody> |
| 231 | 231 | ) } |
| 232 | 232 | |
| 233 | - { ( -1 >= [ 'table', 'gauge', 'geo' ].indexOf( type ) ) && ( | |
| 233 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'dataTable', 'timeline' ].indexOf( type ) ) && ( | |
| 234 | 234 | <PanelBody |
| 235 | 235 | title={ __( 'Tooltip' ) } |
| 236 | 236 | className="visualizer-inner-sections" |
| 237 | 237 | initialOpen={ false } |
| @@ -281,9 +281,9 @@ | ||
| 281 | 281 | |
| 282 | 282 | </PanelBody> |
| 283 | 283 | ) } |
| 284 | 284 | |
| 285 | - { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && ( | |
| 285 | + { ( -1 >= [ 'table', 'gauge', 'geo', 'pie', 'timeline', 'dataTable' ].indexOf( type ) ) && ( | |
| 286 | 286 | <PanelBody |
| 287 | 287 | title={ __( 'Animation' ) } |
| 288 | 288 | className="visualizer-inner-sections" |
| 289 | 289 | initialOpen={ false } |