mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove deprecated TextDisplayOptions export (#49705)
This commit is contained in:
parent
43249464bb
commit
c6ac9410b2
@ -26,6 +26,3 @@ export { PanelPlugin, SetFieldConfigOptionsArgs, StandardOptionConfig } from './
|
|||||||
export { createFieldConfigRegistry } from './panel/registryFactories';
|
export { createFieldConfigRegistry } from './panel/registryFactories';
|
||||||
export { QueryRunner, QueryRunnerOptions } from './types/queryRunner';
|
export { QueryRunner, QueryRunnerOptions } from './types/queryRunner';
|
||||||
export { GroupingToMatrixTransformerOptions } from './transformations/transformers/groupingToMatrix';
|
export { GroupingToMatrixTransformerOptions } from './transformations/transformers/groupingToMatrix';
|
||||||
|
|
||||||
// Moved to `@grafana/schema`, in Grafana 9, this will be removed
|
|
||||||
export * from './schema';
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
// Moved to `@grafana/schema`, in Grafana 9, this will be removed
|
|
||||||
//---------------------------------------------------------------
|
|
||||||
// grafana/grafana/packages/grafana-schema$ grep export src/schema/*.ts
|
|
||||||
/**
|
|
||||||
* @deprecated Moved to `@grafana/schema` package and will be removed in Grafana 9
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
export {
|
|
||||||
// Styles that changed
|
|
||||||
VizTextDisplayOptions as TextDisplayOptions, // rename
|
|
||||||
} from '@grafana/schema';
|
|
@ -14,12 +14,12 @@ import {
|
|||||||
GAUGE_DEFAULT_MAXIMUM,
|
GAUGE_DEFAULT_MAXIMUM,
|
||||||
GAUGE_DEFAULT_MINIMUM,
|
GAUGE_DEFAULT_MINIMUM,
|
||||||
getFieldColorMode,
|
getFieldColorMode,
|
||||||
TextDisplayOptions,
|
|
||||||
ThresholdsMode,
|
ThresholdsMode,
|
||||||
TimeSeriesValue,
|
TimeSeriesValue,
|
||||||
VizOrientation,
|
VizOrientation,
|
||||||
} from '@grafana/data';
|
} from '@grafana/data';
|
||||||
import { selectors } from '@grafana/e2e-selectors';
|
import { selectors } from '@grafana/e2e-selectors';
|
||||||
|
import { VizTextDisplayOptions } from '@grafana/schema';
|
||||||
|
|
||||||
import { Themeable2 } from '../../types';
|
import { Themeable2 } from '../../types';
|
||||||
import { calculateFontSize, measureText } from '../../utils/measureText';
|
import { calculateFontSize, measureText } from '../../utils/measureText';
|
||||||
@ -39,7 +39,7 @@ export interface Props extends Themeable2 {
|
|||||||
display?: DisplayProcessor;
|
display?: DisplayProcessor;
|
||||||
value: DisplayValue;
|
value: DisplayValue;
|
||||||
orientation: VizOrientation;
|
orientation: VizOrientation;
|
||||||
text?: TextDisplayOptions;
|
text?: VizTextDisplayOptions;
|
||||||
itemSpacing?: number;
|
itemSpacing?: number;
|
||||||
lcdCellWidth?: number;
|
lcdCellWidth?: number;
|
||||||
displayMode: BarGaugeDisplayMode;
|
displayMode: BarGaugeDisplayMode;
|
||||||
@ -609,7 +609,7 @@ function getValueStyles(
|
|||||||
width: number,
|
width: number,
|
||||||
height: number,
|
height: number,
|
||||||
orientation: VizOrientation,
|
orientation: VizOrientation,
|
||||||
text?: TextDisplayOptions
|
text?: VizTextDisplayOptions
|
||||||
): CSSProperties {
|
): CSSProperties {
|
||||||
const styles: CSSProperties = {
|
const styles: CSSProperties = {
|
||||||
color,
|
color,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
|
|
||||||
import { DisplayValue, DisplayValueAlignmentFactors, FieldSparkline, TextDisplayOptions } from '@grafana/data';
|
import { DisplayValue, DisplayValueAlignmentFactors, FieldSparkline } from '@grafana/data';
|
||||||
|
import { VizTextDisplayOptions } from '@grafana/schema';
|
||||||
|
|
||||||
import { Themeable2 } from '../../types';
|
import { Themeable2 } from '../../types';
|
||||||
import { FormattedValueDisplay } from '../FormattedValueDisplay/FormattedValueDisplay';
|
import { FormattedValueDisplay } from '../FormattedValueDisplay/FormattedValueDisplay';
|
||||||
@ -57,7 +58,7 @@ export interface Props extends Themeable2 {
|
|||||||
/** Factors that should influence the positioning of the text */
|
/** Factors that should influence the positioning of the text */
|
||||||
alignmentFactors?: DisplayValueAlignmentFactors;
|
alignmentFactors?: DisplayValueAlignmentFactors;
|
||||||
/** Explicit font size control */
|
/** Explicit font size control */
|
||||||
text?: TextDisplayOptions;
|
text?: VizTextDisplayOptions;
|
||||||
/** Specify which text should be visible in the BigValue */
|
/** Specify which text should be visible in the BigValue */
|
||||||
textMode?: BigValueTextMode;
|
textMode?: BigValueTextMode;
|
||||||
/** If true disables the tooltip */
|
/** If true disables the tooltip */
|
||||||
|
@ -8,8 +8,8 @@ import {
|
|||||||
ThresholdsMode,
|
ThresholdsMode,
|
||||||
GAUGE_DEFAULT_MAXIMUM,
|
GAUGE_DEFAULT_MAXIMUM,
|
||||||
GAUGE_DEFAULT_MINIMUM,
|
GAUGE_DEFAULT_MINIMUM,
|
||||||
TextDisplayOptions,
|
|
||||||
} from '@grafana/data';
|
} from '@grafana/data';
|
||||||
|
import { VizTextDisplayOptions } from '@grafana/schema';
|
||||||
|
|
||||||
import { Themeable } from '../../types';
|
import { Themeable } from '../../types';
|
||||||
import { calculateFontSize } from '../../utils/measureText';
|
import { calculateFontSize } from '../../utils/measureText';
|
||||||
@ -23,7 +23,7 @@ export interface Props extends Themeable {
|
|||||||
showThresholdLabels: boolean;
|
showThresholdLabels: boolean;
|
||||||
width: number;
|
width: number;
|
||||||
value: DisplayValue;
|
value: DisplayValue;
|
||||||
text?: TextDisplayOptions;
|
text?: VizTextDisplayOptions;
|
||||||
onClick?: React.MouseEventHandler<HTMLElement>;
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user