Revert: Query editor components from grafana-ui (#57436)

* Revert: QueryEditor components from grafana-ui

* Use local version of experimental

* Use experimental for query editor components

* Fix type issues in MSSQL

* point to actual version of experimental package

* point to latest version of experimental

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
This commit is contained in:
Zoltán Bedi
2022-10-24 17:12:36 +02:00
committed by GitHub
parent 3cbbf706cf
commit c0b778134e
128 changed files with 212 additions and 727 deletions

View File

@@ -3,8 +3,9 @@ import { useAsync } from 'react-use';
import { AnnotationQuery, DataSourceInstanceSettings, getDataSourceRef } from '@grafana/data';
import { selectors } from '@grafana/e2e-selectors';
import { Stack } from '@grafana/experimental';
import { DataSourcePicker, getDataSourceSrv, locationService } from '@grafana/runtime';
import { Button, Checkbox, Field, FieldSet, HorizontalGroup, Input, Stack } from '@grafana/ui';
import { Button, Checkbox, Field, FieldSet, HorizontalGroup, Input } from '@grafana/ui';
import { ColorValueEditor } from 'app/core/components/OptionsUI/color';
import StandardAnnotationQueryEditor from 'app/features/annotations/components/StandardAnnotationQueryEditor';

View File

@@ -3,6 +3,7 @@ import React, { useMemo, useEffect } from 'react';
import AutoSizer from 'react-virtualized-auto-sizer';
import { PanelPlugin, GrafanaTheme2, FeatureState } from '@grafana/data';
import { Stack } from '@grafana/experimental';
import { config } from '@grafana/runtime';
import {
Drawer,
@@ -19,7 +20,6 @@ import {
FeatureBadge,
Select,
ClipboardButton,
Stack,
Icon,
} from '@grafana/ui';
import { contextSrv } from 'app/core/services/context_srv';

View File

@@ -6,6 +6,7 @@ import { Subscription } from 'rxjs';
import { FieldConfigSource, GrafanaTheme2, NavModel, NavModelItem, PageLayoutType } from '@grafana/data';
import { selectors } from '@grafana/e2e-selectors';
import { Stack } from '@grafana/experimental';
import { config, locationService } from '@grafana/runtime';
import {
Button,
@@ -14,7 +15,6 @@ import {
ModalsController,
PageToolbar,
RadioButtonGroup,
Stack,
stylesFactory,
Themeable2,
ToolbarButton,

View File

@@ -1,7 +1,8 @@
import React, { useMemo, useState } from 'react';
import { selectors } from '@grafana/e2e-selectors';
import { Button, Checkbox, Form, Stack, TextArea } from '@grafana/ui';
import { Stack } from '@grafana/experimental';
import { Button, Checkbox, Form, TextArea } from '@grafana/ui';
import { DashboardModel } from 'app/features/dashboard/state';
import { SaveDashboardData, SaveDashboardOptions } from '../types';

View File

@@ -3,7 +3,8 @@ import { saveAs } from 'file-saver';
import React, { useCallback, useState } from 'react';
import { GrafanaTheme } from '@grafana/data';
import { Button, ClipboardButton, HorizontalGroup, Stack, stylesFactory, TextArea, useTheme } from '@grafana/ui';
import { Stack } from '@grafana/experimental';
import { Button, ClipboardButton, HorizontalGroup, stylesFactory, TextArea, useTheme } from '@grafana/ui';
import { SaveDashboardFormProps } from '../types';

View File

@@ -2,6 +2,7 @@ import React, { useMemo, useState } from 'react';
import { useAsync } from 'react-use';
import { selectors } from '@grafana/e2e-selectors';
import { Stack } from '@grafana/experimental';
import { locationService } from '@grafana/runtime';
import {
Button,
@@ -12,7 +13,6 @@ import {
Input,
RadioButtonGroup,
Spinner,
Stack,
TextArea,
} from '@grafana/ui';
import { getGrafanaStorage } from 'app/features/storage/storage';

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Tooltip, Button, Stack } from '@grafana/ui';
import { Stack } from '@grafana/experimental';
import { Tooltip, Button } from '@grafana/ui';
type VersionsButtonsType = {
hasMore: boolean;