conf/custom.ini
to enable features under development or not yet available in stable version. |
| [Field](./field/) | |
| [FieldCalcs](./fieldcalcs/) | |
| [FieldColor](./fieldcolor/) | |
| [FieldConfig](./fieldconfig/) | Every property is optionalPlugins may extend this with additional properties. Something like series overrides |
+| [FieldConfigEditorConfig](./fieldconfigeditorconfig/) | |
| [FieldConfigEditorProps](./fieldconfigeditorprops/) | |
+| [FieldConfigPropertyItem](./fieldconfigpropertyitem/) | |
| [FieldConfigSource](./fieldconfigsource/) | |
| [FieldDisplay](./fielddisplay/) | |
-| [FieldDisplayOptions](./fielddisplayoptions/) | |
| [FieldDTO](./fielddto/) | Like a field, but properties are optional and values may be a simple array |
| [FieldMatcherInfo](./fieldmatcherinfo/) | |
| [FieldOverrideContext](./fieldoverridecontext/) | |
| [FieldOverrideEditorProps](./fieldoverrideeditorprops/) | |
-| [FieldPropertyEditorItem](./fieldpropertyeditoritem/) | |
| [FieldReducerInfo](./fieldreducerinfo/) | |
| [FieldWithIndex](./fieldwithindex/) | |
| [FilterFieldsByNameTransformerOptions](./filterfieldsbynametransformeroptions/) | |
@@ -202,12 +216,14 @@ A library containing most of the core functionality and data types used in Grafa
| [FormattedValue](./formattedvalue/) | |
| [FrameMatcherInfo](./framematcherinfo/) | |
| [GetFieldDisplayValuesOptions](./getfielddisplayvaluesoptions/) | |
+| [GrafanaConfig](./grafanaconfig/) | Describes all the different Grafana configuration values available for an instance. |
| [GrafanaTheme](./grafanatheme/) | |
| [GrafanaThemeCommons](./grafanathemecommons/) | |
| [GraphSeriesXY](./graphseriesxy/) | View model projection of a series |
| [HistoryItem](./historyitem/) | |
| [IntervalValues](./intervalvalues/) | |
| [Labels](./labels/) | |
+| [LicenseInfo](./licenseinfo/) | Describes the license information about the current running instance of Grafana. |
| [LinkModel](./linkmodel/) | Processed Link Model. The values are ready to use |
| [LinkModelSupplier](./linkmodelsupplier/) | Provides a way to produce links on demandTODO: ScopedVars in in GrafanaUI package! |
| [LogLabelStatsModel](./loglabelstatsmodel/) | |
@@ -220,13 +236,18 @@ A library containing most of the core functionality and data types used in Grafa
| [MetadataInspectorProps](./metadatainspectorprops/) | |
| [MetricFindValue](./metricfindvalue/) | |
| [MutableVector](./mutablevector/) | Vector with standard manipulation functions |
-| [NavModel](./navmodel/) | |
+| [NavModel](./navmodel/) | Interface used to describe different kinds of page titles and page navigation. Navmodels are usually generated in the backend and stored in Redux. |
| [NavModelBreadcrumb](./navmodelbreadcrumb/) | |
| [NavModelItem](./navmodelitem/) | |
+| [NumberFieldConfigSettings](./numberfieldconfigsettings/) | |
+| [OrganizeFieldsTransformerOptions](./organizefieldstransformeroptions/) | |
| [PanelData](./paneldata/) | |
| [PanelEditorProps](./paneleditorprops/) | |
| [PanelMenuItem](./panelmenuitem/) | |
| [PanelModel](./panelmodel/) | |
+| [PanelOptionsEditorConfig](./paneloptionseditorconfig/) | |
+| [PanelOptionsEditorItem](./paneloptionseditoritem/) | |
+| [PanelOptionsEditorProps](./paneloptionseditorprops/) | |
| [PanelPluginMeta](./panelpluginmeta/) | |
| [PanelProps](./panelprops/) | |
| [PluginBuildInfo](./pluginbuildinfo/) | |
@@ -242,9 +263,12 @@ A library containing most of the core functionality and data types used in Grafa
| [QueryHint](./queryhint/) | |
| [QueryResultBase](./queryresultbase/) | |
| [QueryResultMeta](./queryresultmeta/) | |
+| [QueryResultMetaNotice](./queryresultmetanotice/) | QueryResultMetaNotice is a structure that provides user notices for query result data |
+| [QueryResultMetaStat](./queryresultmetastat/) | |
| [RangeMap](./rangemap/) | |
| [RawTimeRange](./rawtimerange/) | |
| [ReadWriteVector](./readwritevector/) | Apache arrow vectors are Read/Write |
+| [ReduceDataOptions](./reducedataoptions/) | Options for how to turn DataFrames into an array of display values |
| [ReduceTransformerOptions](./reducetransformeroptions/) | |
| [RegistryItem](./registryitem/) | |
| [RegistryItemWithOptions](./registryitemwithoptions/) | |
@@ -253,18 +277,30 @@ A library containing most of the core functionality and data types used in Grafa
| [ScopedVars](./scopedvars/) | |
| [ScreenshotInfo](./screenshotinfo/) | |
| [SelectableValue](./selectablevalue/) | Used in select elements |
+| [SelectFieldConfigSettings](./selectfieldconfigsettings/) | |
+| [SeriesToColumnsOptions](./seriestocolumnsoptions/) | |
+| [StandardEditorProps](./standardeditorprops/) | |
+| [StandardEditorsRegistryItem](./standardeditorsregistryitem/) | |
+| [StringFieldConfigSettings](./stringfieldconfigsettings/) | |
| [TableData](./tabledata/) | |
| [TextMatch](./textmatch/) | |
| [Threshold](./threshold/) | |
-| [ThresholdsConfig](./thresholdsconfig/) | |
+| [ThresholdsConfig](./thresholdsconfig/) | Config that is passed to the ThresholdsEditor |
+| [ThresholdsFieldConfigSettings](./thresholdsfieldconfigsettings/) | |
| [TimeOption](./timeoption/) | |
| [TimeOptions](./timeoptions/) | |
| [TimeRange](./timerange/) | |
| [TimeSeries](./timeseries/) | |
+| [TransformerRegistyItem](./transformerregistyitem/) | |
+| [TransformerUIProps](./transformeruiprops/) | |
+| [UnitFieldConfigSettings](./unitfieldconfigsettings/) | |
| [UserOrgDTO](./userorgdto/) | |
| [ValueFormat](./valueformat/) | |
| [ValueFormatCategory](./valueformatcategory/) | |
+| [ValueLinkConfig](./valuelinkconfig/) | |
| [ValueMap](./valuemap/) | |
+| [ValueMappingFieldConfigSettings](./valuemappingfieldconfigsettings/) | |
+| [VariableModel](./variablemodel/) | |
| [VariableSuggestion](./variablesuggestion/) | |
| [Vector](./vector/) | |
| [YAxis](./yaxis/) | |
@@ -282,7 +318,11 @@ A library containing most of the core functionality and data types used in Grafa
| Variable | Description |
| --- | --- |
+| [booleanOverrideProcessor](./booleanoverrideprocessor/) | |
| [createDimension](./createdimension/) | |
+| [createOrderFieldsComparer](./createorderfieldscomparer/) | |
+| [DataLinkBuiltInVars](./datalinkbuiltinvars/) | |
+| [dataLinksOverrideProcessor](./datalinksoverrideprocessor/) | |
| [dateTime](./datetime/) | |
| [dateTimeAsMoment](./datetimeasmoment/) | |
| [dateTimeForTimeZone](./datetimefortimezone/) | |
@@ -315,31 +355,46 @@ A library containing most of the core functionality and data types used in Grafa
| [getValueFromDimension](./getvaluefromdimension/) | |
| [guessFieldTypes](./guessfieldtypes/) | |
| [hasMsResolution](./hasmsresolution/) | Checks if series time field has ms resolution |
+| [identityOverrideProcessor](./identityoverrideprocessor/) | |
| [isDataFrame](./isdataframe/) | |
| [isDateTime](./isdatetime/) | |
| [ISO\_8601](./iso_8601/) | |
| [isTableData](./istabledata/) | |
+| [locationUtil](./locationutil/) | |
| [LogsParsers](./logsparsers/) | |
| [MISSING\_VALUE](./missing_value/) | |
| [MS\_DATE\_TIME\_FORMAT](./ms_date_time_format/) | |
+| [numberOverrideProcessor](./numberoverrideprocessor/) | |
| [objRemoveUndefined](./objremoveundefined/) | |
| [onUpdateDatasourceJsonDataOption](./onupdatedatasourcejsondataoption/) | |
+| [onUpdateDatasourceJsonDataOptionChecked](./onupdatedatasourcejsondataoptionchecked/) | |
| [onUpdateDatasourceJsonDataOptionSelect](./onupdatedatasourcejsondataoptionselect/) | |
| [onUpdateDatasourceOption](./onupdatedatasourceoption/) | |
| [onUpdateDatasourceResetOption](./onupdatedatasourceresetoption/) | |
| [onUpdateDatasourceSecureJsonDataOption](./onupdatedatasourcesecurejsondataoption/) | |
| [onUpdateDatasourceSecureJsonDataOptionSelect](./onupdatedatasourcesecurejsondataoptionselect/) | |
+| [selectOverrideProcessor](./selectoverrideprocessor/) | |
| [setLocale](./setlocale/) | |
+| [standardEditorsRegistry](./standardeditorsregistry/) | |
| [standardFieldConfigEditorRegistry](./standardfieldconfigeditorregistry/) | |
+| [standardTransformers](./standardtransformers/) | |
+| [standardTransformersRegistry](./standardtransformersregistry/) | Registry of transformation options that can be driven by stored configuration files. |
+| [stringOverrideProcessor](./stringoverrideprocessor/) | |
+| [textUtil](./textutil/) | |
+| [thresholdsOverrideProcessor](./thresholdsoverrideprocessor/) | |
| [TIME\_FORMAT](./time_format/) | |
| [toDataFrame](./todataframe/) | |
| [toDuration](./toduration/) | |
| [toLegacyResponseData](./tolegacyresponsedata/) | |
+| [toPascalCase](./topascalcase/) | |
| [toUtc](./toutc/) | |
-| [transformersRegistry](./transformersregistry/) | |
| [unEscapeStringFromRegex](./unescapestringfromregex/) | |
+| [unitOverrideProcessor](./unitoverrideprocessor/) | |
| [updateDatasourcePluginJsonDataOption](./updatedatasourcepluginjsondataoption/) | |
+| [updateDatasourcePluginResetOption](./updatedatasourcepluginresetoption/) | |
| [updateDatasourcePluginSecureJsonDataOption](./updatedatasourcepluginsecurejsondataoption/) | |
+| [urlUtil](./urlutil/) | |
+| [valueMappingsOverrideProcessor](./valuemappingsoverrideprocessor/) | |
| [VAR\_CALC](./var_calc/) | |
| [VAR\_CELL\_PREFIX](./var_cell_prefix/) | |
| [VAR\_FIELD\_NAME](./var_field_name/) | |
@@ -354,14 +409,13 @@ A library containing most of the core functionality and data types used in Grafa
| [DataQueryResponseData](./dataqueryresponsedata/) | |
| [DataSourceOptionsType](./datasourceoptionstype/) | |
| [DataSourceQueryType](./datasourcequerytype/) | |
-| [DataTransformer](./datatransformer/) | Immutable data transformation |
+| [DataTransformer](./datatransformer/) | Function that transform data frames (AKA transformer) |
| [DateTimeInput](./datetimeinput/) | |
| [DecimalCount](./decimalcount/) | |
| [Dimensions](./dimensions/) | |
| [DisplayProcessor](./displayprocessor/) | |
| [DurationInput](./durationinput/) | |
| [DurationUnit](./durationunit/) | |
-| [FieldConfigEditorRegistry](./fieldconfigeditorregistry/) | |
| [FieldMatcher](./fieldmatcher/) | |
| [FormatInput](./formatinput/) | |
| [FrameMatcher](./framematcher/) | |
@@ -372,9 +426,10 @@ A library containing most of the core functionality and data types used in Grafa
| [LinkTarget](./linktarget/) | |
| [MutableField](./mutablefield/) | |
| [NavIndex](./navindex/) | |
-| [Omit](./omit/) | |
+| [Omit\_2](./omit_2/) | |
| [PanelMigrationHandler](./panelmigrationhandler/) | Called when a panel is first loaded with current panel model |
-| [PanelTypeChangedHandler](./paneltypechangedhandler/) | Called before a panel is initialized |
+| [PanelOptionEditorsRegistry](./paneloptioneditorsregistry/) | |
+| [PanelTypeChangedHandler](./paneltypechangedhandler/) | Called before a panel is initialized. Allows panel inspection for any updates before changing the panel type. |
| [ScaleCalculator](./scalecalculator/) | |
| [Subtract](./subtract/) | |
| [TimeFragment](./timefragment/) | |
@@ -383,6 +438,10 @@ A library containing most of the core functionality and data types used in Grafa
| [TimeZone](./timezone/) | |
| [TimeZoneBrowser](./timezonebrowser/) | |
| [TimeZoneUtc](./timezoneutc/) | |
+| [UrlQueryMap](./urlquerymap/) | Type to represent the values parsed from the query string. |
+| [UrlQueryValue](./urlqueryvalue/) | Type to represent the value of a single query variable. |
+| [ValueConverter](./valueconverter/) | |
| [ValueFormatter](./valueformatter/) | |
| [ValueMapping](./valuemapping/) | |
+| [VariableType](./variabletype/) | |
diff --git a/docs/sources/packages_api/data/appevents.md b/docs/sources/packages_api/data/appevents.md
index f9277f08763..cc93eca43e5 100644
--- a/docs/sources/packages_api/data/appevents.md
+++ b/docs/sources/packages_api/data/appevents.md
@@ -10,19 +10,23 @@ draft = true
## AppEvents namespace
+> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
+>
+
### AppEvents namespace
-Signature
-
-```typescript
-export declare namespace AppEvents
-```
Import
```typescript
import { AppEvents } from '@grafana/data';
```
+## Interfaces
+
+| Interface | Description |
+| --- | --- |
+| [AppEvent](./appevent/) | |
+
## Variables
| Variable | Description |
diff --git a/docs/sources/packages_api/data/appevents/alertpayload.md b/docs/sources/packages_api/data/appevents/alertpayload.md
index 753fa481885..5893f25698f 100644
--- a/docs/sources/packages_api/data/appevents/alertpayload.md
+++ b/docs/sources/packages_api/data/appevents/alertpayload.md
@@ -15,7 +15,7 @@ draft = true
Signature
```typescript
-type AlertPayload = [string, string?];
+export declare type AlertPayload = [string, string?];
```
Import
diff --git a/docs/sources/packages_api/data/appevents/appevent.md b/docs/sources/packages_api/data/appevents/appevent.md
new file mode 100644
index 00000000000..5d89cb388bd
--- /dev/null
+++ b/docs/sources/packages_api/data/appevents/appevent.md
@@ -0,0 +1,45 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "AppEvent"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## AppEvents.AppEvent interface
+
+Signature
+
+```typescript
+export interface AppEventstring
| |
+| [payload](#payload-property) | T
| |
+
+### name property
+
+Signature
+
+```typescript
+readonly name: string;
+```
+
+### payload property
+
+Signature
+
+```typescript
+payload?: T;
+```
diff --git a/docs/sources/packages_api/data/applyfieldoverrideoptions.md b/docs/sources/packages_api/data/applyfieldoverrideoptions.md
new file mode 100644
index 00000000000..bf9b7b5c44d
--- /dev/null
+++ b/docs/sources/packages_api/data/applyfieldoverrideoptions.md
@@ -0,0 +1,89 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "ApplyFieldOverrideOptions"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## ApplyFieldOverrideOptions interface
+
+Signature
+
+```typescript
+export interface ApplyFieldOverrideOptions
+```
+Import
+
+```typescript
+import { ApplyFieldOverrideOptions } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [autoMinMax](#autominmax-property) | boolean
| |
+| [data](#data-property) | DataFrame[]
| |
+| [fieldConfig](#fieldconfig-property) | FieldConfigSource
| |
+| [fieldConfigRegistry](#fieldconfigregistry-property) | FieldConfigOptionsRegistry
| |
+| [replaceVariables](#replacevariables-property) | InterpolateFunction
| |
+| [theme](#theme-property) | GrafanaTheme
| |
+| [timeZone](#timezone-property) | TimeZone
| |
+
+### autoMinMax property
+
+Signature
+
+```typescript
+autoMinMax?: boolean;
+```
+
+### data property
+
+Signature
+
+```typescript
+data?: DataFrame[];
+```
+
+### fieldConfig property
+
+Signature
+
+```typescript
+fieldConfig: FieldConfigSource;
+```
+
+### fieldConfigRegistry property
+
+Signature
+
+```typescript
+fieldConfigRegistry?: FieldConfigOptionsRegistry;
+```
+
+### replaceVariables property
+
+Signature
+
+```typescript
+replaceVariables: InterpolateFunction;
+```
+
+### theme property
+
+Signature
+
+```typescript
+theme: GrafanaTheme;
+```
+
+### timeZone property
+
+Signature
+
+```typescript
+timeZone?: TimeZone;
+```
diff --git a/docs/sources/packages_api/data/arrayvector.md b/docs/sources/packages_api/data/arrayvector.md
index 1777bfee1bd..0fb71ce21b9 100644
--- a/docs/sources/packages_api/data/arrayvector.md
+++ b/docs/sources/packages_api/data/arrayvector.md
@@ -13,7 +13,7 @@ draft = true
Signature
```typescript
-export declare class ArrayVectorstring
| |
| [env](#env-property) | string
| |
| [hasUpdate](#hasupdate-property) | boolean
| |
-| [isEnterprise](#isenterprise-property) | boolean
| |
+| [isEnterprise](#isenterprise-property) | boolean
| Is set to true when running Grafana Enterprise edition. |
| [latestVersion](#latestversion-property) | string
| |
| [version](#version-property) | string
| |
@@ -66,6 +68,8 @@ hasUpdate: boolean;
### isEnterprise property
+Is set to true when running Grafana Enterprise edition.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/calculatefieldtransformeroptions.md b/docs/sources/packages_api/data/calculatefieldtransformeroptions.md
new file mode 100644
index 00000000000..61cbee333bf
--- /dev/null
+++ b/docs/sources/packages_api/data/calculatefieldtransformeroptions.md
@@ -0,0 +1,71 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "CalculateFieldTransformerOptions"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## CalculateFieldTransformerOptions interface
+
+Signature
+
+```typescript
+export interface CalculateFieldTransformerOptions
+```
+Import
+
+```typescript
+import { CalculateFieldTransformerOptions } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [alias](#alias-property) | string
| |
+| [include](#include-property) | string
| |
+| [nullValueMode](#nullvaluemode-property) | NullValueMode
| |
+| [reducer](#reducer-property) | ReducerID
| |
+| [replaceFields](#replacefields-property) | boolean
| |
+
+### alias property
+
+Signature
+
+```typescript
+alias?: string;
+```
+
+### include property
+
+Signature
+
+```typescript
+include?: string;
+```
+
+### nullValueMode property
+
+Signature
+
+```typescript
+nullValueMode?: NullValueMode;
+```
+
+### reducer property
+
+Signature
+
+```typescript
+reducer: ReducerID;
+```
+
+### replaceFields property
+
+Signature
+
+```typescript
+replaceFields?: boolean;
+```
diff --git a/docs/sources/packages_api/data/circularvector.md b/docs/sources/packages_api/data/circularvector.md
index 7b7164bfa71..c537ebe57ca 100644
--- a/docs/sources/packages_api/data/circularvector.md
+++ b/docs/sources/packages_api/data/circularvector.md
@@ -17,7 +17,7 @@ This supports addting to the 'head' or 'tail' and will grow the buffer to match
Signature
```typescript
-export declare class CircularVectorboolean
| |
+
+### enableNamedColors property
+
+Signature
+
+```typescript
+enableNamedColors?: boolean;
+```
diff --git a/docs/sources/packages_api/data/createorderfieldscomparer.md b/docs/sources/packages_api/data/createorderfieldscomparer.md
new file mode 100644
index 00000000000..9762414ec8f
--- /dev/null
+++ b/docs/sources/packages_api/data/createorderfieldscomparer.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "createOrderFieldsComparer"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## createOrderFieldsComparer variable
+
+### createOrderFieldsComparer variable
+
+Signature
+
+```typescript
+createOrderFieldsComparer: (indexByName: Record() => ApplyFieldOverrideOptions | undefined
| |
+| [getTransformations](#gettransformations-property) | () => DataTransformerConfig[] | undefined
| |
+
+### getFieldOverrideOptions property
+
+Signature
+
+```typescript
+getFieldOverrideOptions: () => ApplyFieldOverrideOptions | undefined;
+```
+
+### getTransformations property
+
+Signature
+
+```typescript
+getTransformations: () => DataTransformerConfig[] | undefined;
+```
diff --git a/docs/sources/packages_api/data/dataframeview.md b/docs/sources/packages_api/data/dataframeview.md
index 43395acd443..97e0c163ca9 100644
--- a/docs/sources/packages_api/data/dataframeview.md
+++ b/docs/sources/packages_api/data/dataframeview.md
@@ -18,7 +18,7 @@ This abstraction will present the contents of a DataFrame as if it were a well t
Signature
```typescript
-export declare class DataFrameView(row: T) => void
| |
-
-Returns:
-
-`void`
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
### get method
The contents of the object returned from this function are optimized for use in a loop. All calls return the same object but the index has changed.
@@ -175,26 +152,6 @@ getFieldDisplayProcessor(colIndex: number): DisplayProcessor | null;
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
-### map method
-
-Signature
-
-```typescript
-map(item: T, index: number) => V
| |
-
-Returns:
-
-`V[]`
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
### toArray method
Signature
@@ -206,17 +163,3 @@ toArray(): T[];
`T[]`
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-### toJSON method
-
-Signature
-
-```typescript
-toJSON(): T[];
-```
-Returns:
-
-`T[]`
-
diff --git a/docs/sources/packages_api/data/datalink.md b/docs/sources/packages_api/data/datalink.md
index 03b153374d8..edd7847328f 100644
--- a/docs/sources/packages_api/data/datalink.md
+++ b/docs/sources/packages_api/data/datalink.md
@@ -26,12 +26,23 @@ import { DataLink } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
+| [meta](#meta-property) | {
datasourceUid?: string;
}
| |
| [onBuildUrl](#onbuildurl-property) | (event: DataLinkClickEvent) => string
| |
| [onClick](#onclick-property) | (event: DataLinkClickEvent) => void
| |
| [targetBlank](#targetblank-property) | boolean
| |
| [title](#title-property) | string
| |
| [url](#url-property) | string
| |
+### meta property
+
+Signature
+
+```typescript
+meta?: {
+ datasourceUid?: string;
+ };
+```
+
### onBuildUrl property
Signature
diff --git a/docs/sources/packages_api/ui/datalinkbuiltinvars.md b/docs/sources/packages_api/data/datalinkbuiltinvars.md
similarity index 82%
rename from docs/sources/packages_api/ui/datalinkbuiltinvars.md
rename to docs/sources/packages_api/data/datalinkbuiltinvars.md
index 3c8e2eb5f83..bf556c9f669 100644
--- a/docs/sources/packages_api/ui/datalinkbuiltinvars.md
+++ b/docs/sources/packages_api/data/datalinkbuiltinvars.md
@@ -3,7 +3,7 @@
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "DataLinkBuiltInVars"
-keywords = ["grafana","documentation","sdk","@grafana/ui"]
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
@@ -32,5 +32,5 @@ DataLinkBuiltInVars: {
Import
```typescript
-import { DataLinkBuiltInVars } from '@grafana/ui';
+import { DataLinkBuiltInVars } from '@grafana/data';
```
diff --git a/docs/sources/packages_api/data/datalinksfieldconfigsettings.md b/docs/sources/packages_api/data/datalinksfieldconfigsettings.md
new file mode 100644
index 00000000000..6527a7efd5b
--- /dev/null
+++ b/docs/sources/packages_api/data/datalinksfieldconfigsettings.md
@@ -0,0 +1,22 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DataLinksFieldConfigSettings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## DataLinksFieldConfigSettings interface
+
+Signature
+
+```typescript
+export interface DataLinksFieldConfigSettings
+```
+Import
+
+```typescript
+import { DataLinksFieldConfigSettings } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/datalinksoverrideprocessor.md b/docs/sources/packages_api/data/datalinksoverrideprocessor.md
new file mode 100644
index 00000000000..0c770e310c7
--- /dev/null
+++ b/docs/sources/packages_api/data/datalinksoverrideprocessor.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "dataLinksOverrideProcessor"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## dataLinksOverrideProcessor variable
+
+### dataLinksOverrideProcessor variable
+
+Signature
+
+```typescript
+dataLinksOverrideProcessor: (value: any, _context: FieldOverrideContext, _settings?: DataLinksFieldConfigSettings | undefined) => DataLink[]
+```
+Import
+
+```typescript
+import { dataLinksOverrideProcessor } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/dataquery.md b/docs/sources/packages_api/data/dataquery.md
index 418968de598..1c4ac7897ce 100644
--- a/docs/sources/packages_api/data/dataquery.md
+++ b/docs/sources/packages_api/data/dataquery.md
@@ -10,6 +10,8 @@ draft = true
## DataQuery interface
+These are the common properties available to all queries in all datasources Specific implementations will extend this interface adding the required properties for the given context
+
Signature
```typescript
@@ -25,10 +27,9 @@ import { DataQuery } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
| [datasource](#datasource-property) | string | null
| For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. |
-| [hide](#hide-property) | boolean
| true if query is disabled (ie not executed / sent to TSDB) |
+| [hide](#hide-property) | boolean
| true if query is disabled (ie should not be returned to the dashboard) |
| [key](#key-property) | string
| Unique, guid like, string used in explore mode |
-| [maxLines](#maxlines-property) | number
| For limiting result lines. |
-| [metric](#metric-property) | any
| |
+| [queryType](#querytype-property) | string
| Specify the query flavor |
| [refId](#refid-property) | string
| A - Z |
### datasource property
@@ -43,7 +44,7 @@ datasource?: string | null;
### hide property
-true if query is disabled (ie not executed / sent to TSDB)
+true if query is disabled (ie should not be returned to the dashboard)
Signature
@@ -61,22 +62,14 @@ Unique, guid like, string used in explore mode
key?: string;
```
-### maxLines property
+### queryType property
-For limiting result lines.
+Specify the query flavor
Signature
```typescript
-maxLines?: number;
-```
-
-### metric property
-
-Signature
-
-```typescript
-metric?: any;
+queryType?: string;
```
### refId property
diff --git a/docs/sources/packages_api/data/dataquerytimings.md b/docs/sources/packages_api/data/dataquerytimings.md
new file mode 100644
index 00000000000..efc1165d345
--- /dev/null
+++ b/docs/sources/packages_api/data/dataquerytimings.md
@@ -0,0 +1,35 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DataQueryTimings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## DataQueryTimings interface
+
+Signature
+
+```typescript
+export interface DataQueryTimings
+```
+Import
+
+```typescript
+import { DataQueryTimings } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [dataProcessingTime](#dataprocessingtime-property) | number
| |
+
+### dataProcessingTime property
+
+Signature
+
+```typescript
+dataProcessingTime: number;
+```
diff --git a/docs/sources/packages_api/data/datasourceapi.md b/docs/sources/packages_api/data/datasourceapi.md
index 0cd0df685f4..d33d50a3669 100644
--- a/docs/sources/packages_api/data/datasourceapi.md
+++ b/docs/sources/packages_api/data/datasourceapi.md
@@ -144,7 +144,7 @@ static information about the datasource
Signature
```typescript
-meta?: DataSourcePluginMeta;
+meta: DataSourcePluginMeta;
```
### name property
diff --git a/docs/sources/packages_api/data/datasourceinstancesettings.md b/docs/sources/packages_api/data/datasourceinstancesettings.md
index 5373f5c0609..6a6bd76909a 100644
--- a/docs/sources/packages_api/data/datasourceinstancesettings.md
+++ b/docs/sources/packages_api/data/datasourceinstancesettings.md
@@ -34,6 +34,7 @@ import { DataSourceInstanceSettings } from '@grafana/data';
| [name](#name-property) | string
| |
| [password](#password-property) | string
| |
| [type](#type-property) | string
| |
+| [uid](#uid-property) | string
| |
| [url](#url-property) | string
| |
| [username](#username-property) | string
| |
| [withCredentials](#withcredentials-property) | boolean
| |
@@ -104,6 +105,14 @@ password?: string;
type: string;
```
+### uid property
+
+Signature
+
+```typescript
+uid: string;
+```
+
### url property
Signature
diff --git a/docs/sources/packages_api/data/datasourcepluginmeta.md b/docs/sources/packages_api/data/datasourcepluginmeta.md
index f65ce9e2672..15ebacf6c09 100644
--- a/docs/sources/packages_api/data/datasourcepluginmeta.md
+++ b/docs/sources/packages_api/data/datasourcepluginmeta.md
@@ -35,6 +35,7 @@ import { DataSourcePluginMeta } from '@grafana/data';
| [queryOptions](#queryoptions-property) | PluginMetaQueryOptions
| |
| [sort](#sort-property) | number
| |
| [streaming](#streaming-property) | boolean
| |
+| [tracing](#tracing-property) | boolean
| |
### alerting property
@@ -123,3 +124,11 @@ sort?: number;
```typescript
streaming?: boolean;
```
+
+### tracing property
+
+Signature
+
+```typescript
+tracing?: boolean;
+```
diff --git a/docs/sources/packages_api/data/datatransformer.md b/docs/sources/packages_api/data/datatransformer.md
index ebb55c8ebaf..fd09b699fad 100644
--- a/docs/sources/packages_api/data/datatransformer.md
+++ b/docs/sources/packages_api/data/datatransformer.md
@@ -12,7 +12,7 @@ draft = true
### DataTransformer type
-Immutable data transformation
+Function that transform data frames (AKA transformer)
Signature
diff --git a/docs/sources/packages_api/data/datatransformerconfig.md b/docs/sources/packages_api/data/datatransformerconfig.md
index 81814311c7b..3af459ceab3 100644
--- a/docs/sources/packages_api/data/datatransformerconfig.md
+++ b/docs/sources/packages_api/data/datatransformerconfig.md
@@ -24,11 +24,13 @@ import { DataTransformerConfig } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [id](#id-property) | string
| |
-| [options](#options-property) | TOptions
| |
+| [id](#id-property) | string
| Unique identifier of transformer |
+| [options](#options-property) | TOptions
| Options to be passed to the transformer |
### id property
+Unique identifier of transformer
+
Signature
```typescript
@@ -37,6 +39,8 @@ id: string;
### options property
+Options to be passed to the transformer
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/datatransformerid.md b/docs/sources/packages_api/data/datatransformerid.md
index dbf8aa76795..1eda8062ad7 100644
--- a/docs/sources/packages_api/data/datatransformerid.md
+++ b/docs/sources/packages_api/data/datatransformerid.md
@@ -28,10 +28,15 @@ import { DataTransformerID } from '@grafana/data';
| Member | Value | Description |
| --- | --- | --- |
| append | "append"
| |
+| calculateField | "calculateField"
| |
| filterByRefId | "filterByRefId"
| |
| filterFields | "filterFields"
| |
| filterFieldsByName | "filterFieldsByName"
| |
| filterFrames | "filterFrames"
| |
| noop | "noop"
| |
+| order | "order"
| |
+| organize | "organize"
| |
| reduce | "reduce"
| |
+| rename | "rename"
| |
+| seriesToColumns | "seriesToColumns"
| |
diff --git a/docs/sources/packages_api/data/datatransformerinfo.md b/docs/sources/packages_api/data/datatransformerinfo.md
index f06fd163f9a..6b9a6f28b50 100644
--- a/docs/sources/packages_api/data/datatransformerinfo.md
+++ b/docs/sources/packages_api/data/datatransformerinfo.md
@@ -24,10 +24,12 @@ import { DataTransformerInfo } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [transformer](#transformer-property) | (options: TOptions) => DataTransformer
| |
+| [transformer](#transformer-property) | (options: TOptions) => DataTransformer
| Function that configures transformation and returns a transformer |
### transformer property
+Function that configures transformation and returns a transformer
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/datemath.md b/docs/sources/packages_api/data/datemath.md
index 45db080a88d..3bccc1ac85c 100644
--- a/docs/sources/packages_api/data/datemath.md
+++ b/docs/sources/packages_api/data/datemath.md
@@ -10,13 +10,11 @@ draft = true
## dateMath namespace
+> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
+>
+
### dateMath namespace
-Signature
-
-```typescript
-export declare namespace dateMath
-```
Import
```typescript
diff --git a/docs/sources/packages_api/data/datemath/ismathstring.md b/docs/sources/packages_api/data/datemath/ismathstring.md
index ef842130b09..4c37a0ae86b 100644
--- a/docs/sources/packages_api/data/datemath/ismathstring.md
+++ b/docs/sources/packages_api/data/datemath/ismathstring.md
@@ -15,7 +15,7 @@ draft = true
Signature
```typescript
-function isMathString(text: string | DateTime | Date): boolean;
+export declare function isMathString(text: string | DateTime | Date): boolean;
```
Import
diff --git a/docs/sources/packages_api/data/datemath/isvalid.md b/docs/sources/packages_api/data/datemath/isvalid.md
index 5fcff223611..7f6d0855649 100644
--- a/docs/sources/packages_api/data/datemath/isvalid.md
+++ b/docs/sources/packages_api/data/datemath/isvalid.md
@@ -17,7 +17,7 @@ Checks if text is a valid date which in this context means that it is either a M
Signature
```typescript
-function isValid(text: string | DateTime): boolean;
+export declare function isValid(text: string | DateTime): boolean;
```
Import
diff --git a/docs/sources/packages_api/data/datemath/parse.md b/docs/sources/packages_api/data/datemath/parse.md
index 4ad4c0d1248..2debe831f5e 100644
--- a/docs/sources/packages_api/data/datemath/parse.md
+++ b/docs/sources/packages_api/data/datemath/parse.md
@@ -17,7 +17,7 @@ Parses different types input to a moment instance. There is a specific formattin
Signature
```typescript
-function parse(text: string | DateTime | Date, roundUp?: boolean, timezone?: TimeZone): DateTime | undefined;
+export declare function parse(text?: string | DateTime | Date | null, roundUp?: boolean, timezone?: TimeZone): DateTime | undefined;
```
Import
@@ -29,9 +29,9 @@ const { parse } = dateMath;
| Parameter | Type | Description |
| --- | --- | --- |
-| text | string | DateTime | Date
| |
-| roundUp | boolean
| |
-| timezone | TimeZone
| |
+| text | string | DateTime | Date | null
| |
+| roundUp | boolean
| See parseDateMath function. |
+| timezone | TimeZone
| Only string 'utc' is acceptable here, for anything else, local timezone is used. |
Returns:
diff --git a/docs/sources/packages_api/data/datemath/parsedatemath.md b/docs/sources/packages_api/data/datemath/parsedatemath.md
index 88a44af6e56..62ed421bd31 100644
--- a/docs/sources/packages_api/data/datemath/parsedatemath.md
+++ b/docs/sources/packages_api/data/datemath/parsedatemath.md
@@ -17,7 +17,7 @@ Parses math part of the time string and shifts supplied time according to that m
Signature
```typescript
-function parseDateMath(mathString: string, time: any, roundUp?: boolean): DateTime | undefined;
+export declare function parseDateMath(mathString: string, time: any, roundUp?: boolean): DateTime | undefined;
```
Import
@@ -31,7 +31,7 @@ const { parseDateMath } = dateMath;
| --- | --- | --- |
| mathString | string
| |
| time | any
| |
-| roundUp | boolean
| |
+| roundUp | boolean
| If true it will round the time to endOf time unit, otherwise to startOf time unit. |
Returns:
diff --git a/docs/sources/packages_api/data/displayvalue.md b/docs/sources/packages_api/data/displayvalue.md
index f63409534fa..0ebead706c8 100644
--- a/docs/sources/packages_api/data/displayvalue.md
+++ b/docs/sources/packages_api/data/displayvalue.md
@@ -24,13 +24,15 @@ import { DisplayValue } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [color](#color-property) | string
| |
-| [numeric](#numeric-property) | number
| |
-| [percent](#percent-property) | number
| |
+| [color](#color-property) | string
| Color based on configs or Threshold |
+| [numeric](#numeric-property) | number
| Use isNaN to check if it is a real number |
+| [percent](#percent-property) | number
| 0-1 between min & max |
| [title](#title-property) | string
| |
### color property
+Color based on configs or Threshold
+
Signature
```typescript
@@ -39,6 +41,8 @@ color?: string;
### numeric property
+Use isNaN to check if it is a real number
+
Signature
```typescript
@@ -47,6 +51,8 @@ numeric: number;
### percent property
+0-1 between min & max
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/dostandardcalcs.md b/docs/sources/packages_api/data/dostandardcalcs.md
new file mode 100644
index 00000000000..f16e045962c
--- /dev/null
+++ b/docs/sources/packages_api/data/dostandardcalcs.md
@@ -0,0 +1,36 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "doStandardCalcs"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## doStandardCalcs() function
+
+### doStandardCalcs() function
+
+Signature
+
+```typescript
+export declare function doStandardCalcs(field: Field, ignoreNulls: boolean, nullAsZero: boolean): FieldCalcs;
+```
+Import
+
+```typescript
+import { doStandardCalcs } from '@grafana/data';
+```
+Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| field | Field
| |
+| ignoreNulls | boolean
| |
+| nullAsZero | boolean
| |
+
+Returns:
+
+`FieldCalcs`
+
diff --git a/docs/sources/packages_api/data/dynamicconfigvalue.md b/docs/sources/packages_api/data/dynamicconfigvalue.md
index c79a19cb36f..a6c96c17837 100644
--- a/docs/sources/packages_api/data/dynamicconfigvalue.md
+++ b/docs/sources/packages_api/data/dynamicconfigvalue.md
@@ -24,24 +24,15 @@ import { DynamicConfigValue } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [custom](#custom-property) | boolean
| |
-| [prop](#prop-property) | string
| |
+| [id](#id-property) | string
| |
| [value](#value-property) | any
| |
-### custom property
+### id property
Signature
```typescript
-custom?: boolean;
-```
-
-### prop property
-
-Signature
-
-```typescript
-prop: string;
+id: string;
```
### value property
diff --git a/docs/sources/packages_api/data/exploremode.md b/docs/sources/packages_api/data/exploremode.md
index aa87f8fe679..4fe995bc8bc 100644
--- a/docs/sources/packages_api/data/exploremode.md
+++ b/docs/sources/packages_api/data/exploremode.md
@@ -29,4 +29,5 @@ import { ExploreMode } from '@grafana/data';
| --- | --- | --- |
| Logs | "Logs"
| |
| Metrics | "Metrics"
| |
+| Tracing | "Tracing"
| |
diff --git a/docs/sources/packages_api/data/featuretoggles.md b/docs/sources/packages_api/data/featuretoggles.md
new file mode 100644
index 00000000000..8d85c1aa029
--- /dev/null
+++ b/docs/sources/packages_api/data/featuretoggles.md
@@ -0,0 +1,86 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "FeatureToggles"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## FeatureToggles interface
+
+Describes available feature toggles in Grafana. These can be configured via the `conf/custom.ini` to enable features under development or not yet available in stable version.
+
+Signature
+
+```typescript
+export interface FeatureToggles
+```
+Import
+
+```typescript
+import { FeatureToggles } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [expressions](#expressions-property) | boolean
| |
+| [meta](#meta-property) | boolean
| |
+| [newEdit](#newedit-property) | boolean
| |
+| [newVariables](#newvariables-property) | boolean
| |
+| [tracingIntegration](#tracingintegration-property) | boolean
| |
+| [transformations](#transformations-property) | boolean
| |
+
+### expressions property
+
+Signature
+
+```typescript
+expressions: boolean;
+```
+
+### meta property
+
+Signature
+
+```typescript
+meta: boolean;
+```
+
+## Remarks
+
+Available only in Grafana Enterprise
+
+### newEdit property
+
+Signature
+
+```typescript
+newEdit: boolean;
+```
+
+### newVariables property
+
+Signature
+
+```typescript
+newVariables: boolean;
+```
+
+### tracingIntegration property
+
+Signature
+
+```typescript
+tracingIntegration: boolean;
+```
+
+### transformations property
+
+Signature
+
+```typescript
+transformations: boolean;
+```
diff --git a/docs/sources/packages_api/data/field.md b/docs/sources/packages_api/data/field.md
index d316d5ad3f2..16d86e77bc8 100644
--- a/docs/sources/packages_api/data/field.md
+++ b/docs/sources/packages_api/data/field.md
@@ -27,6 +27,7 @@ import { Field } from '@grafana/data';
| [calcs](#calcs-property) | FieldCalcs
| Cache of reduced values |
| [config](#config-property) | FieldConfig
| Meta info about how field and how to display it |
| [display](#display-property) | DisplayProcessor
| Convert a value for display |
+| [getLinks](#getlinks-property) | (config: ValueLinkConfig) => Array<LinkModel<Field>>
| Get value data links with variables interpolated |
| [labels](#labels-property) | Labels
| |
| [name](#name-property) | string
| Name of the field (column) |
| [parse](#parse-property) | (value: any) => T
| Convert text to the field value |
@@ -63,6 +64,16 @@ Convert a value for display
display?: DisplayProcessor;
```
+### getLinks property
+
+Get value data links with variables interpolated
+
+Signature
+
+```typescript
+getLinks?: (config: ValueLinkConfig) => ArrayFieldColor
| |
-| [custom](#custom-property) | Record<string, any>
| |
+| [custom](#custom-property) | TOptions
| |
| [decimals](#decimals-property) | number | null
| |
| [filterable](#filterable-property) | boolean
| |
| [links](#links-property) | DataLink[]
| |
@@ -56,7 +56,7 @@ color?: FieldColor;
Signature
```typescript
-custom?: RecordFieldConfigEditorConfig<TOptions, TSettings, boolean>
| |
+
+Returns:
+
+`this`
+
+### addColorPicker method
+
+Signature
+
+```typescript
+addColorPickerFieldConfigEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
+### addNumberInput method
+
+Signature
+
+```typescript
+addNumberInputFieldConfigEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number>
| |
+
+Returns:
+
+`this`
+
+### addRadio method
+
+Signature
+
+```typescript
+addRadioFieldConfigEditorConfig<TOptions, TSettings, TOption>
| |
+
+Returns:
+
+`this`
+
+### addSelect method
+
+Signature
+
+```typescript
+addSelectFieldConfigEditorConfig<TOptions, TSettings, TOption>
| |
+
+Returns:
+
+`this`
+
+### addTextInput method
+
+Signature
+
+```typescript
+addTextInputFieldConfigEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
+### addUnitPicker method
+
+Signature
+
+```typescript
+addUnitPickerFieldConfigEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
diff --git a/docs/sources/packages_api/data/fieldconfigeditorconfig.md b/docs/sources/packages_api/data/fieldconfigeditorconfig.md
new file mode 100644
index 00000000000..3eb5012303e
--- /dev/null
+++ b/docs/sources/packages_api/data/fieldconfigeditorconfig.md
@@ -0,0 +1,126 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "FieldConfigEditorConfig"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## FieldConfigEditorConfig interface
+
+Signature
+
+```typescript
+export interface FieldConfigEditorConfigstring[]
| Array of strings representing category of the field config property. First element in the array will make option render as collapsible section. |
+| [defaultValue](#defaultvalue-property) | TValue
| |
+| [description](#description-property) | string
| Description of the field config property. Will be displayed in the UI as form element description. |
+| [name](#name-property) | string
| Name of the field config property. Will be displayed in the UI as form element label. |
+| [path](#path-property) | (keyof TOptions & string) | string
| Path of the field config property to control. |
+| [settings](#settings-property) | TSettings
| Custom settings of the editor. |
+| [shouldApply](#shouldapply-property) | (field: Field) => boolean
| Function that allows specifying whether or not this field config should apply to a given field. |
+| [showIf](#showif-property) | (currentConfig: TOptions) => boolean
| Function that enables configuration of when field config property editor should be shown based on current panel field config. |
+
+### category property
+
+Array of strings representing category of the field config property. First element in the array will make option render as collapsible section.
+
+Signature
+
+```typescript
+category?: string[];
+```
+
+### defaultValue property
+
+Signature
+
+```typescript
+defaultValue?: TValue;
+```
+
+### description property
+
+Description of the field config property. Will be displayed in the UI as form element description.
+
+Signature
+
+```typescript
+description?: string;
+```
+
+### name property
+
+Name of the field config property. Will be displayed in the UI as form element label.
+
+Signature
+
+```typescript
+name: string;
+```
+
+### path property
+
+Path of the field config property to control.
+
+Signature
+
+```typescript
+path: (keyof TOptions & string) | string;
+```
+
+## Example
+
+Given field config object of a type:
+
+```ts
+interface CustomFieldConfig {
+ a: {
+ b: string;
+ }
+}
+
+```
+path can be either 'a' or 'a.b'.
+
+### settings property
+
+Custom settings of the editor.
+
+Signature
+
+```typescript
+settings?: TSettings;
+```
+
+### shouldApply property
+
+Function that allows specifying whether or not this field config should apply to a given field.
+
+Signature
+
+```typescript
+shouldApply?: (field: Field) => boolean;
+```
+
+### showIf property
+
+Function that enables configuration of when field config property editor should be shown based on current panel field config.
+
+Signature
+
+```typescript
+showIf?: (currentConfig: TOptions) => boolean;
+```
diff --git a/docs/sources/packages_api/data/fieldconfigeditorprops.md b/docs/sources/packages_api/data/fieldconfigeditorprops.md
index d9dbb26595e..c854606d7af 100644
--- a/docs/sources/packages_api/data/fieldconfigeditorprops.md
+++ b/docs/sources/packages_api/data/fieldconfigeditorprops.md
@@ -13,7 +13,7 @@ draft = true
Signature
```typescript
-export interface FieldConfigEditorPropsFieldOverrideContext
| |
-| [item](#item-property) | FieldPropertyEditorItem<TValue, TSettings>
| |
+| [item](#item-property) | FieldConfigPropertyItem<TValue, TSettings>
| |
| [onChange](#onchange-property) | (value?: TValue) => void
| |
| [value](#value-property) | TValue
| |
@@ -42,7 +42,7 @@ context: FieldOverrideContext;
Signature
```typescript
-item: FieldPropertyEditorItem"color"
| |
+| Decimals | "decimals"
| |
+| Links | "links"
| |
+| Mappings | "mappings"
| |
+| Max | "max"
| |
+| Min | "min"
| |
+| NoValue | "noValue"
| |
+| Thresholds | "thresholds"
| |
+| Title | "title"
| |
+| Unit | "unit"
| |
+
diff --git a/docs/sources/packages_api/data/fieldpropertyeditoritem.md b/docs/sources/packages_api/data/fieldconfigpropertyitem.md
similarity index 57%
rename from docs/sources/packages_api/data/fieldpropertyeditoritem.md
rename to docs/sources/packages_api/data/fieldconfigpropertyitem.md
index 977a8367424..cf2609acac4 100644
--- a/docs/sources/packages_api/data/fieldpropertyeditoritem.md
+++ b/docs/sources/packages_api/data/fieldconfigpropertyitem.md
@@ -2,40 +2,41 @@
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
-title = "FieldPropertyEditorItem"
+title = "FieldConfigPropertyItem"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
-## FieldPropertyEditorItem interface
+## FieldConfigPropertyItem interface
Signature
```typescript
-export interface FieldPropertyEditorItemComponentType<FieldConfigEditorProps<TValue, TSettings>>
| |
+| [isCustom](#iscustom-property) | boolean
| true for plugin field config properties |
| [override](#override-property) | ComponentType<FieldOverrideEditorProps<TValue, TSettings>>
| |
-| [process](#process-property) | (value: any, context: FieldOverrideContext, settings: TSettings) => TValue
| |
-| [settings](#settings-property) | TSettings
| |
+| [process](#process-property) | (value: any, context: FieldOverrideContext, settings?: TSettings) => TValue | undefined | null
| |
| [shouldApply](#shouldapply-property) | (field: Field) => boolean
| |
-### editor property
+### isCustom property
+
+true for plugin field config properties
Signature
```typescript
-editor: ComponentTypeFieldConfig
| |
+| [defaults](#defaults-property) | FieldConfig<TOptions>
| |
| [overrides](#overrides-property) | ConfigOverrideRule[]
| |
### defaults property
@@ -32,7 +32,7 @@ import { FieldConfigSource } from '@grafana/data';
Signature
```typescript
-defaults: FieldConfig;
+defaults: FieldConfignumber
| |
| [display](#display-property) | DisplayValue
| |
| [field](#field-property) | FieldConfig
| |
+| [getLinks](#getlinks-property) | () => LinkModel[]
| |
| [name](#name-property) | string
| |
| [rowIndex](#rowindex-property) | number
| |
| [sparkline](#sparkline-property) | GraphSeriesValue[][]
| |
@@ -56,6 +57,14 @@ display: DisplayValue;
field: FieldConfig;
```
+### getLinks property
+
+Signature
+
+```typescript
+getLinks?: () => LinkModel[];
+```
+
### name property
Signature
diff --git a/docs/sources/packages_api/data/fieldoverrideeditorprops.md b/docs/sources/packages_api/data/fieldoverrideeditorprops.md
index 7f51820d237..45475536e16 100644
--- a/docs/sources/packages_api/data/fieldoverrideeditorprops.md
+++ b/docs/sources/packages_api/data/fieldoverrideeditorprops.md
@@ -13,7 +13,7 @@ draft = true
Signature
```typescript
-export interface FieldOverrideEditorPropsFieldOverrideContext
| |
-| [item](#item-property) | FieldPropertyEditorItem<TValue, TSettings>
| |
-| [onChange](#onchange-property) | (value?: any) => void
| |
-| [value](#value-property) | TValue
| |
+| [item](#item-property) | FieldConfigPropertyItem<TValue, TSettings>
| |
### context property
@@ -42,21 +40,5 @@ context: FieldOverrideContext;
Signature
```typescript
-item: FieldPropertyEditorItem"other"
| |
| string | "string"
| |
| time | "time"
| |
+| trace | "trace"
| |
diff --git a/docs/sources/packages_api/data/finduniquelabels.md b/docs/sources/packages_api/data/finduniquelabels.md
index 07ab0dce90c..7e0057928c9 100644
--- a/docs/sources/packages_api/data/finduniquelabels.md
+++ b/docs/sources/packages_api/data/finduniquelabels.md
@@ -17,7 +17,7 @@ Returns a map of labels that are in `labels`, but not in `commonLabels`<
Signature
```typescript
-export declare function findUniqueLabels(labels: Labels, commonLabels: Labels): Labels;
+export declare function findUniqueLabels(labels: Labels | undefined, commonLabels: Labels): Labels;
```
Import
@@ -28,7 +28,7 @@ import { findUniqueLabels } from '@grafana/data';
| Parameter | Type | Description |
| --- | --- | --- |
-| labels | Labels
| |
+| labels | Labels | undefined
| |
| commonLabels | Labels
| |
Returns:
diff --git a/docs/sources/packages_api/data/getfielddisplayvaluesoptions.md b/docs/sources/packages_api/data/getfielddisplayvaluesoptions.md
index 9fcd8e9ba79..3b97aebb3c7 100644
--- a/docs/sources/packages_api/data/getfielddisplayvaluesoptions.md
+++ b/docs/sources/packages_api/data/getfielddisplayvaluesoptions.md
@@ -26,7 +26,8 @@ import { GetFieldDisplayValuesOptions } from '@grafana/data';
| --- | --- | --- |
| [autoMinMax](#autominmax-property) | boolean
| |
| [data](#data-property) | DataFrame[]
| |
-| [fieldOptions](#fieldoptions-property) | FieldDisplayOptions
| |
+| [fieldConfig](#fieldconfig-property) | FieldConfigSource
| |
+| [reduceOptions](#reduceoptions-property) | ReduceDataOptions
| |
| [replaceVariables](#replacevariables-property) | InterpolateFunction
| |
| [sparkline](#sparkline-property) | boolean
| |
| [theme](#theme-property) | GrafanaTheme
| |
@@ -47,12 +48,20 @@ autoMinMax?: boolean;
data?: DataFrame[];
```
-### fieldOptions property
+### fieldConfig property
Signature
```typescript
-fieldOptions: FieldDisplayOptions;
+fieldConfig: FieldConfigSource;
+```
+
+### reduceOptions property
+
+Signature
+
+```typescript
+reduceOptions: ReduceDataOptions;
```
### replaceVariables property
diff --git a/docs/sources/packages_api/data/getflotpairsconstant.md b/docs/sources/packages_api/data/getflotpairsconstant.md
index d172b32129d..b8e89f568d3 100644
--- a/docs/sources/packages_api/data/getflotpairsconstant.md
+++ b/docs/sources/packages_api/data/getflotpairsconstant.md
@@ -28,8 +28,8 @@ import { getFlotPairsConstant } from '@grafana/data';
| Parameter | Type | Description |
| --- | --- | --- |
-| seriesData | GraphSeriesValue[][]
| |
-| range | TimeRange
| |
+| seriesData | GraphSeriesValue[][]
| Series |
+| range | TimeRange
| Start and end time for the constant series |
Returns:
diff --git a/docs/sources/packages_api/data/getloglevelfromkey.md b/docs/sources/packages_api/data/getloglevelfromkey.md
index 1ed6998be9a..80ba74ac803 100644
--- a/docs/sources/packages_api/data/getloglevelfromkey.md
+++ b/docs/sources/packages_api/data/getloglevelfromkey.md
@@ -15,7 +15,7 @@ draft = true
Signature
```typescript
-export declare function getLogLevelFromKey(key: string): LogLevel;
+export declare function getLogLevelFromKey(key: string | number): LogLevel;
```
Import
@@ -26,7 +26,7 @@ import { getLogLevelFromKey } from '@grafana/data';
| Parameter | Type | Description |
| --- | --- | --- |
-| key | string
| |
+| key | string | number
| |
Returns:
diff --git a/docs/sources/packages_api/data/getseriestimestep.md b/docs/sources/packages_api/data/getseriestimestep.md
index 54f569cd56e..3b451f67017 100644
--- a/docs/sources/packages_api/data/getseriestimestep.md
+++ b/docs/sources/packages_api/data/getseriestimestep.md
@@ -17,7 +17,7 @@ Returns minimal time step from series time field
Signature
```typescript
-getSeriesTimeStep: (timeField: Fieldstring
| |
+| id | string | null
| |
Returns:
diff --git a/docs/sources/packages_api/data/grafanaconfig.md b/docs/sources/packages_api/data/grafanaconfig.md
new file mode 100644
index 00000000000..548ba8e3997
--- /dev/null
+++ b/docs/sources/packages_api/data/grafanaconfig.md
@@ -0,0 +1,365 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "GrafanaConfig"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## GrafanaConfig interface
+
+Describes all the different Grafana configuration values available for an instance.
+
+Signature
+
+```typescript
+export interface GrafanaConfig
+```
+Import
+
+```typescript
+import { GrafanaConfig } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [alertingEnabled](#alertingenabled-property) | boolean
| |
+| [alertingErrorOrTimeout](#alertingerrorortimeout-property) | string
| |
+| [alertingMinInterval](#alertingmininterval-property) | number
| |
+| [alertingNoDataOrNullValues](#alertingnodataornullvalues-property) | string
| |
+| [allowOrgCreate](#alloworgcreate-property) | boolean
| |
+| [appSubUrl](#appsuburl-property) | string
| |
+| [authProxyEnabled](#authproxyenabled-property) | boolean
| |
+| [autoAssignOrg](#autoassignorg-property) | boolean
| |
+| [bootData](#bootdata-property) | any
| |
+| [buildInfo](#buildinfo-property) | BuildInfo
| |
+| [datasources](#datasources-property) | {
[str: string]: DataSourceInstanceSettings;
}
| |
+| [defaultDatasource](#defaultdatasource-property) | string
| |
+| [disableLoginForm](#disableloginform-property) | boolean
| |
+| [disableSanitizeHtml](#disablesanitizehtml-property) | boolean
| |
+| [disableUserSignUp](#disableusersignup-property) | boolean
| |
+| [editorsCanAdmin](#editorscanadmin-property) | boolean
| |
+| [exploreEnabled](#exploreenabled-property) | boolean
| |
+| [externalUserMngInfo](#externalusermnginfo-property) | string
| |
+| [externalUserMngLinkName](#externalusermnglinkname-property) | string
| |
+| [externalUserMngLinkUrl](#externalusermnglinkurl-property) | string
| |
+| [featureToggles](#featuretoggles-property) | FeatureToggles
| |
+| [ldapEnabled](#ldapenabled-property) | boolean
| |
+| [licenseInfo](#licenseinfo-property) | LicenseInfo
| |
+| [loginError](#loginerror-property) | any
| |
+| [loginHint](#loginhint-property) | any
| |
+| [minRefreshInterval](#minrefreshinterval-property) | string
| |
+| [navTree](#navtree-property) | any
| |
+| [newPanelTitle](#newpaneltitle-property) | string
| |
+| [oauth](#oauth-property) | any
| |
+| [panels](#panels-property) | {
[key: string]: PanelPluginMeta;
}
| |
+| [passwordHint](#passwordhint-property) | any
| |
+| [pluginsToPreload](#pluginstopreload-property) | string[]
| |
+| [samlEnabled](#samlenabled-property) | boolean
| |
+| [theme](#theme-property) | GrafanaTheme
| |
+| [verifyEmailEnabled](#verifyemailenabled-property) | boolean
| |
+| [viewersCanEdit](#viewerscanedit-property) | boolean
| |
+| [windowTitlePrefix](#windowtitleprefix-property) | string
| |
+
+### alertingEnabled property
+
+Signature
+
+```typescript
+alertingEnabled: boolean;
+```
+
+### alertingErrorOrTimeout property
+
+Signature
+
+```typescript
+alertingErrorOrTimeout: string;
+```
+
+### alertingMinInterval property
+
+Signature
+
+```typescript
+alertingMinInterval: number;
+```
+
+### alertingNoDataOrNullValues property
+
+Signature
+
+```typescript
+alertingNoDataOrNullValues: string;
+```
+
+### allowOrgCreate property
+
+Signature
+
+```typescript
+allowOrgCreate: boolean;
+```
+
+### appSubUrl property
+
+Signature
+
+```typescript
+appSubUrl: string;
+```
+
+### authProxyEnabled property
+
+Signature
+
+```typescript
+authProxyEnabled: boolean;
+```
+
+### autoAssignOrg property
+
+Signature
+
+```typescript
+autoAssignOrg: boolean;
+```
+
+### bootData property
+
+Signature
+
+```typescript
+bootData: any;
+```
+
+### buildInfo property
+
+Signature
+
+```typescript
+buildInfo: BuildInfo;
+```
+
+### datasources property
+
+Signature
+
+```typescript
+datasources: {
+ [str: string]: DataSourceInstanceSettings;
+ };
+```
+
+### defaultDatasource property
+
+Signature
+
+```typescript
+defaultDatasource: string;
+```
+
+### disableLoginForm property
+
+Signature
+
+```typescript
+disableLoginForm: boolean;
+```
+
+### disableSanitizeHtml property
+
+Signature
+
+```typescript
+disableSanitizeHtml: boolean;
+```
+
+### disableUserSignUp property
+
+Signature
+
+```typescript
+disableUserSignUp: boolean;
+```
+
+### editorsCanAdmin property
+
+Signature
+
+```typescript
+editorsCanAdmin: boolean;
+```
+
+### exploreEnabled property
+
+Signature
+
+```typescript
+exploreEnabled: boolean;
+```
+
+### externalUserMngInfo property
+
+Signature
+
+```typescript
+externalUserMngInfo: string;
+```
+
+### externalUserMngLinkName property
+
+Signature
+
+```typescript
+externalUserMngLinkName: string;
+```
+
+### externalUserMngLinkUrl property
+
+Signature
+
+```typescript
+externalUserMngLinkUrl: string;
+```
+
+### featureToggles property
+
+Signature
+
+```typescript
+featureToggles: FeatureToggles;
+```
+
+### ldapEnabled property
+
+Signature
+
+```typescript
+ldapEnabled: boolean;
+```
+
+### licenseInfo property
+
+Signature
+
+```typescript
+licenseInfo: LicenseInfo;
+```
+
+### loginError property
+
+Signature
+
+```typescript
+loginError: any;
+```
+
+### loginHint property
+
+Signature
+
+```typescript
+loginHint: any;
+```
+
+### minRefreshInterval property
+
+Signature
+
+```typescript
+minRefreshInterval: string;
+```
+
+### navTree property
+
+Signature
+
+```typescript
+navTree: any;
+```
+
+### newPanelTitle property
+
+Signature
+
+```typescript
+newPanelTitle: string;
+```
+
+### oauth property
+
+Signature
+
+```typescript
+oauth: any;
+```
+
+### panels property
+
+Signature
+
+```typescript
+panels: {
+ [key: string]: PanelPluginMeta;
+ };
+```
+
+### passwordHint property
+
+Signature
+
+```typescript
+passwordHint: any;
+```
+
+### pluginsToPreload property
+
+Signature
+
+```typescript
+pluginsToPreload: string[];
+```
+
+### samlEnabled property
+
+Signature
+
+```typescript
+samlEnabled: boolean;
+```
+
+### theme property
+
+Signature
+
+```typescript
+theme: GrafanaTheme;
+```
+
+### verifyEmailEnabled property
+
+Signature
+
+```typescript
+verifyEmailEnabled: boolean;
+```
+
+### viewersCanEdit property
+
+Signature
+
+```typescript
+viewersCanEdit: boolean;
+```
+
+### windowTitlePrefix property
+
+Signature
+
+```typescript
+windowTitlePrefix: string;
+```
diff --git a/docs/sources/packages_api/data/grafanatheme.md b/docs/sources/packages_api/data/grafanatheme.md
index 359d799e0df..b1b23f0af16 100644
--- a/docs/sources/packages_api/data/grafanatheme.md
+++ b/docs/sources/packages_api/data/grafanatheme.md
@@ -24,111 +24,49 @@ import { GrafanaTheme } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [background](#background-property) | {
dropdown: string;
scrollbar: string;
scrollbar2: string;
pageHeader: string;
}
| |
-| [colors](#colors-property) | {
black: string;
white: string;
dark1: string;
dark2: string;
dark3: string;
dark4: string;
dark5: string;
dark6: string;
dark7: string;
dark8: string;
dark9: string;
dark10: string;
gray1: string;
gray2: string;
gray3: string;
gray4: string;
gray5: string;
gray6: string;
gray7: string;
gray98: string;
gray95: string;
gray85: string;
gray70: string;
gray33: string;
gray25: string;
gray15: string;
gray10: string;
gray05: string;
blue95: string;
blue85: string;
blue77: string;
red88: string;
grayBlue: string;
inputBlack: string;
blue: string;
blue80: string;
blue77: string;
blue95: string;
blueFaint: string;
redBase: string;
redShade: string;
greenBase: string;
greenShade: string;
red: string;
yellow: string;
purple: string;
variable: string;
orange: string;
orangeDark: string;
queryRed: string;
queryGreen: string;
queryPurple: string;
queryKeyword: string;
queryOrange: string;
brandPrimary: string;
brandSuccess: string;
brandWarning: string;
brandDanger: string;
online: string;
warn: string;
critical: string;
link: string;
linkDisabled: string;
linkHover: string;
linkExternal: string;
body: string;
text: string;
textStrong: string;
textWeak: string;
textFaint: string;
textEmphasis: string;
panelBg: string;
bodyBg: string;
pageBg: string;
headingColor: string;
pageHeaderBorder: string;
formLabel: string;
formDescription: string;
formLegend: string;
formInputBg: string;
formInputBgDisabled: string;
formInputBorder: string;
formInputBorderHover: string;
formInputBorderActive: string;
formInputBorderInvalid: string;
formFocusOutline: string;
formInputText: string;
formInputDisabledText: string;
formInputTextStrong: string;
formInputTextWhite: string;
formValidationMessageText: string;
formValidationMessageBg: string;
formSwitchBg: string;
formSwitchBgActive: string;
formSwitchBgActiveHover: string;
formSwitchBgHover: string;
formSwitchBgDisabled: string;
formSwitchDot: string;
formCheckboxBg: string;
formCheckboxBgChecked: string;
formCheckboxBgCheckedHover: string;
formCheckboxCheckmark: string;
}
| |
+| [colors](#colors-property) | {
bg1: string;
bg2: string;
bg3: string;
border1: string;
border2: string;
border3: string;
bgBlue1: string;
bgBlue2: string;
dashboardBg: string;
bodyBg: string;
panelBg: string;
panelBorder: string;
pageHeaderBg: string;
pageHeaderBorder: string;
dropdownBg: string;
dropdownShadow: string;
dropdownOptionHoverBg: string;
link: string;
linkDisabled: string;
linkHover: string;
linkExternal: string;
textStrong: string;
textHeading: string;
text: string;
textSemiWeak: string;
textWeak: string;
textFaint: string;
textBlue: string;
formLabel: string;
formDescription: string;
formInputBg: string;
formInputBgDisabled: string;
formInputBorder: string;
formInputBorderHover: string;
formInputBorderActive: string;
formInputBorderInvalid: string;
formFocusOutline: string;
formInputText: string;
formInputDisabledText: string;
formInputPlaceholderText: string;
formValidationMessageText: string;
formValidationMessageBg: string;
formSwitchBg: string;
formSwitchBgActive: string;
formSwitchBgActiveHover: string;
formSwitchBgHover: string;
formSwitchBgDisabled: string;
formSwitchDot: string;
formCheckboxBg: string;
formCheckboxBgChecked: string;
formCheckboxBgCheckedHover: string;
formCheckboxCheckmark: string;
}
| |
| [isDark](#isdark-property) | boolean
| |
| [isLight](#islight-property) | boolean
| |
-| [shadow](#shadow-property) | {
pageHeader: string;
}
| |
+| [palette](#palette-property) | {
black: string;
white: string;
dark1: string;
dark2: string;
dark3: string;
dark4: string;
dark5: string;
dark6: string;
dark7: string;
dark8: string;
dark9: string;
dark10: string;
gray1: string;
gray2: string;
gray3: string;
gray4: string;
gray5: string;
gray6: string;
gray7: string;
gray98: string;
gray95: string;
gray85: string;
gray70: string;
gray60: string;
gray33: string;
gray25: string;
gray15: string;
gray10: string;
gray05: string;
blue95: string;
blue85: string;
blue80: string;
blue77: string;
red88: string;
redBase: string;
redShade: string;
greenBase: string;
greenShade: string;
red: string;
yellow: string;
purple: string;
orange: string;
orangeDark: string;
queryRed: string;
queryGreen: string;
queryPurple: string;
queryOrange: string;
brandPrimary: string;
brandSuccess: string;
brandWarning: string;
brandDanger: string;
online: string;
warn: string;
critical: string;
}
| |
+| [shadows](#shadows-property) | {
listItem: string;
}
| |
| [type](#type-property) | GrafanaThemeType
| |
-### background property
-
-Signature
-
-```typescript
-background: {
- dropdown: string;
- scrollbar: string;
- scrollbar2: string;
- pageHeader: string;
- };
-```
-
### colors property
Signature
```typescript
colors: {
- black: string;
- white: string;
- dark1: string;
- dark2: string;
- dark3: string;
- dark4: string;
- dark5: string;
- dark6: string;
- dark7: string;
- dark8: string;
- dark9: string;
- dark10: string;
- gray1: string;
- gray2: string;
- gray3: string;
- gray4: string;
- gray5: string;
- gray6: string;
- gray7: string;
- gray98: string;
- gray95: string;
- gray85: string;
- gray70: string;
- gray33: string;
- gray25: string;
- gray15: string;
- gray10: string;
- gray05: string;
- blue95: string;
- blue85: string;
- blue77: string;
- red88: string;
- grayBlue: string;
- inputBlack: string;
- blue: string;
- blue80: string;
- blue77: string;
- blue95: string;
- blueFaint: string;
- redBase: string;
- redShade: string;
- greenBase: string;
- greenShade: string;
- red: string;
- yellow: string;
- purple: string;
- variable: string;
- orange: string;
- orangeDark: string;
- queryRed: string;
- queryGreen: string;
- queryPurple: string;
- queryKeyword: string;
- queryOrange: string;
- brandPrimary: string;
- brandSuccess: string;
- brandWarning: string;
- brandDanger: string;
- online: string;
- warn: string;
- critical: string;
+ bg1: string;
+ bg2: string;
+ bg3: string;
+ border1: string;
+ border2: string;
+ border3: string;
+ bgBlue1: string;
+ bgBlue2: string;
+ dashboardBg: string;
+ bodyBg: string;
+ panelBg: string;
+ panelBorder: string;
+ pageHeaderBg: string;
+ pageHeaderBorder: string;
+ dropdownBg: string;
+ dropdownShadow: string;
+ dropdownOptionHoverBg: string;
link: string;
linkDisabled: string;
linkHover: string;
linkExternal: string;
- body: string;
- text: string;
textStrong: string;
+ textHeading: string;
+ text: string;
+ textSemiWeak: string;
textWeak: string;
textFaint: string;
- textEmphasis: string;
- panelBg: string;
- bodyBg: string;
- pageBg: string;
- headingColor: string;
- pageHeaderBorder: string;
+ textBlue: string;
formLabel: string;
formDescription: string;
- formLegend: string;
formInputBg: string;
formInputBgDisabled: string;
formInputBorder: string;
@@ -138,8 +76,7 @@ colors: {
formFocusOutline: string;
formInputText: string;
formInputDisabledText: string;
- formInputTextStrong: string;
- formInputTextWhite: string;
+ formInputPlaceholderText: string;
formValidationMessageText: string;
formValidationMessageBg: string;
formSwitchBg: string;
@@ -171,13 +108,76 @@ isDark: boolean;
isLight: boolean;
```
-### shadow property
+### palette property
Signature
```typescript
-shadow: {
- pageHeader: string;
+palette: {
+ black: string;
+ white: string;
+ dark1: string;
+ dark2: string;
+ dark3: string;
+ dark4: string;
+ dark5: string;
+ dark6: string;
+ dark7: string;
+ dark8: string;
+ dark9: string;
+ dark10: string;
+ gray1: string;
+ gray2: string;
+ gray3: string;
+ gray4: string;
+ gray5: string;
+ gray6: string;
+ gray7: string;
+ gray98: string;
+ gray95: string;
+ gray85: string;
+ gray70: string;
+ gray60: string;
+ gray33: string;
+ gray25: string;
+ gray15: string;
+ gray10: string;
+ gray05: string;
+ blue95: string;
+ blue85: string;
+ blue80: string;
+ blue77: string;
+ red88: string;
+ redBase: string;
+ redShade: string;
+ greenBase: string;
+ greenShade: string;
+ red: string;
+ yellow: string;
+ purple: string;
+ orange: string;
+ orangeDark: string;
+ queryRed: string;
+ queryGreen: string;
+ queryPurple: string;
+ queryOrange: string;
+ brandPrimary: string;
+ brandSuccess: string;
+ brandWarning: string;
+ brandDanger: string;
+ online: string;
+ warn: string;
+ critical: string;
+ };
+```
+
+### shadows property
+
+Signature
+
+```typescript
+shadows: {
+ listItem: string;
};
```
diff --git a/docs/sources/packages_api/data/grafanathemecommons.md b/docs/sources/packages_api/data/grafanathemecommons.md
index 463b2a5041b..deb84b1aba4 100644
--- a/docs/sources/packages_api/data/grafanathemecommons.md
+++ b/docs/sources/packages_api/data/grafanathemecommons.md
@@ -30,7 +30,7 @@ import { GrafanaThemeCommons } from '@grafana/data';
| [name](#name-property) | string
| |
| [panelHeaderHeight](#panelheaderheight-property) | number
| |
| [panelPadding](#panelpadding-property) | number
| |
-| [spacing](#spacing-property) | {
insetSquishMd: string;
d: string;
xxs: string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
gutter: string;
formSpacingBase: number;
formMargin: string;
formFieldsetMargin: string;
formLegendMargin: string;
formInputHeight: string;
formButtonHeight: number;
formInputPaddingHorizontal: string;
formInputAffixPaddingHorizontal: string;
formInputMargin: string;
formLabelPadding: string;
formLabelMargin: string;
formValidationMessagePadding: string;
formValidationMessageMargin: string;
}
| |
+| [spacing](#spacing-property) | {
insetSquishMd: string;
d: string;
xxs: string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
gutter: string;
formSpacingBase: number;
formMargin: string;
formFieldsetMargin: string;
formInputHeight: number;
formButtonHeight: number;
formInputPaddingHorizontal: string;
formInputAffixPaddingHorizontal: string;
formInputMargin: string;
formLabelPadding: string;
formLabelMargin: string;
formValidationMessagePadding: string;
formValidationMessageMargin: string;
inlineFormMargin: string;
}
| |
| [typography](#typography-property) | {
fontFamily: {
sansSerif: string;
monospace: string;
};
size: {
base: string;
xs: string;
sm: string;
md: string;
lg: string;
};
weight: {
light: number;
regular: number;
semibold: number;
bold: number;
};
lineHeight: {
xs: number;
sm: number;
md: number;
lg: number;
};
heading: {
h1: string;
h2: string;
h3: string;
h4: string;
h5: string;
h6: string;
};
link: {
decoration: string;
hoverDecoration: string;
};
}
| |
| [zIndex](#zindex-property) | {
dropdown: string;
navbarFixed: string;
sidemenu: string;
tooltip: string;
modalBackdrop: string;
modal: string;
typeahead: string;
}
| |
@@ -119,8 +119,7 @@ spacing: {
formSpacingBase: number;
formMargin: string;
formFieldsetMargin: string;
- formLegendMargin: string;
- formInputHeight: string;
+ formInputHeight: number;
formButtonHeight: number;
formInputPaddingHorizontal: string;
formInputAffixPaddingHorizontal: string;
@@ -129,6 +128,7 @@ spacing: {
formLabelMargin: string;
formValidationMessagePadding: string;
formValidationMessageMargin: string;
+ inlineFormMargin: string;
};
```
diff --git a/docs/sources/packages_api/data/graphseriesxy.md b/docs/sources/packages_api/data/graphseriesxy.md
index 2b363204b64..86f1841b248 100644
--- a/docs/sources/packages_api/data/graphseriesxy.md
+++ b/docs/sources/packages_api/data/graphseriesxy.md
@@ -42,7 +42,7 @@ import { GraphSeriesXY } from '@grafana/data';
Signature
```typescript
-color: string;
+color?: string;
```
### data property
diff --git a/docs/sources/packages_api/data/guessfieldtypefromnameandvalue.md b/docs/sources/packages_api/data/guessfieldtypefromnameandvalue.md
new file mode 100644
index 00000000000..ac010b781c0
--- /dev/null
+++ b/docs/sources/packages_api/data/guessfieldtypefromnameandvalue.md
@@ -0,0 +1,37 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "guessFieldTypeFromNameAndValue"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## guessFieldTypeFromNameAndValue() function
+
+### guessFieldTypeFromNameAndValue() function
+
+Given a name and value, this will pick a reasonable field type
+
+Signature
+
+```typescript
+export declare function guessFieldTypeFromNameAndValue(name: string, v: any): FieldType;
+```
+Import
+
+```typescript
+import { guessFieldTypeFromNameAndValue } from '@grafana/data';
+```
+Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| name | string
| |
+| v | any
| |
+
+Returns:
+
+`FieldType`
+
diff --git a/docs/sources/packages_api/data/identityoverrideprocessor.md b/docs/sources/packages_api/data/identityoverrideprocessor.md
new file mode 100644
index 00000000000..bf4bd07f662
--- /dev/null
+++ b/docs/sources/packages_api/data/identityoverrideprocessor.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "identityOverrideProcessor"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## identityOverrideProcessor variable
+
+### identityOverrideProcessor variable
+
+Signature
+
+```typescript
+identityOverrideProcessor: number
| |
+| [hasLicense](#haslicense-property) | boolean
| |
+| [licenseUrl](#licenseurl-property) | string
| |
+| [stateInfo](#stateinfo-property) | string
| |
+
+### expiry property
+
+Signature
+
+```typescript
+expiry: number;
+```
+
+### hasLicense property
+
+Signature
+
+```typescript
+hasLicense: boolean;
+```
+
+### licenseUrl property
+
+Signature
+
+```typescript
+licenseUrl: string;
+```
+
+### stateInfo property
+
+Signature
+
+```typescript
+stateInfo: string;
+```
diff --git a/docs/sources/packages_api/data/linkmodel.md b/docs/sources/packages_api/data/linkmodel.md
index 1ed5a6c4d23..23e6d13cab2 100644
--- a/docs/sources/packages_api/data/linkmodel.md
+++ b/docs/sources/packages_api/data/linkmodel.md
@@ -15,7 +15,7 @@ Processed Link Model. The values are ready to use
Signature
```typescript
-export interface LinkModelNavModelItem[]
| |
-| [main](#main-property) | NavModelItem
| |
-| [node](#node-property) | NavModelItem
| |
+| [breadcrumbs](#breadcrumbs-property) | NavModelItem[]
| Describes breadcrumbs that are used in places such as data source settings., folder page and plugins page. |
+| [main](#main-property) | NavModelItem
| Main page. that wraps the navigation. Generate the children
property generate tabs when used with the Page component. |
+| [node](#node-property) | NavModelItem
| This is the current active tab/navigation. |
### breadcrumbs property
+Describes breadcrumbs that are used in places such as data source settings., folder page and plugins page.
+
Signature
```typescript
@@ -38,6 +42,8 @@ breadcrumbs?: NavModelItem[];
### main property
+Main page. that wraps the navigation. Generate the `children` property generate tabs when used with the Page component.
+
Signature
```typescript
@@ -46,6 +52,8 @@ main: NavModelItem;
### node property
+This is the current active tab/navigation.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/ui/numberfieldconfigsettings.md b/docs/sources/packages_api/data/numberfieldconfigsettings.md
similarity index 86%
rename from docs/sources/packages_api/ui/numberfieldconfigsettings.md
rename to docs/sources/packages_api/data/numberfieldconfigsettings.md
index eb8e67e5140..747f3b84e65 100644
--- a/docs/sources/packages_api/ui/numberfieldconfigsettings.md
+++ b/docs/sources/packages_api/data/numberfieldconfigsettings.md
@@ -3,7 +3,7 @@
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "NumberFieldConfigSettings"
-keywords = ["grafana","documentation","sdk","@grafana/ui"]
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
@@ -18,7 +18,7 @@ export interface NumberFieldConfigSettings
Import
```typescript
-import { NumberFieldConfigSettings } from '@grafana/ui';
+import { NumberFieldConfigSettings } from '@grafana/data';
```
Properties
diff --git a/docs/sources/packages_api/ui/numberoverrideprocessor.md b/docs/sources/packages_api/data/numberoverrideprocessor.md
similarity index 69%
rename from docs/sources/packages_api/ui/numberoverrideprocessor.md
rename to docs/sources/packages_api/data/numberoverrideprocessor.md
index 07687358d73..6b35a03ba91 100644
--- a/docs/sources/packages_api/ui/numberoverrideprocessor.md
+++ b/docs/sources/packages_api/data/numberoverrideprocessor.md
@@ -3,7 +3,7 @@
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "numberOverrideProcessor"
-keywords = ["grafana","documentation","sdk","@grafana/ui"]
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
@@ -15,10 +15,10 @@ draft = true
Signature
```typescript
-numberOverrideProcessor: (value: any, context: FieldOverrideContext, settings: NumberFieldConfigSettings) => number
+numberOverrideProcessor: (value: any, context: FieldOverrideContext, settings?: NumberFieldConfigSettings | undefined) => number | undefined
```
Import
```typescript
-import { numberOverrideProcessor } from '@grafana/ui';
+import { numberOverrideProcessor } from '@grafana/data';
```
diff --git a/docs/sources/packages_api/data/omit.md b/docs/sources/packages_api/data/omit_2.md
similarity index 79%
rename from docs/sources/packages_api/data/omit.md
rename to docs/sources/packages_api/data/omit_2.md
index 97c40a251ff..067dbcd2297 100644
--- a/docs/sources/packages_api/data/omit.md
+++ b/docs/sources/packages_api/data/omit_2.md
@@ -2,15 +2,15 @@
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
-title = "Omit"
+title = "Omit_2"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
-## Omit type
+## Omit\_2 type
-### Omit type
+### Omit\_2 type
Signature
@@ -20,5 +20,5 @@ export declare type OmitRecord<string, boolean>
| |
+
+### excludeByName property
+
+Signature
+
+```typescript
+excludeByName: RecordDataQueryError
| |
-| [request](#request-property) | DataQueryRequest
| |
-| [series](#series-property) | DataFrame[]
| |
-| [state](#state-property) | LoadingState
| |
-| [timeRange](#timerange-property) | TimeRange
| |
+| [error](#error-property) | DataQueryError
| Any query errors |
+| [request](#request-property) | DataQueryRequest
| Request contains the queries and properties sent to the datasource |
+| [series](#series-property) | DataFrame[]
| Contains data frames with field overrides applied |
+| [state](#state-property) | LoadingState
| State of the data (loading, done, error, streaming) |
+| [timeRange](#timerange-property) | TimeRange
| Contains the range from the request or a shifted time range if a request uses relative time |
+| [timings](#timings-property) | DataQueryTimings
| Timing measurements |
### error property
+Any query errors
+
Signature
```typescript
@@ -40,6 +43,8 @@ error?: DataQueryError;
### request property
+Request contains the queries and properties sent to the datasource
+
Signature
```typescript
@@ -48,6 +53,8 @@ request?: DataQueryRequest;
### series property
+Contains data frames with field overrides applied
+
Signature
```typescript
@@ -56,6 +63,8 @@ series: DataFrame[];
### state property
+State of the data (loading, done, error, streaming)
+
Signature
```typescript
@@ -64,8 +73,20 @@ state: LoadingState;
### timeRange property
+Contains the range from the request or a shifted time range if a request uses relative time
+
Signature
```typescript
timeRange: TimeRange;
```
+
+### timings property
+
+Timing measurements
+
+Signature
+
+```typescript
+timings?: DataQueryTimings;
+```
diff --git a/docs/sources/packages_api/data/paneleditorprops.md b/docs/sources/packages_api/data/paneleditorprops.md
index 96501ad3ad2..d591e94294e 100644
--- a/docs/sources/packages_api/data/paneleditorprops.md
+++ b/docs/sources/packages_api/data/paneleditorprops.md
@@ -25,6 +25,8 @@ import { PanelEditorProps } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
| [data](#data-property) | PanelData
| |
+| [fieldConfig](#fieldconfig-property) | FieldConfigSource
| Panel fields configuration - temporart solution TODO\[FieldConfig\]: Remove when we switch old editor to new |
+| [onFieldConfigChange](#onfieldconfigchange-property) | (config: FieldConfigSource) => void
| Enables panel field config manipulation TODO\[FieldConfig\]: Remove when we switch old editor to new |
| [onOptionsChange](#onoptionschange-property) | (options: T, callback?: () => void) => void
| |
| [options](#options-property) | T
| |
@@ -36,6 +38,26 @@ import { PanelEditorProps } from '@grafana/data';
data: PanelData;
```
+### fieldConfig property
+
+Panel fields configuration - temporart solution TODO\[FieldConfig\]: Remove when we switch old editor to new
+
+Signature
+
+```typescript
+fieldConfig: FieldConfigSource;
+```
+
+### onFieldConfigChange property
+
+Enables panel field config manipulation TODO\[FieldConfig\]: Remove when we switch old editor to new
+
+Signature
+
+```typescript
+onFieldConfigChange: (config: FieldConfigSource) => void;
+```
+
### onOptionsChange property
Signature
diff --git a/docs/sources/packages_api/data/panelevents.md b/docs/sources/packages_api/data/panelevents.md
index 5f6729619f0..b6be44cd195 100644
--- a/docs/sources/packages_api/data/panelevents.md
+++ b/docs/sources/packages_api/data/panelevents.md
@@ -10,13 +10,11 @@ draft = true
## PanelEvents namespace
+> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
+>
+
### PanelEvents namespace
-Signature
-
-```typescript
-export declare namespace PanelEvents
-```
Import
```typescript
diff --git a/docs/sources/packages_api/data/panelevents/panelchangeviewpayload.md b/docs/sources/packages_api/data/panelevents/panelchangeviewpayload.md
index 9c9bafa3929..eca2763e9a1 100644
--- a/docs/sources/packages_api/data/panelevents/panelchangeviewpayload.md
+++ b/docs/sources/packages_api/data/panelevents/panelchangeviewpayload.md
@@ -15,7 +15,7 @@ Payloads
Signature
```typescript
-interface PanelChangeViewPayload
+export interface PanelChangeViewPayload
```
Import
diff --git a/docs/sources/packages_api/data/panelmodel.md b/docs/sources/packages_api/data/panelmodel.md
index 1dbe99e4197..4047fd2ca03 100644
--- a/docs/sources/packages_api/data/panelmodel.md
+++ b/docs/sources/packages_api/data/panelmodel.md
@@ -24,11 +24,20 @@ import { PanelModel } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
+| [fieldConfig](#fieldconfig-property) | FieldConfigSource
| |
| [id](#id-property) | number
| |
| [options](#options-property) | TOptions
| |
| [pluginVersion](#pluginversion-property) | string
| |
| [scopedVars](#scopedvars-property) | ScopedVars
| |
+### fieldConfig property
+
+Signature
+
+```typescript
+fieldConfig: FieldConfigSource;
+```
+
### id property
Signature
diff --git a/docs/sources/packages_api/data/paneloptioneditorsregistry.md b/docs/sources/packages_api/data/paneloptioneditorsregistry.md
new file mode 100644
index 00000000000..f26f9d06311
--- /dev/null
+++ b/docs/sources/packages_api/data/paneloptioneditorsregistry.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "PanelOptionEditorsRegistry"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## PanelOptionEditorsRegistry type
+
+### PanelOptionEditorsRegistry type
+
+Signature
+
+```typescript
+export declare type PanelOptionEditorsRegistry = RegistryPanelOptionsEditorConfig<TOptions, TSettings, boolean>
| |
+
+Returns:
+
+`this`
+
+### addColorPicker method
+
+Signature
+
+```typescript
+addColorPickerPanelOptionsEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
+### addNumberInput method
+
+Signature
+
+```typescript
+addNumberInputPanelOptionsEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number>
| |
+
+Returns:
+
+`this`
+
+### addRadio method
+
+Signature
+
+```typescript
+addRadioPanelOptionsEditorConfig<TOptions, TSettings, TOption>
| |
+
+Returns:
+
+`this`
+
+### addSelect method
+
+Signature
+
+```typescript
+addSelectPanelOptionsEditorConfig<TOptions, TSettings, TOption>
| |
+
+Returns:
+
+`this`
+
+### addTextInput method
+
+Signature
+
+```typescript
+addTextInputPanelOptionsEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
+### addUnitPicker method
+
+Signature
+
+```typescript
+addUnitPickerPanelOptionsEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string>
| |
+
+Returns:
+
+`this`
+
diff --git a/docs/sources/packages_api/data/paneloptionseditorconfig.md b/docs/sources/packages_api/data/paneloptionseditorconfig.md
new file mode 100644
index 00000000000..e908db742d8
--- /dev/null
+++ b/docs/sources/packages_api/data/paneloptionseditorconfig.md
@@ -0,0 +1,115 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "PanelOptionsEditorConfig"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## PanelOptionsEditorConfig interface
+
+Signature
+
+```typescript
+export interface PanelOptionsEditorConfigstring[]
| Array of strings representing category of the option. First element in the array will make option render as collapsible section. |
+| [defaultValue](#defaultvalue-property) | TValue
| |
+| [description](#description-property) | string
| Description of the option. Will be displayed in the UI as form element description. |
+| [name](#name-property) | string
| Name of the option. Will be displayed in the UI as form element label. |
+| [path](#path-property) | (keyof TOptions & string) | string
| Path of the option property to control. |
+| [settings](#settings-property) | TSettings
| al Custom settings of the editor. |
+| [showIf](#showif-property) | (currentConfig: TOptions) => boolean
| Function that enables configuration of when option editor should be shown based on current panel option properties. |
+
+### category property
+
+Array of strings representing category of the option. First element in the array will make option render as collapsible section.
+
+Signature
+
+```typescript
+category?: string[];
+```
+
+### defaultValue property
+
+Signature
+
+```typescript
+defaultValue?: TValue;
+```
+
+### description property
+
+Description of the option. Will be displayed in the UI as form element description.
+
+Signature
+
+```typescript
+description?: string;
+```
+
+### name property
+
+Name of the option. Will be displayed in the UI as form element label.
+
+Signature
+
+```typescript
+name: string;
+```
+
+### path property
+
+Path of the option property to control.
+
+Signature
+
+```typescript
+path: (keyof TOptions & string) | string;
+```
+
+## Example
+
+Given options object of a type:
+
+```ts
+interface Options {
+ a: {
+ b: string;
+ }
+}
+
+```
+path can be either 'a' or 'a.b'.
+
+### settings property
+
+al Custom settings of the editor.
+
+Signature
+
+```typescript
+settings?: TSettings;
+```
+
+### showIf property
+
+Function that enables configuration of when option editor should be shown based on current panel option properties.
+
+Signature
+
+```typescript
+showIf?: (currentConfig: TOptions) => boolean;
+```
diff --git a/docs/sources/packages_api/data/paneloptionseditoritem.md b/docs/sources/packages_api/data/paneloptionseditoritem.md
new file mode 100644
index 00000000000..62b72020ee2
--- /dev/null
+++ b/docs/sources/packages_api/data/paneloptionseditoritem.md
@@ -0,0 +1,22 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "PanelOptionsEditorItem"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## PanelOptionsEditorItem interface
+
+Signature
+
+```typescript
+export interface PanelOptionsEditorItemany
| Legacy angular ctrl. If this exists it will be used instead of the panel |
-| [customFieldConfigs](#customfieldconfigs-property) | | FieldConfigEditorRegistry
| |
-| [defaults](#defaults-property) | | TOptions
| |
+| [defaults](#defaults-property) | | {} | null
| |
| [editor](#editor-property) | | ComponentClass<PanelEditorProps<TOptions>>
| |
+| [fieldConfigDefaults](#fieldconfigdefaults-property) | | FieldConfigSource<TFieldConfigOptions>
| |
+| [fieldConfigRegistry](#fieldconfigregistry-property) | | FieldConfigOptionsRegistry
| |
| [noPadding](#nopadding-property) | | boolean
| |
| [onPanelMigration](#onpanelmigration-property) | | PanelMigrationHandler<TOptions>
| |
| [onPanelTypeChanged](#onpaneltypechanged-property) | | PanelTypeChangedHandler<TOptions>
| |
-| [panel](#panel-property) | | ComponentType<PanelProps<TOptions>>
| |
+| [optionEditors](#optioneditors-property) | | PanelOptionEditorsRegistry | undefined
| |
+| [panel](#panel-property) | | ComponentType<PanelProps<TOptions>> | null
| |
Methods
| Method | Modifiers | Description |
| --- | --- | --- |
-| [setCustomFieldConfigs(registry)](#setcustomfieldconfigs-method) | | |
| [setDefaults(defaults)](#setdefaults-method) | | |
| [setEditor(editor)](#seteditor-method) | | |
| [setMigrationHandler(handler)](#setmigrationhandler-method) | | This function is called before the panel first loads if the current version is different than the version that was saved.This is a good place to support any changes to the options model |
| [setNoPadding()](#setnopadding-method) | | |
-| [setPanelChangeHandler(handler)](#setpanelchangehandler-method) | | This function is called when the visualization was changed. This passes in the options that were used in the previous visualization |
+| [setPanelChangeHandler(handler)](#setpanelchangehandler-method) | | This function is called when the visualization was changed. This passes in the panel model for previous visualisation options inspection and panel model updates.This is useful for supporting PanelModel API updates when changing between Angular and React panels. |
+| [setPanelOptions(builder)](#setpaneloptions-method) | | Enables panel options editor creation |
+| [useFieldConfig(config)](#usefieldconfig-method) | | Allows specyfing which standard field config options panel should use and defining default values |
### constructor(panel)
@@ -57,13 +60,13 @@ Constructs a new instance of the `PanelPlugin` class
Signature
```typescript
-constructor(panel: ComponentTypeComponentType<PanelProps<TOptions>>
| |
+| panel | ComponentType<PanelProps<TOptions>> | null
| |
### angularPanelCtrl property
@@ -75,20 +78,12 @@ Legacy angular ctrl. If this exists it will be used instead of the panel
angularPanelCtrl?: any;
```
-### customFieldConfigs property
-
-Signature
-
-```typescript
-customFieldConfigs?: FieldConfigEditorRegistry;
-```
-
### defaults property
Signature
```typescript
-defaults?: TOptions;
+get defaults(): {} | null;
```
### editor property
@@ -99,6 +94,22 @@ defaults?: TOptions;
editor?: ComponentClassFieldConfigEditorRegistry
| |
-
-Returns:
-
-`this`
-
### setDefaults method
Signature
@@ -216,7 +218,9 @@ setNoPadding(): this;
### setPanelChangeHandler method
-This function is called when the visualization was changed. This passes in the options that were used in the previous visualization
+This function is called when the visualization was changed. This passes in the panel model for previous visualisation options inspection and panel model updates.
+
+This is useful for supporting PanelModel API updates when changing between Angular and React panels.
Signature
@@ -233,3 +237,127 @@ setPanelChangeHandler(handler: PanelTypeChangedHandler): this;
`this`
+### setPanelOptions method
+
+Enables panel options editor creation
+
+Signature
+
+```typescript
+setPanelOptions(builder: (builder: PanelOptionsEditorBuilder(builder: PanelOptionsEditorBuilder<TOptions>) => void
| |
+
+Returns:
+
+`this`
+
+## Example
+
+
+```typescript
+
+import { ShapePanel } from './ShapePanel';
+
+interface ShapePanelOptions {}
+
+export const plugin = new PanelPluginSetFieldConfigOptionsArgs<TFieldConfigOptions>
| |
+
+Returns:
+
+`this`
+
+## Example
+
+
+```typescript
+
+import { ShapePanel } from './ShapePanel';
+
+interface ShapePanelOptions {}
+
+// when plugin should use all standard options
+export const plugin = new PanelPluginPanelData
| |
+| [fieldConfig](#fieldconfig-property) | FieldConfigSource
| Panel fields configuration |
| [height](#height-property) | number
| |
| [id](#id-property) | number
| |
| [onChangeTimeRange](#onchangetimerange-property) | (timeRange: AbsoluteTimeRange) => void
| |
+| [onFieldConfigChange](#onfieldconfigchange-property) | (config: FieldConfigSource) => void
| Enables panel field config manipulation |
| [onOptionsChange](#onoptionschange-property) | (options: T) => void
| |
| [options](#options-property) | T
| |
| [renderCounter](#rendercounter-property) | number
| |
@@ -45,6 +47,16 @@ import { PanelProps } from '@grafana/data';
data: PanelData;
```
+### fieldConfig property
+
+Panel fields configuration
+
+Signature
+
+```typescript
+fieldConfig: FieldConfigSource;
+```
+
### height property
Signature
@@ -69,6 +81,16 @@ id: number;
onChangeTimeRange: (timeRange: AbsoluteTimeRange) => void;
```
+### onFieldConfigChange property
+
+Enables panel field config manipulation
+
+Signature
+
+```typescript
+onFieldConfigChange: (config: FieldConfigSource) => void;
+```
+
### onOptionsChange property
Signature
diff --git a/docs/sources/packages_api/data/paneltypechangedhandler.md b/docs/sources/packages_api/data/paneltypechangedhandler.md
index 9f4d7aaf10c..ddc88a8f8c5 100644
--- a/docs/sources/packages_api/data/paneltypechangedhandler.md
+++ b/docs/sources/packages_api/data/paneltypechangedhandler.md
@@ -12,12 +12,12 @@ draft = true
### PanelTypeChangedHandler type
-Called before a panel is initialized
+Called before a panel is initialized. Allows panel inspection for any updates before changing the panel type.
Signature
```typescript
-export declare type PanelTypeChangedHandlerstring
| |
| [dependencies](#dependencies-property) | PluginDependencies
| |
| [enabled](#enabled-property) | boolean
| |
+| [enterprise](#enterprise-property) | boolean
| |
| [hasUpdate](#hasupdate-property) | boolean
| |
| [id](#id-property) | string
| |
| [includes](#includes-property) | PluginInclude[]
| |
@@ -73,6 +74,14 @@ dependencies?: PluginDependencies;
enabled?: boolean;
```
+### enterprise property
+
+Signature
+
+```typescript
+enterprise?: boolean;
+```
+
### hasUpdate property
Signature
diff --git a/docs/sources/packages_api/data/pluginstate.md b/docs/sources/packages_api/data/pluginstate.md
index 019945ee1f5..74d4686c6e0 100644
--- a/docs/sources/packages_api/data/pluginstate.md
+++ b/docs/sources/packages_api/data/pluginstate.md
@@ -29,4 +29,5 @@ import { PluginState } from '@grafana/data';
| --- | --- | --- |
| alpha | "alpha"
| |
| beta | "beta"
| |
+| deprecated | "deprecated"
| |
diff --git a/docs/sources/packages_api/data/queryresultmeta.md b/docs/sources/packages_api/data/queryresultmeta.md
index eb75935fbd7..eeb5fb3a07c 100644
--- a/docs/sources/packages_api/data/queryresultmeta.md
+++ b/docs/sources/packages_api/data/queryresultmeta.md
@@ -24,19 +24,54 @@ import { QueryResultMeta } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
-| [custom](#custom-property) | Record<string, any>
| |
+| [alignmentPeriod](#alignmentperiod-property) | string
| |
+| [custom](#custom-property) | Record<string, any>
| DatasSource Specific Values |
+| [gmdMeta](#gmdmeta-property) | any[]
| Legacy data source specific, should be moved to custom |
+| [json](#json-property) | boolean
| |
| [limit](#limit-property) | number
| |
-| [requestId](#requestid-property) | string
| |
+| [notices](#notices-property) | QueryResultMetaNotice[]
| Meta Notices |
+| [query](#query-property) | string
| |
+| [rawQuery](#rawquery-property) | string
| |
| [searchWords](#searchwords-property) | string[]
| |
+| [stats](#stats-property) | QueryResultMetaStat[]
| Stats |
+| [transformations](#transformations-property) | string[]
| Used to track transformation ids that where part of the processing |
+
+### alignmentPeriod property
+
+Signature
+
+```typescript
+alignmentPeriod?: string;
+```
### custom property
+DatasSource Specific Values
+
Signature
```typescript
custom?: Record'meta' | 'error' | 'data' | 'stats'
| Optionally suggest an appropriate tab for the panel inspector |
+| [link](#link-property) | string
| An optional link that may be displayed in the UI. This value may be an absolute URL or relative to grafana root |
+| [severity](#severity-property) | 'info' | 'warning' | 'error'
| Specify the notice severity |
+| [text](#text-property) | string
| Notice descriptive text |
+
+### inspect property
+
+Optionally suggest an appropriate tab for the panel inspector
+
+Signature
+
+```typescript
+inspect?: 'meta' | 'error' | 'data' | 'stats';
+```
+
+### link property
+
+An optional link that may be displayed in the UI. This value may be an absolute URL or relative to grafana root
+
+Signature
+
+```typescript
+link?: string;
+```
+
+### severity property
+
+Specify the notice severity
+
+Signature
+
+```typescript
+severity: 'info' | 'warning' | 'error';
+```
+
+### text property
+
+Notice descriptive text
+
+Signature
+
+```typescript
+text: string;
+```
diff --git a/docs/sources/packages_api/data/queryresultmetastat.md b/docs/sources/packages_api/data/queryresultmetastat.md
new file mode 100644
index 00000000000..fad3bfa5b8d
--- /dev/null
+++ b/docs/sources/packages_api/data/queryresultmetastat.md
@@ -0,0 +1,44 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "QueryResultMetaStat"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## QueryResultMetaStat interface
+
+Signature
+
+```typescript
+export interface QueryResultMetaStat extends FieldConfig
+```
+Import
+
+```typescript
+import { QueryResultMetaStat } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [title](#title-property) | string
| |
+| [value](#value-property) | number
| |
+
+### title property
+
+Signature
+
+```typescript
+title: string;
+```
+
+### value property
+
+Signature
+
+```typescript
+value: number;
+```
diff --git a/docs/sources/packages_api/data/rangeutil.md b/docs/sources/packages_api/data/rangeutil.md
index 22ae8f52e17..b2a24ff9314 100644
--- a/docs/sources/packages_api/data/rangeutil.md
+++ b/docs/sources/packages_api/data/rangeutil.md
@@ -10,13 +10,11 @@ draft = true
## rangeUtil namespace
+> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
+>
+
### rangeUtil namespace
-Signature
-
-```typescript
-export declare namespace rangeUtil
-```
Import
```typescript
diff --git a/docs/sources/packages_api/data/rangeutil/describetextrange.md b/docs/sources/packages_api/data/rangeutil/describetextrange.md
index cf0adef0b77..1132aba51ee 100644
--- a/docs/sources/packages_api/data/rangeutil/describetextrange.md
+++ b/docs/sources/packages_api/data/rangeutil/describetextrange.md
@@ -15,7 +15,7 @@ draft = true
Signature
```typescript
-function describeTextRange(expr: any): any;
+export declare function describeTextRange(expr: any): any;
```
Import
diff --git a/docs/sources/packages_api/data/rangeutil/getrelativetimeslist.md b/docs/sources/packages_api/data/rangeutil/getrelativetimeslist.md
index cd8328d2e78..e1dab2a1876 100644
--- a/docs/sources/packages_api/data/rangeutil/getrelativetimeslist.md
+++ b/docs/sources/packages_api/data/rangeutil/getrelativetimeslist.md
@@ -15,113 +15,159 @@ draft = true
Signature
```typescript
-function getRelativeTimesList(timepickerSettings: any, currentDisplay: any): import("lodash").Dictionary<(number | {
+export declare function getRelativeTimesList(timepickerSettings: any, currentDisplay: any): import("lodash").Dictionary<(number | {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+} | (() => string) | (() => string) | (() => {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+} | undefined) | ((...items: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => number) | {
+ (...items: ConcatArray<{
from: string;
to: string;
display: string;
section: number;
- } | (() => string) | (() => string) | (() => {
+ }>[]): {
from: string;
to: string;
display: string;
section: number;
- } | undefined) | ((...items: {
+ }[];
+ (...items: ({
from: string;
to: string;
display: string;
section: number;
- }[]) => number) | {
- (...items: ConcatArray<{
- from: string;
- to: string;
- display: string;
- section: number;
- }>[]): {
- from: string;
- to: string;
- display: string;
- section: number;
- }[];
- (...items: ({
- from: string;
- to: string;
- display: string;
- section: number;
- } | ConcatArray<{
- from: string;
- to: string;
- display: string;
- section: number;
- }>)[]): {
- from: string;
- to: string;
- display: string;
- section: number;
- }[];
- } | ((separator?: string | undefined) => string) | (() => {
+ } | ConcatArray<{
from: string;
to: string;
display: string;
section: number;
- }[]) | (() => {
+ }>)[]): {
from: string;
to: string;
display: string;
section: number;
- } | undefined) | ((start?: number | undefined, end?: number | undefined) => {
+ }[];
+} | ((separator?: string | undefined) => string) | (() => {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) | (() => {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+} | undefined) | ((start?: number | undefined, end?: number | undefined) => {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) | ((compareFn?: ((a: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, b: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}) => number) | undefined) => {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) | {
+ (start: number, deleteCount?: number | undefined): {
from: string;
to: string;
display: string;
section: number;
- }[]) | ((compareFn?: ((a: {
+ }[];
+ (start: number, deleteCount: number, ...items: {
from: string;
to: string;
display: string;
section: number;
- }, b: {
+ }[]): {
from: string;
to: string;
display: string;
section: number;
- }) => number) | undefined) => {
+ }[];
+} | ((...items: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => number) | ((searchElement: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, fromIndex?: number | undefined) => number) | ((searchElement: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, fromIndex?: number | undefined) => number) | ((callbackfn: (value: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, index: number, array: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, index: number, array: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, index: number, array: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => void, thisArg?: any) => void) | ((callbackfn: (value: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}, index: number, array: {
+ from: string;
+ to: string;
+ display: string;
+ section: number;
+}[]) => U, thisArg?: any) => U[]) | {
+ string[]
| |
-| [limit](#limit-property) | number
| |
+| [calcs](#calcs-property) | string[]
| When !values, pick one value for the whole field |
+| [limit](#limit-property) | number
| if showing all values limit |
| [values](#values-property) | boolean
| |
### calcs property
+When !values, pick one value for the whole field
+
Signature
```typescript
@@ -38,6 +42,8 @@ calcs: string[];
### limit property
+if showing all values limit
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/registry.md b/docs/sources/packages_api/data/registry.md
index 272db9ad40b..b1ba3f93fd4 100644
--- a/docs/sources/packages_api/data/registry.md
+++ b/docs/sources/packages_api/data/registry.md
@@ -38,6 +38,7 @@ import { Registry } from '@grafana/data';
| --- | --- | --- |
| [get(id)](#get-method) | | |
| [getIfExists(id)](#getifexists-method) | | |
+| [isEmpty()](#isempty-method) | | |
| [list(ids)](#list-method) | | Return a list of values by ID, or all values if not specified |
| [register(ext)](#register-method) | | |
| [selectOptions(current, filter)](#selectoptions-method) | | |
@@ -99,6 +100,17 @@ getIfExists(id: string | undefined): T | undefined;
`T | undefined`
+### isEmpty method
+
+Signature
+
+```typescript
+isEmpty(): boolean;
+```
+Returns:
+
+`boolean`
+
### list method
Return a list of values by ID, or all values if not specified
diff --git a/docs/sources/packages_api/data/registryitem.md b/docs/sources/packages_api/data/registryitem.md
index 4bdabf65547..d36bab2981a 100644
--- a/docs/sources/packages_api/data/registryitem.md
+++ b/docs/sources/packages_api/data/registryitem.md
@@ -43,7 +43,7 @@ aliasIds?: string[];
Signature
```typescript
-description: string;
+description?: string;
```
### excludeFromPicker property
diff --git a/docs/sources/packages_api/data/selectfieldconfigsettings.md b/docs/sources/packages_api/data/selectfieldconfigsettings.md
new file mode 100644
index 00000000000..39a811215c2
--- /dev/null
+++ b/docs/sources/packages_api/data/selectfieldconfigsettings.md
@@ -0,0 +1,35 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "SelectFieldConfigSettings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## SelectFieldConfigSettings interface
+
+Signature
+
+```typescript
+export interface SelectFieldConfigSettingsArray<SelectableValue<T>>
| |
+
+### options property
+
+Signature
+
+```typescript
+options: Arraystring
| |
+
+### byField property
+
+Signature
+
+```typescript
+byField?: string;
+```
diff --git a/docs/sources/packages_api/data/standardeditorprops.md b/docs/sources/packages_api/data/standardeditorprops.md
new file mode 100644
index 00000000000..c20edca2dbc
--- /dev/null
+++ b/docs/sources/packages_api/data/standardeditorprops.md
@@ -0,0 +1,53 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "StandardEditorProps"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## StandardEditorProps interface
+
+Signature
+
+```typescript
+export interface StandardEditorPropsStandardEditorsRegistryItem<TValue, TSettings>
| |
+| [onChange](#onchange-property) | (value?: TValue) => void
| |
+| [value](#value-property) | TValue
| |
+
+### item property
+
+Signature
+
+```typescript
+item: StandardEditorsRegistryItemComponentType<StandardEditorProps<TValue, TSettings>>
| |
+| [settings](#settings-property) | TSettings
| |
+
+### editor property
+
+Signature
+
+```typescript
+editor: ComponentTypeboolean
| |
| [maxLength](#maxlength-property) | number
| |
| [placeholder](#placeholder-property) | string
| |
+| [rows](#rows-property) | number
| |
+| [useTextarea](#usetextarea-property) | boolean
| |
### expandTemplateVars property
@@ -51,3 +53,19 @@ maxLength?: number;
```typescript
placeholder?: string;
```
+
+### rows property
+
+Signature
+
+```typescript
+rows?: number;
+```
+
+### useTextarea property
+
+Signature
+
+```typescript
+useTextarea?: boolean;
+```
diff --git a/docs/sources/packages_api/ui/stringoverrideprocessor.md b/docs/sources/packages_api/data/stringoverrideprocessor.md
similarity index 71%
rename from docs/sources/packages_api/ui/stringoverrideprocessor.md
rename to docs/sources/packages_api/data/stringoverrideprocessor.md
index 49292077ed1..45f03589785 100644
--- a/docs/sources/packages_api/ui/stringoverrideprocessor.md
+++ b/docs/sources/packages_api/data/stringoverrideprocessor.md
@@ -3,7 +3,7 @@
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "stringOverrideProcessor"
-keywords = ["grafana","documentation","sdk","@grafana/ui"]
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
@@ -15,10 +15,10 @@ draft = true
Signature
```typescript
-stringOverrideProcessor: (value: any, context: FieldOverrideContext, settings: StringFieldConfigSettings) => string
+stringOverrideProcessor: (value: any, context: FieldOverrideContext, settings?: StringFieldConfigSettings | undefined) => any
```
Import
```typescript
-import { stringOverrideProcessor } from '@grafana/ui';
+import { stringOverrideProcessor } from '@grafana/data';
```
diff --git a/docs/sources/packages_api/data/textutil.md b/docs/sources/packages_api/data/textutil.md
new file mode 100644
index 00000000000..2c9751d4df3
--- /dev/null
+++ b/docs/sources/packages_api/data/textutil.md
@@ -0,0 +1,29 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "textUtil"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## textUtil variable
+
+### textUtil variable
+
+Signature
+
+```typescript
+textUtil: {
+ escapeHtml: typeof escapeHtml;
+ hasAnsiCodes: typeof hasAnsiCodes;
+ sanitize: typeof sanitize;
+ sanitizeUrl: typeof sanitizeUrl;
+}
+```
+Import
+
+```typescript
+import { textUtil } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/threshold.md b/docs/sources/packages_api/data/threshold.md
index d297f5c40db..c9c4a6f1cbb 100644
--- a/docs/sources/packages_api/data/threshold.md
+++ b/docs/sources/packages_api/data/threshold.md
@@ -25,7 +25,7 @@ import { Threshold } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
| [color](#color-property) | string
| |
-| [state](#state-property) | string
| |
+| [state](#state-property) | string
| Warning, Error, LowLow, Low, OK, High, HighHigh etc |
| [value](#value-property) | number
| |
### color property
@@ -38,6 +38,8 @@ color: string;
### state property
+Warning, Error, LowLow, Low, OK, High, HighHigh etc
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/thresholdsconfig.md b/docs/sources/packages_api/data/thresholdsconfig.md
index 01acd0705c1..224781530ac 100644
--- a/docs/sources/packages_api/data/thresholdsconfig.md
+++ b/docs/sources/packages_api/data/thresholdsconfig.md
@@ -10,6 +10,8 @@ draft = true
## ThresholdsConfig interface
+Config that is passed to the ThresholdsEditor
+
Signature
```typescript
@@ -25,7 +27,7 @@ import { ThresholdsConfig } from '@grafana/data';
| Property | Type | Description |
| --- | --- | --- |
| [mode](#mode-property) | ThresholdsMode
| |
-| [steps](#steps-property) | Threshold[]
| |
+| [steps](#steps-property) | Threshold[]
| Must be sorted by 'value', first value is always -Infinity |
### mode property
@@ -37,6 +39,8 @@ mode: ThresholdsMode;
### steps property
+Must be sorted by 'value', first value is always -Infinity
+
Signature
```typescript
diff --git a/docs/sources/packages_api/data/thresholdsfieldconfigsettings.md b/docs/sources/packages_api/data/thresholdsfieldconfigsettings.md
new file mode 100644
index 00000000000..f4dff721d59
--- /dev/null
+++ b/docs/sources/packages_api/data/thresholdsfieldconfigsettings.md
@@ -0,0 +1,22 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "ThresholdsFieldConfigSettings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## ThresholdsFieldConfigSettings interface
+
+Signature
+
+```typescript
+export interface ThresholdsFieldConfigSettings
+```
+Import
+
+```typescript
+import { ThresholdsFieldConfigSettings } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/thresholdsmode.md b/docs/sources/packages_api/data/thresholdsmode.md
index df7c9e30964..e9d7d360498 100644
--- a/docs/sources/packages_api/data/thresholdsmode.md
+++ b/docs/sources/packages_api/data/thresholdsmode.md
@@ -12,6 +12,8 @@ draft = true
### ThresholdsMode enum
+Display mode
+
Signature
```typescript
@@ -28,5 +30,5 @@ import { ThresholdsMode } from '@grafana/data';
| Member | Value | Description |
| --- | --- | --- |
| Absolute | "absolute"
| |
-| Percentage | "percentage"
| |
+| Percentage | "percentage"
| between 0 and 1 (based on min/max) |
diff --git a/docs/sources/packages_api/data/thresholdsoverrideprocessor.md b/docs/sources/packages_api/data/thresholdsoverrideprocessor.md
new file mode 100644
index 00000000000..b0d7344ac51
--- /dev/null
+++ b/docs/sources/packages_api/data/thresholdsoverrideprocessor.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "thresholdsOverrideProcessor"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## thresholdsOverrideProcessor variable
+
+### thresholdsOverrideProcessor variable
+
+Signature
+
+```typescript
+thresholdsOverrideProcessor: (value: any, _context: FieldOverrideContext, _settings?: ThresholdsFieldConfigSettings | undefined) => ThresholdsConfig
+```
+Import
+
+```typescript
+import { thresholdsOverrideProcessor } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/tolegacyresponsedata.md b/docs/sources/packages_api/data/tolegacyresponsedata.md
index a1ab2234a54..1b270f92526 100644
--- a/docs/sources/packages_api/data/tolegacyresponsedata.md
+++ b/docs/sources/packages_api/data/tolegacyresponsedata.md
@@ -15,7 +15,7 @@ draft = true
Signature
```typescript
-toLegacyResponseData: (frame: DataFrame) => TableData | TimeSeries
+toLegacyResponseData: (frame: DataFrame) => TimeSeries | TableData
```
Import
diff --git a/docs/sources/packages_api/data/transformersregistry.md b/docs/sources/packages_api/data/topascalcase.md
similarity index 64%
rename from docs/sources/packages_api/data/transformersregistry.md
rename to docs/sources/packages_api/data/topascalcase.md
index a21e1c9df2a..214403742bb 100644
--- a/docs/sources/packages_api/data/transformersregistry.md
+++ b/docs/sources/packages_api/data/topascalcase.md
@@ -2,23 +2,23 @@
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
-title = "transformersRegistry"
+title = "toPascalCase"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
-## transformersRegistry variable
+## toPascalCase variable
-### transformersRegistry variable
+### toPascalCase variable
Signature
```typescript
-transformersRegistry: TransformerRegistry
+toPascalCase: (string: string) => string
```
Import
```typescript
-import { transformersRegistry } from '@grafana/data';
+import { toPascalCase } from '@grafana/data';
```
diff --git a/docs/sources/packages_api/data/transformerregistyitem.md b/docs/sources/packages_api/data/transformerregistyitem.md
new file mode 100644
index 00000000000..eea6f057e5c
--- /dev/null
+++ b/docs/sources/packages_api/data/transformerregistyitem.md
@@ -0,0 +1,48 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "TransformerRegistyItem"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## TransformerRegistyItem interface
+
+Signature
+
+```typescript
+export interface TransformerRegistyItemReact.ComponentType<TransformerUIProps<TOptions>>
| React component used as UI for the transformer |
+| [transformation](#transformation-property) | DataTransformerInfo<TOptions>
| Object describing transformer configuration |
+
+### editor property
+
+React component used as UI for the transformer
+
+Signature
+
+```typescript
+editor: React.ComponentTypeDataFrame[]
| Pre-transform data rames |
+| [onChange](#onchange-property) | (options: T) => void
| |
+| [options](#options-property) | T
| Transformer configuration, persisted on panel's model |
+
+### input property
+
+Pre-transform data rames
+
+Signature
+
+```typescript
+input: DataFrame[];
+```
+
+### onChange property
+
+Signature
+
+```typescript
+onChange: (options: T) => void;
+```
+
+### options property
+
+Transformer configuration, persisted on panel's model
+
+Signature
+
+```typescript
+options: T;
+```
diff --git a/docs/sources/packages_api/runtime/systemjs.md b/docs/sources/packages_api/data/unitfieldconfigsettings.md
similarity index 56%
rename from docs/sources/packages_api/runtime/systemjs.md
rename to docs/sources/packages_api/data/unitfieldconfigsettings.md
index 0bd4bf7891f..4d862b62bcb 100644
--- a/docs/sources/packages_api/runtime/systemjs.md
+++ b/docs/sources/packages_api/data/unitfieldconfigsettings.md
@@ -2,23 +2,21 @@
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
-title = "SystemJS"
-keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+title = "UnitFieldConfigSettings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
-## SystemJS variable
-
-### SystemJS variable
+## UnitFieldConfigSettings interface
Signature
```typescript
-SystemJS: any
+export interface UnitFieldConfigSettings
```
Import
```typescript
-import { SystemJS } from '@grafana/runtime';
+import { UnitFieldConfigSettings } from '@grafana/data';
```
diff --git a/docs/sources/packages_api/data/unitoverrideprocessor.md b/docs/sources/packages_api/data/unitoverrideprocessor.md
new file mode 100644
index 00000000000..92830a300d4
--- /dev/null
+++ b/docs/sources/packages_api/data/unitoverrideprocessor.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "unitOverrideProcessor"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## unitOverrideProcessor variable
+
+### unitOverrideProcessor variable
+
+Signature
+
+```typescript
+unitOverrideProcessor: (value: boolean, _context: FieldOverrideContext, _settings?: UnitFieldConfigSettings | undefined) => boolean
+```
+Import
+
+```typescript
+import { unitOverrideProcessor } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/updatedatasourcepluginresetoption.md b/docs/sources/packages_api/data/updatedatasourcepluginresetoption.md
index b450ff4cb00..1f8900a2d74 100644
--- a/docs/sources/packages_api/data/updatedatasourcepluginresetoption.md
+++ b/docs/sources/packages_api/data/updatedatasourcepluginresetoption.md
@@ -8,28 +8,17 @@ type = "docs"
draft = true
+++
-## updateDatasourcePluginResetOption() function
+## updateDatasourcePluginResetOption variable
-### updateDatasourcePluginResetOption() function
+### updateDatasourcePluginResetOption variable
Signature
```typescript
-export declare function updateDatasourcePluginResetOption(props: DataSourcePluginOptionsEditorProps, key: string): void;
+updateDatasourcePluginResetOption: DataSourcePluginOptionsEditorProps
| |
-| key | string
| |
-
-Returns:
-
-`void`
-
diff --git a/docs/sources/packages_api/runtime/urlquerymap.md b/docs/sources/packages_api/data/urlquerymap.md
similarity index 70%
rename from docs/sources/packages_api/runtime/urlquerymap.md
rename to docs/sources/packages_api/data/urlquerymap.md
index 6afaf1165bd..751ee256650 100644
--- a/docs/sources/packages_api/runtime/urlquerymap.md
+++ b/docs/sources/packages_api/data/urlquerymap.md
@@ -3,7 +3,7 @@
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "UrlQueryMap"
-keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
@@ -12,6 +12,8 @@ draft = true
### UrlQueryMap type
+Type to represent the values parsed from the query string.
+
Signature
```typescript
@@ -20,5 +22,5 @@ export declare type UrlQueryMap = RecordDisplayValue
| Result of field reduction |
+| [valueRowIndex](#valuerowindex-property) | number
| Index of the value row within Field. Should be provided only when value is not a result of a reduction |
+
+### calculatedValue property
+
+Result of field reduction
+
+Signature
+
+```typescript
+calculatedValue?: DisplayValue;
+```
+
+### valueRowIndex property
+
+Index of the value row within Field. Should be provided only when value is not a result of a reduction
+
+Signature
+
+```typescript
+valueRowIndex?: number;
+```
diff --git a/docs/sources/packages_api/data/valuemappingfieldconfigsettings.md b/docs/sources/packages_api/data/valuemappingfieldconfigsettings.md
new file mode 100644
index 00000000000..79efb025fc2
--- /dev/null
+++ b/docs/sources/packages_api/data/valuemappingfieldconfigsettings.md
@@ -0,0 +1,22 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "ValueMappingFieldConfigSettings"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## ValueMappingFieldConfigSettings interface
+
+Signature
+
+```typescript
+export interface ValueMappingFieldConfigSettings
+```
+Import
+
+```typescript
+import { ValueMappingFieldConfigSettings } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/valuemappingsoverrideprocessor.md b/docs/sources/packages_api/data/valuemappingsoverrideprocessor.md
new file mode 100644
index 00000000000..fe1a82325e0
--- /dev/null
+++ b/docs/sources/packages_api/data/valuemappingsoverrideprocessor.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "valueMappingsOverrideProcessor"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## valueMappingsOverrideProcessor variable
+
+### valueMappingsOverrideProcessor variable
+
+Signature
+
+```typescript
+valueMappingsOverrideProcessor: (value: any, _context: FieldOverrideContext, _settings?: ValueMappingFieldConfigSettings | undefined) => ValueMapping[]
+```
+Import
+
+```typescript
+import { valueMappingsOverrideProcessor } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/variablemodel.md b/docs/sources/packages_api/data/variablemodel.md
new file mode 100644
index 00000000000..bf98fbfea3b
--- /dev/null
+++ b/docs/sources/packages_api/data/variablemodel.md
@@ -0,0 +1,53 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "VariableModel"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## VariableModel interface
+
+Signature
+
+```typescript
+export interface VariableModel
+```
+Import
+
+```typescript
+import { VariableModel } from '@grafana/data';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [label](#label-property) | string | null
| |
+| [name](#name-property) | string
| |
+| [type](#type-property) | VariableType
| |
+
+### label property
+
+Signature
+
+```typescript
+label: string | null;
+```
+
+### name property
+
+Signature
+
+```typescript
+name: string;
+```
+
+### type property
+
+Signature
+
+```typescript
+type: VariableType;
+```
diff --git a/docs/sources/packages_api/data/variabletype.md b/docs/sources/packages_api/data/variabletype.md
new file mode 100644
index 00000000000..f2ac8a0556f
--- /dev/null
+++ b/docs/sources/packages_api/data/variabletype.md
@@ -0,0 +1,24 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "VariableType"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## VariableType type
+
+### VariableType type
+
+Signature
+
+```typescript
+export declare type VariableType = 'query' | 'adhoc' | 'constant' | 'datasource' | 'interval' | 'textbox' | 'custom';
+```
+Import
+
+```typescript
+import { VariableType } from '@grafana/data';
+```
diff --git a/docs/sources/packages_api/data/vectorator.md b/docs/sources/packages_api/data/vectorator.md
new file mode 100644
index 00000000000..06d1901765d
--- /dev/null
+++ b/docs/sources/packages_api/data/vectorator.md
@@ -0,0 +1,46 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "vectorator"
+keywords = ["grafana","documentation","sdk","@grafana/data"]
+type = "docs"
+draft = true
++++
+
+## vectorator() function
+
+### vectorator() function
+
+Use functional programming with your vector
+
+Signature
+
+```typescript
+export declare function vectoratorVector<T>
| |
+
+Returns:
+
+`{
+ [Symbol.iterator](): Generatorany
| |
-| scopeProps | any
| |
-| template | string
| |
+| elem | any
| the element that the Angular component will be loaded into. |
+| scopeProps | any
| values that will be accessed via the Angular scope. |
+| template | string
| template used by the Angular component. |
Returns:
diff --git a/docs/sources/packages_api/runtime/backendsrv.md b/docs/sources/packages_api/runtime/backendsrv.md
index 93151a1f2a6..462498a2941 100644
--- a/docs/sources/packages_api/runtime/backendsrv.md
+++ b/docs/sources/packages_api/runtime/backendsrv.md
@@ -10,6 +10,10 @@ draft = true
## BackendSrv interface
+Used to communicate via http(s) to a remote backend such as the Grafana backend, a datasource etc. The BackendSrv is using the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) under the hood to handle all the communication.
+
+The request function can be used to perform a remote call by specifying a [BackendSrvRequest](./runtime/backendsrvrequest.md). To make the BackendSrv a bit easier to use we have added a couple of shorthand functions that will use default values executing the request.
+
Signature
```typescript
@@ -20,11 +24,16 @@ export interface BackendSrv
```typescript
import { BackendSrv } from '@grafana/runtime';
```
+
+## Remarks
+
+By default Grafana will display an error message alert if the remote call fails. If you want to prevent this from happending you need to catch the error thrown by the BackendSrv and set the `isHandled = true` on the incoming error.
+
Methods
| Method | Description |
| --- | --- |
-| [datasourceRequest(options)](#datasourcerequest-method) | |
+| [datasourceRequest(options)](#datasourcerequest-method) | Special function used to communicate with datasources that will emit core events that the Grafana QueryInspector and QueryEditor is listening for to be able to display datasource query information. Can be skipped by adding option.silent
when initializing the request. |
| [delete(url)](#delete-method) | |
| [get(url, params, requestId)](#get-method) | |
| [patch(url, data)](#patch-method) | |
@@ -34,6 +43,8 @@ import { BackendSrv } from '@grafana/runtime';
### datasourceRequest method
+Special function used to communicate with datasources that will emit core events that the Grafana QueryInspector and QueryEditor is listening for to be able to display datasource query information. Can be skipped by adding `option.silent` when initializing the request.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/backendsrvrequest.md b/docs/sources/packages_api/runtime/backendsrvrequest.md
index 033e9715160..fc9802b56c8 100644
--- a/docs/sources/packages_api/runtime/backendsrvrequest.md
+++ b/docs/sources/packages_api/runtime/backendsrvrequest.md
@@ -12,7 +12,7 @@ draft = true
### BackendSrvRequest type
-Currently implemented with: https://docs.angularjs.org/api/ng/service/$http\#usage but that will likely change in the future
+Used to initiate a remote call via the [BackendSrv](./runtime/backendsrv.md)
Signature
diff --git a/docs/sources/packages_api/runtime/config.md b/docs/sources/packages_api/runtime/config.md
index 63cf67790fd..11026fd3a77 100644
--- a/docs/sources/packages_api/runtime/config.md
+++ b/docs/sources/packages_api/runtime/config.md
@@ -12,6 +12,8 @@ draft = true
### config variable
+Use this to access the [GrafanaBootConfig](./runtime/grafanabootconfig.md) for the current running Grafana instance.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/dashboardinfo.md b/docs/sources/packages_api/runtime/dashboardinfo.md
new file mode 100644
index 00000000000..24af610cfd0
--- /dev/null
+++ b/docs/sources/packages_api/runtime/dashboardinfo.md
@@ -0,0 +1,64 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DashboardInfo"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## DashboardInfo interface
+
+Describes the basic dashboard information that can be passed as the meta analytics payload.
+
+Signature
+
+```typescript
+export interface DashboardInfo
+```
+Import
+
+```typescript
+import { DashboardInfo } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [dashboardId](#dashboardid-property) | number
| |
+| [dashboardName](#dashboardname-property) | string
| |
+| [dashboardUid](#dashboarduid-property) | string
| |
+| [folderName](#foldername-property) | string
| |
+
+### dashboardId property
+
+Signature
+
+```typescript
+dashboardId: number;
+```
+
+### dashboardName property
+
+Signature
+
+```typescript
+dashboardName: string;
+```
+
+### dashboardUid property
+
+Signature
+
+```typescript
+dashboardUid: string;
+```
+
+### folderName property
+
+Signature
+
+```typescript
+folderName?: string;
+```
diff --git a/docs/sources/packages_api/runtime/dashboardvieweventpayload.md b/docs/sources/packages_api/runtime/dashboardvieweventpayload.md
new file mode 100644
index 00000000000..2227c30398f
--- /dev/null
+++ b/docs/sources/packages_api/runtime/dashboardvieweventpayload.md
@@ -0,0 +1,37 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DashboardViewEventPayload"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## DashboardViewEventPayload interface
+
+Describes the payload of a dashboard view event.
+
+Signature
+
+```typescript
+export interface DashboardViewEventPayload extends DashboardInfo
+```
+Import
+
+```typescript
+import { DashboardViewEventPayload } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [eventName](#eventname-property) | MetaAnalyticsEventName.DashboardView
| |
+
+### eventName property
+
+Signature
+
+```typescript
+eventName: MetaAnalyticsEventName.DashboardView;
+```
diff --git a/docs/sources/packages_api/runtime/datarequesteventpayload.md b/docs/sources/packages_api/runtime/datarequesteventpayload.md
new file mode 100644
index 00000000000..898f7522ddf
--- /dev/null
+++ b/docs/sources/packages_api/runtime/datarequesteventpayload.md
@@ -0,0 +1,37 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DataRequestEventPayload"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## DataRequestEventPayload interface
+
+Describes the payload of a data request event.
+
+Signature
+
+```typescript
+export interface DataRequestEventPayload extends DataRequestInfo
+```
+Import
+
+```typescript
+import { DataRequestEventPayload } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [eventName](#eventname-property) | MetaAnalyticsEventName.DataRequest
| |
+
+### eventName property
+
+Signature
+
+```typescript
+eventName: MetaAnalyticsEventName.DataRequest;
+```
diff --git a/docs/sources/packages_api/runtime/datarequestinfo.md b/docs/sources/packages_api/runtime/datarequestinfo.md
new file mode 100644
index 00000000000..4142fa1f7d3
--- /dev/null
+++ b/docs/sources/packages_api/runtime/datarequestinfo.md
@@ -0,0 +1,91 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "DataRequestInfo"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## DataRequestInfo interface
+
+Describes the data request information passed as the meta analytics payload.
+
+Signature
+
+```typescript
+export interface DataRequestInfo extends Partialnumber
| |
+| [datasourceId](#datasourceid-property) | number
| |
+| [datasourceName](#datasourcename-property) | string
| |
+| [duration](#duration-property) | number
| |
+| [error](#error-property) | string
| |
+| [panelId](#panelid-property) | number
| |
+| [panelName](#panelname-property) | string
| |
+
+### dataSize property
+
+Signature
+
+```typescript
+dataSize?: number;
+```
+
+### datasourceId property
+
+Signature
+
+```typescript
+datasourceId?: number;
+```
+
+### datasourceName property
+
+Signature
+
+```typescript
+datasourceName: string;
+```
+
+### duration property
+
+Signature
+
+```typescript
+duration: number;
+```
+
+### error property
+
+Signature
+
+```typescript
+error?: string;
+```
+
+### panelId property
+
+Signature
+
+```typescript
+panelId?: number;
+```
+
+### panelName property
+
+Signature
+
+```typescript
+panelName?: string;
+```
diff --git a/docs/sources/packages_api/runtime/datasourcesrv.md b/docs/sources/packages_api/runtime/datasourcesrv.md
index 423aac1e729..98b9eabeb87 100644
--- a/docs/sources/packages_api/runtime/datasourcesrv.md
+++ b/docs/sources/packages_api/runtime/datasourcesrv.md
@@ -10,6 +10,8 @@ draft = true
## DataSourceSrv interface
+This is the entry point for communicating with a datasource that is added as a plugin (both external and internal). Via this service you will get access to the [DataSourceApi](./data/datasourceapi.md) that have a rich API for communicating with the datasource.
+
Signature
```typescript
@@ -37,8 +39,8 @@ get(name?: string, scopedVars?: ScopedVars): Promisestring
| |
-| scopedVars | ScopedVars
| |
+| name | string
| name of the datasource plugin you want to use. |
+| scopedVars | ScopedVars
| variables used to interpolate a templated passed as name. |
Returns:
diff --git a/docs/sources/packages_api/runtime/datasourcewithbackend.md b/docs/sources/packages_api/runtime/datasourcewithbackend.md
index 28b9ff0bf72..4f36cf76982 100644
--- a/docs/sources/packages_api/runtime/datasourcewithbackend.md
+++ b/docs/sources/packages_api/runtime/datasourcewithbackend.md
@@ -10,6 +10,8 @@ draft = true
## DataSourceWithBackend class
+Extend this class to implement a data source plugin that is depending on the Grafana backend API.
+
Signature
```typescript
@@ -30,8 +32,12 @@ import { DataSourceWithBackend } from '@grafana/runtime';
| Method | Modifiers | Description |
| --- | --- | --- |
-| [query(request)](#query-method) | | Ideally final -- any other implementation would be wrong! |
-| [testDatasource()](#testdatasource-method) | | |
+| [applyTemplateVariables(query)](#applytemplatevariables-method) | | Override to apply template variables |
+| [callHealthCheck()](#callhealthcheck-method) | | Run the datasource healthcheck |
+| [getResource(path, params)](#getresource-method) | | Make a GET request to the datasource resource path |
+| [postResource(path, body)](#postresource-method) | | Send a POST request to the datasource resource path |
+| [query(request)](#query-method) | | Ideally final -- any other implementation may not work as expected |
+| [testDatasource()](#testdatasource-method) | | Checks the plugin health |
| [toDataQueryResponse(rsp)](#todataqueryresponse-method) | | This makes the arrow library loading async. |
### constructor(instanceSettings)
@@ -49,9 +55,82 @@ constructor(instanceSettings: DataSourceInstanceSettingsDataSourceInstanceSettings<TOptions>
| |
+### applyTemplateVariables method
+
+Override to apply template variables
+
+Signature
+
+```typescript
+/** @virtual */
+applyTemplateVariables(query: DataQuery): DataQuery;
+```
+Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| query | DataQuery
| |
+
+Returns:
+
+`DataQuery`
+
+### callHealthCheck method
+
+Run the datasource healthcheck
+
+Signature
+
+```typescript
+callHealthCheck(): Promisestring
| |
+| params | any
| |
+
+Returns:
+
+`Promisestring
| |
+| body | any
| |
+
+Returns:
+
+`PromiseEchoMeta
| |
-| [payload](#payload-property) | P
| |
+| [payload](#payload-property) | P
| Event payload containing event specific data. |
| [type](#type-property) | EchoEventType
| |
### meta property
@@ -38,6 +40,8 @@ meta: EchoMeta;
### payload property
+Event payload containing event specific data.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/echoeventtype.md b/docs/sources/packages_api/runtime/echoeventtype.md
index 57ad62ed237..8a838aa7541 100644
--- a/docs/sources/packages_api/runtime/echoeventtype.md
+++ b/docs/sources/packages_api/runtime/echoeventtype.md
@@ -12,6 +12,8 @@ draft = true
### EchoEventType enum
+Supported echo event types that can be sent via the [EchoSrv](./runtime/echosrv.md).
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/echometa.md b/docs/sources/packages_api/runtime/echometa.md
index 09233df8175..d29d53bf36e 100644
--- a/docs/sources/packages_api/runtime/echometa.md
+++ b/docs/sources/packages_api/runtime/echometa.md
@@ -10,6 +10,8 @@ draft = true
## EchoMeta interface
+Describes the meta information that are sent together with each event.
+
Signature
```typescript
@@ -30,9 +32,9 @@ import { EchoMeta } from '@grafana/runtime';
| [ts](#ts-property) | number
| A millisecond epoch |
| [url](#url-property) | string
| |
| [userAgent](#useragent-property) | string
| |
-| [userId](#userid-property) | number
| |
-| [userLogin](#userlogin-property) | string
| |
-| [userSignedIn](#usersignedin-property) | boolean
| |
+| [userId](#userid-property) | number
| The current users unique identifier. |
+| [userLogin](#userlogin-property) | string
| The current users username used to login into Grafana e.g. email. |
+| [userSignedIn](#usersignedin-property) | boolean
| True when user is logged in into Grafana. |
| [windowSize](#windowsize-property) | SizeMeta
| |
### screenSize property
@@ -91,6 +93,8 @@ userAgent: string;
### userId property
+The current users unique identifier.
+
Signature
```typescript
@@ -99,6 +103,8 @@ userId: number;
### userLogin property
+The current users username used to login into Grafana e.g. email.
+
Signature
```typescript
@@ -107,6 +113,8 @@ userLogin: string;
### userSignedIn property
+True when user is logged in into Grafana.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/echosrv.md b/docs/sources/packages_api/runtime/echosrv.md
index 784f8702b7f..0d5a3df628a 100644
--- a/docs/sources/packages_api/runtime/echosrv.md
+++ b/docs/sources/packages_api/runtime/echosrv.md
@@ -10,6 +10,8 @@ draft = true
## EchoSrv interface
+Used to send events to all the registered backends. This should be accessed via the [getEchoSrv()](./runtime/getechosrv.md) function. Will, by default, flush events to the backends every 10s or when the flush function is triggered.
+
Signature
```typescript
@@ -24,12 +26,14 @@ import { EchoSrv } from '@grafana/runtime';
| Method | Description |
| --- | --- |
-| [addBackend(backend)](#addbackend-method) | |
-| [addEvent(event, meta)](#addevent-method) | |
-| [flush()](#flush-method) | |
+| [addBackend(backend)](#addbackend-method) | Add a new echo backend to the list of backends that will receive events. |
+| [addEvent(event, meta)](#addevent-method) | Call this to add event that will be sent to the echo backends upon next flush. |
+| [flush()](#flush-method) | Call this to flush current events to the echo backends. |
### addBackend method
+Add a new echo backend to the list of backends that will receive events.
+
Signature
```typescript
@@ -47,6 +51,8 @@ addBackend(backend: EchoBackend): void;
### addEvent method
+Call this to add event that will be sent to the echo backends upon next flush.
+
Signature
```typescript
@@ -56,8 +62,8 @@ addEventOmit<T, 'meta'>
| |
-| meta | {}
| |
+| event | Omit<T, 'meta'>
| Object containing event information. |
+| meta | {}
| Object that will extend/override the default meta object. |
Returns:
@@ -65,6 +71,8 @@ addEventLicenseInfo
| |
| [loginError](#loginerror-property) | | any
| |
| [loginHint](#loginhint-property) | | any
| |
+| [minRefreshInterval](#minrefreshinterval-property) | | string
| |
| [navTree](#navtree-property) | | any
| |
| [newPanelTitle](#newpaneltitle-property) | | string
| |
| [oauth](#oauth-property) | | any
| |
| [panels](#panels-property) | | {
[key: string]: PanelPluginMeta;
}
| |
| [passwordHint](#passwordhint-property) | | any
| |
-| [phantomJSRenderer](#phantomjsrenderer-property) | | boolean
| |
| [pluginsToPreload](#pluginstopreload-property) | | string[]
| |
+| [rendererAvailable](#rendereravailable-property) | | boolean
| |
| [samlEnabled](#samlenabled-property) | | boolean
| |
| [theme](#theme-property) | | GrafanaTheme
| |
| [verifyEmailEnabled](#verifyemailenabled-property) | | boolean
| |
@@ -285,6 +286,14 @@ loginError: any;
loginHint: any;
```
+### minRefreshInterval property
+
+Signature
+
+```typescript
+minRefreshInterval: string;
+```
+
### navTree property
Signature
@@ -327,14 +336,6 @@ panels: {
passwordHint: any;
```
-### phantomJSRenderer property
-
-Signature
-
-```typescript
-phantomJSRenderer: boolean;
-```
-
### pluginsToPreload property
Signature
@@ -343,6 +344,14 @@ phantomJSRenderer: boolean;
pluginsToPreload: string[];
```
+### rendererAvailable property
+
+Signature
+
+```typescript
+rendererAvailable: boolean;
+```
+
### samlEnabled property
Signature
diff --git a/docs/sources/packages_api/runtime/healthcheckresult.md b/docs/sources/packages_api/runtime/healthcheckresult.md
new file mode 100644
index 00000000000..ad091eff0cc
--- /dev/null
+++ b/docs/sources/packages_api/runtime/healthcheckresult.md
@@ -0,0 +1,55 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "HealthCheckResult"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## HealthCheckResult interface
+
+Describes the payload returned when checking the health of a data source plugin.
+
+Signature
+
+```typescript
+export interface HealthCheckResult
+```
+Import
+
+```typescript
+import { HealthCheckResult } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [details](#details-property) | Record<string, any>
| |
+| [message](#message-property) | string
| |
+| [status](#status-property) | HealthStatus
| |
+
+### details property
+
+Signature
+
+```typescript
+details?: Record"ERROR"
| |
+| OK | "OK"
| |
+| Unknown | "UNKNOWN"
| |
+
diff --git a/docs/sources/packages_api/runtime/loadplugincss.md b/docs/sources/packages_api/runtime/loadplugincss.md
index 25bb738ac49..52b7418aa3c 100644
--- a/docs/sources/packages_api/runtime/loadplugincss.md
+++ b/docs/sources/packages_api/runtime/loadplugincss.md
@@ -12,6 +12,8 @@ draft = true
### loadPluginCss() function
+Use this to load css for a Grafana plugin by specifying a [PluginCssOptions](./runtime/plugincssoptions.md) containing styling for the dark and the light theme.
+
Signature
```typescript
@@ -26,7 +28,7 @@ import { loadPluginCss } from '@grafana/runtime';
| Parameter | Type | Description |
| --- | --- | --- |
-| options | PluginCssOptions
| |
+| options | PluginCssOptions
| plugin styling for light and dark theme. |
Returns:
diff --git a/docs/sources/packages_api/runtime/locationsrv.md b/docs/sources/packages_api/runtime/locationsrv.md
index 38d8e70d1ca..12dc74ae978 100644
--- a/docs/sources/packages_api/runtime/locationsrv.md
+++ b/docs/sources/packages_api/runtime/locationsrv.md
@@ -10,6 +10,8 @@ draft = true
## LocationSrv interface
+If you need to automatically navigate the user to a new place in the application this should be done via the LocationSrv and it will make sure to update the application state accordingly.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/locationupdate.md b/docs/sources/packages_api/runtime/locationupdate.md
index 710adc50131..3290877bfba 100644
--- a/docs/sources/packages_api/runtime/locationupdate.md
+++ b/docs/sources/packages_api/runtime/locationupdate.md
@@ -24,15 +24,14 @@ import { LocationUpdate } from '@grafana/runtime';
| Property | Type | Description |
| --- | --- | --- |
-| [partial](#partial-property) | boolean
| Add the query argument to the existing URL |
-| [path](#path-property) | string
| |
-| [query](#query-property) | UrlQueryMap
| |
+| [partial](#partial-property) | boolean
| If set to true, the query argument will be added to the existing URL. |
+| [path](#path-property) | string
| Target path where you automatically wants to navigate the user. |
+| [query](#query-property) | UrlQueryMap
| Specify this value if you want to add values to the query string of the URL. |
| [replace](#replace-property) | boolean
| |
-| [routeParams](#routeparams-property) | UrlQueryMap
| Do not change this unless you are the angular router |
### partial property
-Add the query argument to the existing URL
+If set to true, the query argument will be added to the existing URL.
Signature
@@ -42,6 +41,8 @@ partial?: boolean;
### path property
+Target path where you automatically wants to navigate the user.
+
Signature
```typescript
@@ -50,6 +51,8 @@ path?: string;
### query property
+Specify this value if you want to add values to the query string of the URL.
+
Signature
```typescript
@@ -63,13 +66,3 @@ query?: UrlQueryMap;
```typescript
replace?: boolean;
```
-
-### routeParams property
-
-Do not change this unless you are the angular router
-
-Signature
-
-```typescript
-routeParams?: UrlQueryMap;
-```
diff --git a/docs/sources/packages_api/runtime/metaanalyticsevent.md b/docs/sources/packages_api/runtime/metaanalyticsevent.md
index a79212da17c..8a8fc76c478 100644
--- a/docs/sources/packages_api/runtime/metaanalyticsevent.md
+++ b/docs/sources/packages_api/runtime/metaanalyticsevent.md
@@ -10,6 +10,8 @@ draft = true
## MetaAnalyticsEvent interface
+Describes meta analytics event with predefined [EchoEventType.MetaAnalytics](./runtime/echoeventtype/metaanalytics.md) type.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/metaanalyticseventname.md b/docs/sources/packages_api/runtime/metaanalyticseventname.md
new file mode 100644
index 00000000000..bf0f4aae5f5
--- /dev/null
+++ b/docs/sources/packages_api/runtime/metaanalyticseventname.md
@@ -0,0 +1,34 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "MetaAnalyticsEventName"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## MetaAnalyticsEventName enum
+
+### MetaAnalyticsEventName enum
+
+The meta analytics events that can be added to the echo service.
+
+Signature
+
+```typescript
+export declare enum MetaAnalyticsEventName
+```
+Import
+
+```typescript
+import { MetaAnalyticsEventName } from '@grafana/runtime';
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| DashboardView | "dashboard-view"
| |
+| DataRequest | "data-request"
| |
+
diff --git a/docs/sources/packages_api/runtime/metaanalyticseventpayload.md b/docs/sources/packages_api/runtime/metaanalyticseventpayload.md
index bd246211f01..99e57e1dc1d 100644
--- a/docs/sources/packages_api/runtime/metaanalyticseventpayload.md
+++ b/docs/sources/packages_api/runtime/metaanalyticseventpayload.md
@@ -8,127 +8,19 @@ type = "docs"
draft = true
+++
-## MetaAnalyticsEventPayload interface
+## MetaAnalyticsEventPayload type
+
+### MetaAnalyticsEventPayload type
+
+Describes the meta analytics payload passed with the [MetaAnalyticsEvent](./runtime/metaanalyticsevent.md)
Signature
```typescript
-export interface MetaAnalyticsEventPayload
+export declare type MetaAnalyticsEventPayload = DashboardViewEventPayload | DataRequestEventPayload;
```
Import
```typescript
import { MetaAnalyticsEventPayload } from '@grafana/runtime';
```
-Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [dashboardId](#dashboardid-property) | number
| |
-| [dashboardName](#dashboardname-property) | string
| |
-| [dashboardUid](#dashboarduid-property) | string
| |
-| [dataSize](#datasize-property) | number
| |
-| [datasourceId](#datasourceid-property) | number
| |
-| [datasourceName](#datasourcename-property) | string
| |
-| [duration](#duration-property) | number
| |
-| [error](#error-property) | string
| |
-| [eventName](#eventname-property) | string
| |
-| [folderName](#foldername-property) | string
| |
-| [panelId](#panelid-property) | number
| |
-| [panelName](#panelname-property) | string
| |
-
-### dashboardId property
-
-Signature
-
-```typescript
-dashboardId?: number;
-```
-
-### dashboardName property
-
-Signature
-
-```typescript
-dashboardName?: string;
-```
-
-### dashboardUid property
-
-Signature
-
-```typescript
-dashboardUid?: string;
-```
-
-### dataSize property
-
-Signature
-
-```typescript
-dataSize?: number;
-```
-
-### datasourceId property
-
-Signature
-
-```typescript
-datasourceId?: number;
-```
-
-### datasourceName property
-
-Signature
-
-```typescript
-datasourceName: string;
-```
-
-### duration property
-
-Signature
-
-```typescript
-duration: number;
-```
-
-### error property
-
-Signature
-
-```typescript
-error?: string;
-```
-
-### eventName property
-
-Signature
-
-```typescript
-eventName: string;
-```
-
-### folderName property
-
-Signature
-
-```typescript
-folderName?: string;
-```
-
-### panelId property
-
-Signature
-
-```typescript
-panelId?: number;
-```
-
-### panelName property
-
-Signature
-
-```typescript
-panelName?: string;
-```
diff --git a/docs/sources/packages_api/runtime/plugincssoptions.md b/docs/sources/packages_api/runtime/plugincssoptions.md
new file mode 100644
index 00000000000..3c3529aac5b
--- /dev/null
+++ b/docs/sources/packages_api/runtime/plugincssoptions.md
@@ -0,0 +1,46 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "PluginCssOptions"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## PluginCssOptions interface
+
+Option to specify a plugin css that should be applied for the dark and the light theme.
+
+Signature
+
+```typescript
+export interface PluginCssOptions
+```
+Import
+
+```typescript
+import { PluginCssOptions } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [dark](#dark-property) | string
| |
+| [light](#light-property) | string
| |
+
+### dark property
+
+Signature
+
+```typescript
+dark: string;
+```
+
+### light property
+
+Signature
+
+```typescript
+light: string;
+```
diff --git a/docs/sources/packages_api/runtime/registerechobackend.md b/docs/sources/packages_api/runtime/registerechobackend.md
index c296e587774..7d16f95690e 100644
--- a/docs/sources/packages_api/runtime/registerechobackend.md
+++ b/docs/sources/packages_api/runtime/registerechobackend.md
@@ -12,6 +12,8 @@ draft = true
### registerEchoBackend variable
+Used to register echo backends that will receive Grafana echo events during application runtime.
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/reportmetaanalytics.md b/docs/sources/packages_api/runtime/reportmetaanalytics.md
index bd0d7bfce37..485c2383d6f 100644
--- a/docs/sources/packages_api/runtime/reportmetaanalytics.md
+++ b/docs/sources/packages_api/runtime/reportmetaanalytics.md
@@ -12,6 +12,8 @@ draft = true
### reportMetaAnalytics variable
+Helper function to report meta analytics to the [EchoSrv](./runtime/echosrv.md).
+
Signature
```typescript
diff --git a/docs/sources/packages_api/runtime/setlocationsrv.md b/docs/sources/packages_api/runtime/setlocationsrv.md
deleted file mode 100644
index abe75712870..00000000000
--- a/docs/sources/packages_api/runtime/setlocationsrv.md
+++ /dev/null
@@ -1,34 +0,0 @@
-+++
-# -----------------------------------------------------------------------
-# Do not edit this file. It is automatically generated by API Documenter.
-# -----------------------------------------------------------------------
-title = "setLocationSrv"
-keywords = ["grafana","documentation","sdk","@grafana/runtime"]
-type = "docs"
-draft = true
-+++
-
-## setLocationSrv() function
-
-### setLocationSrv() function
-
-Signature
-
-```typescript
-export declare function setLocationSrv(instance: LocationSrv): void;
-```
-Import
-
-```typescript
-import { setLocationSrv } from '@grafana/runtime';
-```
-Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| instance | LocationSrv
| |
-
-Returns:
-
-`void`
-
diff --git a/docs/sources/packages_api/runtime/sizemeta.md b/docs/sources/packages_api/runtime/sizemeta.md
new file mode 100644
index 00000000000..5777afc26c4
--- /dev/null
+++ b/docs/sources/packages_api/runtime/sizemeta.md
@@ -0,0 +1,46 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "SizeMeta"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## SizeMeta interface
+
+Describes a size with width/height
+
+Signature
+
+```typescript
+export interface SizeMeta
+```
+Import
+
+```typescript
+import { SizeMeta } from '@grafana/runtime';
+```
+Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [height](#height-property) | number
| |
+| [width](#width-property) | number
| |
+
+### height property
+
+Signature
+
+```typescript
+height: number;
+```
+
+### width property
+
+Signature
+
+```typescript
+width: number;
+```
diff --git a/docs/sources/packages_api/runtime/templatesrv.md b/docs/sources/packages_api/runtime/templatesrv.md
new file mode 100644
index 00000000000..097ce67fbbd
--- /dev/null
+++ b/docs/sources/packages_api/runtime/templatesrv.md
@@ -0,0 +1,43 @@
++++
+# -----------------------------------------------------------------------
+# Do not edit this file. It is automatically generated by API Documenter.
+# -----------------------------------------------------------------------
+title = "TemplateSrv"
+keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+type = "docs"
+draft = true
++++
+
+## TemplateSrv interface
+
+Via the TemplateSrv consumers get access to all the available template variables that can be used within the current active dashboard.
+
+For a more in-depth description visit: https://grafana.com/docs/grafana/latest/reference/templating
+
+Signature
+
+```typescript
+export interface TemplateSrv
+```
+Import
+
+```typescript
+import { TemplateSrv } from '@grafana/runtime';
+```
+Methods
+
+| Method | Description |
+| --- | --- |
+| [getVariables()](#getvariables-method) | |
+
+### getVariables method
+
+Signature
+
+```typescript
+getVariables(): VariableModel[];
+```
+Returns:
+
+`VariableModel[]`
+
diff --git a/docs/sources/packages_api/ui/_index.md b/docs/sources/packages_api/ui/_index.md
index 6b57bf71b16..e9eaff804e0 100644
--- a/docs/sources/packages_api/ui/_index.md
+++ b/docs/sources/packages_api/ui/_index.md
@@ -17,39 +17,32 @@ A library containing the different design components of the Grafana ecosystem.
| Class | Description |
| --- | --- |
| [ansicolor](./ansicolor/) | Represents an ANSI-escaped string. |
-| [AsyncSelect](./asyncselect/) | |
| [BarGauge](./bargauge/) | |
| [BigValue](./bigvalue/) | |
-| [ButtonSelect](./buttonselect/) | |
| [Cascader](./cascader/) | |
| [ClickOutsideWrapper](./clickoutsidewrapper/) | |
+| [ClipboardButton](./clipboardbutton/) | |
| [CustomScrollbar](./customscrollbar/) | Wraps component into react-custom-scrollbars
|
| [ErrorBoundary](./errorboundary/) | |
| [ErrorBoundaryAlert](./errorboundaryalert/) | |
-| [FieldDisplayEditor](./fielddisplayeditor/) | |
| [Gauge](./gauge/) | |
| [Graph](./graph/) | |
| [GraphSeriesToggler](./graphseriestoggler/) | |
-| [Input](./input/) | |
| [JsonExplorer](./jsonexplorer/) | JsonExplorerJsonExplorer allows you to render JSON objects in HTML with a \*\*collapsible\*\* navigation. |
| [JSONFormatter](./jsonformatter/) | |
| [List](./list/) | |
+| [ModalsProvider](./modalsprovider/) | |
| [PieChart](./piechart/) | |
| [Popover](./popover/) | |
| [PopoverController](./popovercontroller/) | |
| [Portal](./portal/) | |
| [QueryField](./queryfield/) | Renders an editor field. Pass initial value as initialQuery and listen to changes in props.onValueChanged. This component can only process strings. Internally it uses Slate Value. Implement props.onTypeahead to use suggestions, see PromQueryField.tsx as an example. |
-| [Select](./select/) | |
| [SetInterval](./setinterval/) | |
| [StatsPicker](./statspicker/) | |
-| [Switch](./switch/) | |
| [TableInputCSV](./tableinputcsv/) | Expects the container div to have size set and will fill it 100% |
| [TagsInput](./tagsinput/) | |
-| [ThresholdsEditor](./thresholdseditor/) | |
| [ToggleButtonGroup](./togglebuttongroup/) | |
-| [TransformationsEditor](./transformationseditor/) | |
| [UnitPicker](./unitpicker/) | |
-| [ValueMappingsEditor](./valuemappingseditor/) | |
| [VizRepeater](./vizrepeater/) | |
## Enumerations
@@ -62,7 +55,7 @@ A library containing the different design components of the Grafana ecosystem.
| [BigValueJustifyMode](./bigvaluejustifymode/) | |
| [CompletionItemKind](./completionitemkind/) | |
| [EventsWithValidation](./eventswithvalidation/) | |
-| [InputStatus](./inputstatus/) | |
+| [LegacyInputStatus](./legacyinputstatus/) | |
| [LegendDisplayMode](./legenddisplaymode/) | |
| [PieChartType](./piecharttype/) | |
@@ -70,31 +63,40 @@ A library containing the different design components of the Grafana ecosystem.
| Function | Description |
| --- | --- |
+| [AsyncMultiSelect(props)](./asyncmultiselect/) | |
+| [AsyncSelect(props)](./asyncselect/) | |
| [BracesPlugin()](./bracesplugin/) | |
+| [ButtonSelect({ placeholder, icon, variant, size, className, disabled, ...selectProps })](./buttonselect/) | |
| [calculateFontSize(text, width, height, lineHeight, maxSize)](./calculatefontsize/) | |
| [ClearPlugin()](./clearplugin/) | |
| [ClipboardPlugin()](./clipboardplugin/) | |
| [convertOldAngularValueMapping(panel)](./convertoldangularvaluemapping/) | Convert the angular single stat mapping to new react style |
| [FadeTransition(props)](./fadetransition/) | |
+| [Form({ defaultValues, onSubmit, validateOnMount, validateFieldsOnMount, children, validateOn, })](./form/) | |
| [getTagColorsFromName(name)](./gettagcolorsfromname/) | Returns tag badge background and border colors based on hashed tag name. |
| [IndentationPlugin()](./indentationplugin/) | |
| [measureText(text, fontSize)](./measuretext/) | |
+| [MultiSelect(props)](./multiselect/) | |
| [NewlinePlugin()](./newlineplugin/) | |
+| [RadioButtonGroup({ options, value, onChange, disabled, disabledOptions, size, fullWidth, })](./radiobuttongroup/) | |
+| [renderOrCallToRender(itemToRender, props)](./renderorcalltorender/) | Given react node or function returns element accordingly |
| [resetSelectStyles()](./resetselectstyles/) | |
| [RunnerPlugin({ handler })](./runnerplugin/) | |
| [Segment({ options, value, onChange, Component, className, allowCustomValue, placeholder, })](./segment/) | |
| [SegmentAsync({ value, onChange, loadOptions, Component, className, allowCustomValue, placeholder, })](./segmentasync/) | |
| [SegmentInput({ value: initialValue, onChange, Component, className, placeholder, autofocus, })](./segmentinput/) | |
| [SegmentSelect({ value, options, onChange, onClickOutside, width, noOptionsMessage, allowCustomValue, })](./segmentselect/) | |
+| [Select(props)](./select/) | |
| [SelectionShortcutsPlugin()](./selectionshortcutsplugin/) | |
+| [SelectValueEditor({ value, onChange, item, })](./selectvalueeditor/) | |
| [sharedSingleStatMigrationHandler(panel)](./sharedsinglestatmigrationhandler/) | |
-| [sharedSingleStatPanelChangedHandler(options, prevPluginId, prevOptions)](./sharedsinglestatpanelchangedhandler/) | |
+| [sharedSingleStatPanelChangedHandler(panel, prevPluginId, prevOptions)](./sharedsinglestatpanelchangedhandler/) | |
| [SlatePrism(optsParam)](./slateprism/) | A Slate plugin to highlight code syntax. |
| [SlideOutTransition(props)](./slideouttransition/) | |
| [stylesFactory(stylesCreator)](./stylesfactory/) | Creates memoized version of styles creator |
| [SuggestionsPlugin({ onTypeahead, cleanText, onWillApplySuggestion, portalOrigin, })](./suggestionsplugin/) | |
| [useTheme()](./usetheme/) | |
-| [ValuePicker({ label, icon, options, onChange, variant })](./valuepicker/) | |
+| [ValuePicker({ label, icon, options, onChange, variant, size, isFullWidth, })](./valuepicker/) | |
## Interfaces
@@ -113,22 +115,22 @@ A library containing the different design components of the Grafana ecosystem.
| [LegendItem](./legenditem/) | |
| [LegendOptions](./legendoptions/) | |
| [LegendRenderOptions](./legendrenderoptions/) | |
-| [NumberFieldConfigSettings](./numberfieldconfigsettings/) | |
-| [SelectFieldConfigSettings](./selectfieldconfigsettings/) | |
| [SingleStatBaseOptions](./singlestatbaseoptions/) | |
-| [StringFieldConfigSettings](./stringfieldconfigsettings/) | |
+| [StyleProps](./styleprops/) | |
| [SuggestionsState](./suggestionsstate/) | |
| [Themeable](./themeable/) | |
| [TypeaheadInput](./typeaheadinput/) | |
| [TypeaheadOutput](./typeaheadoutput/) | |
| [ValidationEvents](./validationevents/) | |
| [ValidationRule](./validationrule/) | |
+| [VizRepeaterRenderValueProps](./vizrepeaterrendervalueprops/) | |
## Namespaces
| Namespace | Description |
| --- | --- |
| [DOMUtil](./domutil/) | |
+| [RadioButtonGroup](./radiobuttongroup/) | |
| [styleMixins](./stylemixins/) | |
## Variables
@@ -142,31 +144,40 @@ A library containing the different design components of the Grafana ecosystem.
| [ButtonCascader](./buttoncascader/) | |
| [CallToActionCard](./calltoactioncard/) | |
| [Chart](./chart/) | |
+| [Checkbox](./checkbox/) | |
| [Collapse](./collapse/) | |
| [ColorPicker](./colorpicker/) | |
| [colors](./colors/) | |
| [ConfirmButton](./confirmbutton/) | |
| [ConfirmModal](./confirmmodal/) | |
+| [Container](./container/) | |
| [ContextMenu](./contextmenu/) | |
| [ControlledCollapse](./controlledcollapse/) | |
-| [DataLinkBuiltInVars](./datalinkbuiltinvars/) | |
+| [Counter](./counter/) | |
| [DataLinkInput](./datalinkinput/) | |
| [DataLinksContextMenu](./datalinkscontextmenu/) | |
| [DataLinksEditor](./datalinkseditor/) | |
+| [DataLinksInlineEditor](./datalinksinlineeditor/) | |
| [DataSourceHttpSettings](./datasourcehttpsettings/) | |
| [DEFAULT\_ANNOTATION\_COLOR](./default_annotation_color/) | |
| [DeleteButton](./deletebutton/) | |
| [Drawer](./drawer/) | |
| [EmptySearchResult](./emptysearchresult/) | |
| [ErrorWithStack](./errorwithstack/) | |
+| [Field](./field/) | |
+| [FieldConfigItemHeaderTitle](./fieldconfigitemheadertitle/) | |
| [fieldMatchersUI](./fieldmatchersui/) | |
-| [FieldPropertiesEditor](./fieldpropertieseditor/) | |
| [FormField](./formfield/) | Default form field including label used in Grafana UI. Default input element is simple . You can also pass custom inputEl if required in which case inputWidth and inputProps are ignored. |
| [FormLabel](./formlabel/) | |
| [Forms](./forms/) | |
| [FullWidthButtonContainer](./fullwidthbuttoncontainer/) | |
+| [getAvailableIcons](./getavailableicons/) | |
+| [getButtonStyles](./getbuttonstyles/) | |
+| [getFormStyles](./getformstyles/) | |
| [getLogRowStyles](./getlogrowstyles/) | |
-| [getStandardFieldConfigs](./getstandardfieldconfigs/) | |
+| [getStandardFieldConfigs](./getstandardfieldconfigs/) | Returns collection of common field config properties definitions |
+| [getStandardOptionEditors](./getstandardoptioneditors/) | Returns collection of standard option editors definitions |
+| [getStandardTransformers](./getstandardtransformers/) | |
| [getTheme](./gettheme/) | |
| [GraphContextMenu](./graphcontextmenu/) | |
| [GraphLegend](./graphlegend/) | |
@@ -174,7 +185,11 @@ A library containing the different design components of the Grafana ecosystem.
| [hasValidationEvent](./hasvalidationevent/) | |
| [HorizontalGroup](./horizontalgroup/) | |
| [Icon](./icon/) | |
-| [IndicatorsContainer](./indicatorscontainer/) | |
+| [IconButton](./iconbutton/) | |
+| [Input](./input/) | |
+| [Label](./label/) | |
+| [LegacyForms](./legacyforms/) | |
+| [Legend](./legend/) | |
| [LegendList](./legendlist/) | |
| [LegendTable](./legendtable/) | |
| [LinkButton](./linkbutton/) | |
@@ -187,12 +202,15 @@ A library containing the different design components of the Grafana ecosystem.
| [mockTheme](./mocktheme/) | |
| [mockThemeContext](./mockthemecontext/) | Enables theme context mocking |
| [Modal](./modal/) | |
+| [ModalHeader](./modalheader/) | |
+| [ModalRoot](./modalroot/) | |
+| [ModalsController](./modalscontroller/) | |
+| [ModalTabContent](./modaltabcontent/) | |
+| [ModalTabsHeader](./modaltabsheader/) | |
| [NO\_DATA\_COLOR](./no_data_color/) | |
-| [NoOptionsMessage](./nooptionsmessage/) | |
-| [NumberOverrideEditor](./numberoverrideeditor/) | |
-| [numberOverrideProcessor](./numberoverrideprocessor/) | |
| [NumberValueEditor](./numbervalueeditor/) | |
| [OK\_COLOR](./ok_color/) | |
+| [Pagination](./pagination/) | |
| [PALETTE\_COLUMNS](./palette_columns/) | |
| [PALETTE\_ROWS](./palette_rows/) | |
| [PanelOptionsGrid](./paneloptionsgrid/) | |
@@ -203,30 +221,28 @@ A library containing the different design components of the Grafana ecosystem.
| [REGION\_FILL\_ALPHA](./region_fill_alpha/) | |
| [SCHEMA](./schema/) | |
| [SecretFormField](./secretformfield/) | Form field that has 2 states configured and not configured. If configured it will not show its contents and adds a reset button that will clear the input and makes it accessible. In non configured state it behaves like normal form field. This is used for passwords or anything that is encrypted on the server and is later returned encrypted to the user (like datasource passwords). |
-| [SelectOverrideEditor](./selectoverrideeditor/) | |
-| [selectOverrideProcessor](./selectoverrideprocessor/) | |
| [selectThemeVariant](./selectthemevariant/) | |
-| [SelectValueEditor](./selectvalueeditor/) | |
| [SeriesColorPicker](./seriescolorpicker/) | |
| [SeriesColorPickerPopover](./seriescolorpickerpopover/) | |
| [SeriesColorPickerPopoverWithTheme](./seriescolorpickerpopoverwiththeme/) | |
| [SeriesIcon](./seriesicon/) | |
+| [Slider](./slider/) | |
| [sortedColors](./sortedcolors/) | |
| [Spinner](./spinner/) | |
-| [StringOverrideEditor](./stringoverrideeditor/) | |
-| [stringOverrideProcessor](./stringoverrideprocessor/) | |
| [StringValueEditor](./stringvalueeditor/) | |
+| [Switch](./switch/) | |
| [Tab](./tab/) | |
| [TabContent](./tabcontent/) | |
| [Table](./table/) | |
| [TabsBar](./tabsbar/) | |
+| [Tag](./tag/) | |
+| [TagList](./taglist/) | |
+| [TextArea](./textarea/) | |
| [ThemeContext](./themecontext/) | |
| [TimeOfDayPicker](./timeofdaypicker/) | |
-| [TimePicker](./timepicker/) | |
+| [TimeRangePicker](./timerangepicker/) | |
| [ToggleButton](./togglebutton/) | |
| [Tooltip](./tooltip/) | |
-| [TransformationRow](./transformationrow/) | |
-| [transformersUIRegistry](./transformersuiregistry/) | |
| [validate](./validate/) | |
| [VerticalGroup](./verticalgroup/) | |
| [withTheme](./withtheme/) | |
@@ -236,6 +252,13 @@ A library containing the different design components of the Grafana ecosystem.
| Type Alias | Description |
| --- | --- |
| [AlertVariant](./alertvariant/) | |
+| [ButtonProps](./buttonprops/) | |
+| [ButtonVariant](./buttonvariant/) | |
+| [FormAPI](./formapi/) | |
+| [FormInputSize](./forminputsize/) | |
+| [IconName](./iconname/) | |
+| [IconSize](./iconsize/) | |
+| [IconType](./icontype/) | |
| [LegendPlacement](./legendplacement/) | |
| [PopoverContent](./popovercontent/) | |
| [Renderable](./renderable/) | |
diff --git a/docs/sources/packages_api/ui/ansicolor.md b/docs/sources/packages_api/ui/ansicolor.md
index 0cd89625507..76986ed1c65 100644
--- a/docs/sources/packages_api/ui/ansicolor.md
+++ b/docs/sources/packages_api/ui/ansicolor.md
@@ -62,7 +62,7 @@ constructor(s?: string);
| Parameter | Type | Description |
| --- | --- | --- |
-| s | string
| |
+| s | string
| a string containing ANSI escape codes. |
### asChromeConsoleLogArguments property
@@ -204,7 +204,7 @@ static strip(s: string): string;
| Parameter | Type | Description |
| --- | --- | --- |
-| s | string
| |
+| s | string
| a string containing ANSI escape codes. {string} clean string. |
Returns:
diff --git a/docs/sources/packages_api/runtime/setangularloader.md b/docs/sources/packages_api/ui/asyncmultiselect.md
similarity index 51%
rename from docs/sources/packages_api/runtime/setangularloader.md
rename to docs/sources/packages_api/ui/asyncmultiselect.md
index 38f5435e5fb..1b7873ff349 100644
--- a/docs/sources/packages_api/runtime/setangularloader.md
+++ b/docs/sources/packages_api/ui/asyncmultiselect.md
@@ -2,33 +2,33 @@
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
-title = "setAngularLoader"
-keywords = ["grafana","documentation","sdk","@grafana/runtime"]
+title = "AsyncMultiSelect"
+keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
draft = true
+++
-## setAngularLoader() function
+## AsyncMultiSelect() function
-### setAngularLoader() function
+### AsyncMultiSelect() function
Signature
```typescript
-export declare function setAngularLoader(v: AngularLoader): void;
+export declare function AsyncMultiSelectAngularLoader
| |
+| props | AsyncMultiSelectProps<T>
| |
Returns:
-`void`
+`JSX.Element`
diff --git a/docs/sources/packages_api/ui/asyncselect.md b/docs/sources/packages_api/ui/asyncselect.md
index 54080fef06f..229d2083210 100644
--- a/docs/sources/packages_api/ui/asyncselect.md
+++ b/docs/sources/packages_api/ui/asyncselect.md
@@ -8,45 +8,26 @@ type = "docs"
draft = true
+++
-## AsyncSelect class
+## AsyncSelect() function
+
+### AsyncSelect() function
Signature
```typescript
-export declare class AsyncSelectstatic
| Partial<AsyncProps<any>>
| |
-
-Methods
-
-| Method | Modifiers | Description |
+| Parameter | Type | Description |
| --- | --- | --- |
-| [render()](#render-method) | | |
+| props | AsyncSelectProps<T>
| |
-### defaultProps property
-
-Signature
-
-```typescript
-static defaultProps: Partial