mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: Reorg packages (#20111)
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data * Move types from grafana-ui to grafana-data * Move valueFormats to grafana-data * Move utils from grafana-ui to grafana-data * Update imports in grafana-ui * revert data's tsconfig change * Update imports in grafana-runtime * Fix import paths in grafana-ui * Move rxjs to devDeps * Core import updates batch 1 * Import updates batch 2 * Imports fix batch 3 * Imports fixes batch i don't know * Fix imorts in grafana-toolkit * Fix imports after master merge
This commit is contained in:
@@ -5,8 +5,8 @@ import React, { PureComponent } from 'react';
|
||||
import { Select, FormLabel, PanelOptionsGroup } from '@grafana/ui';
|
||||
|
||||
// Types
|
||||
import { FormField, PanelEditorProps } from '@grafana/ui';
|
||||
import { PieChartType } from '@grafana/ui';
|
||||
import { PanelEditorProps } from '@grafana/data';
|
||||
import { FormField, PieChartType } from '@grafana/ui';
|
||||
import { PieChartOptions } from './types';
|
||||
|
||||
const labelWidth = 8;
|
||||
|
||||
@@ -5,11 +5,12 @@ import React, { PureComponent } from 'react';
|
||||
import { config } from 'app/core/config';
|
||||
|
||||
// Components
|
||||
import { PieChart, getFieldDisplayValues } from '@grafana/ui';
|
||||
import { PieChart } from '@grafana/ui';
|
||||
import { getFieldDisplayValues } from '@grafana/data';
|
||||
|
||||
// Types
|
||||
import { PieChartOptions } from './types';
|
||||
import { PanelProps } from '@grafana/ui';
|
||||
import { PanelProps } from '@grafana/data';
|
||||
|
||||
interface Props extends PanelProps<PieChartOptions> {}
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
PanelEditorProps,
|
||||
PanelOptionsGrid,
|
||||
ValueMappingsEditor,
|
||||
FieldDisplayEditor,
|
||||
FieldDisplayOptions,
|
||||
FieldPropertiesEditor,
|
||||
PanelOptionsGroup,
|
||||
} from '@grafana/ui';
|
||||
import { ValueMapping, FieldConfig } from '@grafana/data';
|
||||
import { ValueMapping, FieldConfig, PanelEditorProps, FieldDisplayOptions } from '@grafana/data';
|
||||
|
||||
import { PieChartOptionsBox } from './PieChartOptionsBox';
|
||||
import { PieChartOptions } from './types';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PanelPlugin } from '@grafana/ui';
|
||||
import { PanelPlugin } from '@grafana/data';
|
||||
import { PieChartPanelEditor } from './PieChartPanelEditor';
|
||||
import { PieChartPanel } from './PieChartPanel';
|
||||
import { PieChartOptions, defaults } from './types';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PieChartType, VizOrientation, SingleStatBaseOptions } from '@grafana/ui';
|
||||
import { PieChartType, SingleStatBaseOptions } from '@grafana/ui';
|
||||
import { standardFieldDisplayOptions } from '../singlestat2/types';
|
||||
import { ReducerID } from '@grafana/data';
|
||||
import { ReducerID, VizOrientation } from '@grafana/data';
|
||||
|
||||
export interface PieChartOptions extends SingleStatBaseOptions {
|
||||
pieType: PieChartType;
|
||||
|
||||
Reference in New Issue
Block a user