← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar/SeriesSettings.js
+5
-5
3.1.1
→
3.4.5
View file →
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | Component, |
| 8 | 8 | Fragment |
| 9 | 9 | } = wp.element; |
| 10 | 10 | |
| 11 | -const { ColorPalette } = wp.editor; | |
| 11 | +const { ColorPalette } = wp.blockEditor || wp.editor; | |
| 12 | 12 | |
| 13 | 13 | const { |
| 14 | 14 | BaseControl, |
| 15 | 15 | ExternalLink, |
| @@ -67,9 +67,9 @@ | ||
| 67 | 67 | className="visualizer-inner-sections" |
| 68 | 68 | initialOpen={ false } |
| 69 | 69 | > |
| 70 | 70 | |
| 71 | - { ( -1 >= [ 'table', 'pie' ].indexOf( type ) ) && ( | |
| 71 | + { ( -1 >= [ 'tabular', 'pie' ].indexOf( type ) ) && ( | |
| 72 | 72 | <SelectControl |
| 73 | 73 | label={ __( 'Visible In Legend' ) } |
| 74 | 74 | help={ __( 'Determines whether the series has to be presented in the legend or not.' ) } |
| 75 | 75 | value={ settings.series[index].visibleInLegend ? settings.series[index].visibleInLegend : '1' } |
| @@ -83,9 +83,9 @@ | ||
| 83 | 83 | } } |
| 84 | 84 | /> |
| 85 | 85 | ) } |
| 86 | 86 | |
| 87 | - { ( -1 >= [ 'table', 'candlestick', 'combo', 'column', 'bar' ].indexOf( type ) ) && ( | |
| 87 | + { ( -1 >= [ 'tabular', 'candlestick', 'combo', 'column', 'bar' ].indexOf( type ) ) && ( | |
| 88 | 88 | |
| 89 | 89 | <Fragment> |
| 90 | 90 | |
| 91 | 91 | <TextControl |
| @@ -139,9 +139,9 @@ | ||
| 139 | 139 | </Fragment> |
| 140 | 140 | |
| 141 | 141 | ) : |
| 142 | 142 | |
| 143 | - ( 'date' === series[i].type ) && ( | |
| 143 | + ( 0 <= [ 'date', 'datetime', 'timeofday' ].indexOf( series[i].type ) ) && ( | |
| 144 | 144 | |
| 145 | 145 | <Fragment> |
| 146 | 146 | |
| 147 | 147 | <TextControl |
| @@ -220,9 +220,9 @@ | ||
| 220 | 220 | /> |
| 221 | 221 | |
| 222 | 222 | ) } |
| 223 | 223 | |
| 224 | - { ( -1 >= [ 'table' ].indexOf( type ) ) && ( | |
| 224 | + { ( -1 >= [ 'tabular' ].indexOf( type ) ) && ( | |
| 225 | 225 | |
| 226 | 226 | <BaseControl |
| 227 | 227 | label={ __( 'Color' ) } |
| 228 | 228 | > |