diff --git a/src/plugins/vis_type_timeseries/public/application/components/annotations_editor.js b/src/plugins/vis_type_timeseries/public/application/components/annotations_editor.js
index 4d93a5207fa9e..09ce57639b952 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/annotations_editor.js
+++ b/src/plugins/vis_type_timeseries/public/application/components/annotations_editor.js
@@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
+import { i18n } from '@kbn/i18n';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import _ from 'lodash';
@@ -24,7 +25,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiFormRow,
- EuiFormLabel,
EuiSpacer,
EuiFieldText,
EuiTitle,
@@ -156,32 +156,36 @@ export class AnnotationsEditor extends Component {
-
-
+
-
-
-
+
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js b/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js
index c5b3d86f61b5d..556a3f2f691fb 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js
+++ b/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js
@@ -126,6 +126,7 @@ export const IndexPattern = ({
);
const isTimeSeries = model.type === PANEL_TYPES.TIMESERIES;
const isDataTimerangeModeInvalid =
+ !disabled &&
selectedTimeRangeOption &&
!isTimerangeModeEnabled(selectedTimeRangeOption.value, uiRestrictions);
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/gauge.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/gauge.tsx
index 99c3fa8ea9673..f5cc90ee49acd 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/gauge.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/gauge.tsx
@@ -5,7 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
-
+import { FormattedMessage } from '@kbn/i18n/react';
+import { i18n } from '@kbn/i18n';
import React, { Component } from 'react';
import uuid from 'uuid';
import {
@@ -23,8 +24,7 @@ import {
EuiTitle,
EuiHorizontalRule,
} from '@elastic/eui';
-import { FormattedMessage } from '@kbn/i18n/react';
-import { i18n } from '@kbn/i18n';
+
import type { Writable } from '@kbn/utility-types';
// @ts-ignore
@@ -157,18 +157,20 @@ export class GaugePanelConfig extends Component<
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/markdown.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/markdown.tsx
index c3f0f00125769..c33b4df914a81 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/markdown.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/markdown.tsx
@@ -172,18 +172,20 @@ export class MarkdownPanelConfig extends Component<
-
-
+
-
-
-
+
@@ -218,35 +220,34 @@ export class MarkdownPanelConfig extends Component<
/>
-
-
+
-
-
-
-
+
-
-
+
-
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/metric.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/metric.tsx
index f38d0ec83e957..68486d0d1e83f 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/metric.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/metric.tsx
@@ -5,7 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
-
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n/react';
import React, { Component } from 'react';
import uuid from 'uuid';
import {
@@ -16,12 +17,10 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiFormRow,
- EuiFormLabel,
EuiSpacer,
EuiTitle,
EuiHorizontalRule,
} from '@elastic/eui';
-import { FormattedMessage } from '@kbn/i18n/react';
// @ts-expect-error
import { SeriesEditor } from '../series_editor';
@@ -121,18 +120,20 @@ export class MetricPanelConfig extends Component<
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/table.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/table.tsx
index 0847a35066494..4eae56c748671 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/table.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/table.tsx
@@ -17,7 +17,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiFormRow,
- EuiFormLabel,
EuiSpacer,
EuiFieldText,
EuiTitle,
@@ -28,6 +27,7 @@ import {
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
+import { i18n } from '@kbn/i18n';
import { FieldSelect } from '../aggs/field_select';
// @ts-expect-error not typed yet
import { SeriesEditor } from '../series_editor';
@@ -246,18 +246,20 @@ export class TablePanelConfig extends Component<
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/timeseries.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/timeseries.tsx
index ae36408a08b46..ae9d7326140a7 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/timeseries.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/timeseries.tsx
@@ -5,6 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n/react';
import React, { Component } from 'react';
import {
@@ -22,8 +24,6 @@ import {
EuiTitle,
EuiHorizontalRule,
} from '@elastic/eui';
-import { FormattedMessage } from '@kbn/i18n/react';
-import { i18n } from '@kbn/i18n';
// @ts-expect-error not typed yet
import { SeriesEditor } from '../series_editor';
@@ -212,18 +212,20 @@ export class TimeseriesPanelConfig extends Component<
-
-
+
-
-
-
+
@@ -333,19 +335,17 @@ export class TimeseriesPanelConfig extends Component<
/>
-
-
+
-
-
-
-
+
@@ -366,15 +366,16 @@ export class TimeseriesPanelConfig extends Component<
/>
-
-
-
-
-
-
+
+
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/top_n.tsx b/src/plugins/vis_type_timeseries/public/application/components/panel_config/top_n.tsx
index a537a769cac11..30d65f6edd845 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/top_n.tsx
+++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/top_n.tsx
@@ -5,7 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
-
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n/react';
import React, { Component } from 'react';
import uuid from 'uuid';
import {
@@ -23,7 +24,6 @@ import {
EuiHorizontalRule,
EuiCode,
} from '@elastic/eui';
-import { FormattedMessage } from '@kbn/i18n/react';
// @ts-expect-error not typed yet
import { SeriesEditor } from '../series_editor';
@@ -149,18 +149,20 @@ export class TopNPanelConfig extends Component<
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/series_config.js b/src/plugins/vis_type_timeseries/public/application/components/series_config.js
index 8f3893feb89bd..86781c9922e46 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/series_config.js
+++ b/src/plugins/vis_type_timeseries/public/application/components/series_config.js
@@ -5,7 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
-
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n/react';
import PropTypes from 'prop-types';
import React from 'react';
import { DataFormatPicker } from './data_format_picker';
@@ -21,10 +22,7 @@ import {
EuiFormRow,
EuiCode,
EuiHorizontalRule,
- EuiFormLabel,
- EuiSpacer,
} from '@elastic/eui';
-import { FormattedMessage } from '@kbn/i18n/react';
import { SeriesConfigQueryBarWithIgnoreGlobalFilter } from './series_config_query_bar_with_ignore_global_filter';
export const SeriesConfig = (props) => {
@@ -104,18 +102,17 @@ export const SeriesConfig = (props) => {
-
-
+
-
-
-
+
-
-
+
-
-
-
+
diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/config.js b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/config.js
index 1c3a0411998b0..ebb3141cb4c8c 100644
--- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/config.js
+++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/config.js
@@ -5,6 +5,7 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
+import { i18n } from '@kbn/i18n';
import PropTypes from 'prop-types';
import React, { useState, useEffect } from 'react';
@@ -23,8 +24,6 @@ import {
EuiCode,
EuiHorizontalRule,
EuiFieldNumber,
- EuiFormLabel,
- EuiSpacer,
} from '@elastic/eui';
import { FormattedMessage, injectI18n } from '@kbn/i18n/react';
import { SeriesConfigQueryBarWithIgnoreGlobalFilter } from '../../series_config_query_bar_with_ignore_global_filter';
@@ -235,14 +234,13 @@ export const TimeseriesConfig = injectI18n(function (props) {
-
-
-
-
-
+
+
+
);
@@ -408,14 +406,13 @@ export const TimeseriesConfig = injectI18n(function (props) {
-
-
-
-
-
+
+
+
{palettesRegistry && (
@@ -443,14 +440,13 @@ export const TimeseriesConfig = injectI18n(function (props) {
-
-
-
-
-
+
+
+
-
-
+
-
-
-
+