Field
class |
+
+## Properties
+
+| Property | Modifiers | Type | Description |
+| --- | --- | --- | --- |
+| [$$spec](./kibana-plugin-plugins-data-public.field.__spec.md) | | FieldSpec
| |
+| [aggregatable](./kibana-plugin-plugins-data-public.field.aggregatable.md) | | boolean
| |
+| [conflictDescriptions](./kibana-plugin-plugins-data-public.field.conflictdescriptions.md) | | Record<string, string[]>
| |
+| [count](./kibana-plugin-plugins-data-public.field.count.md) | | number
| |
+| [displayName](./kibana-plugin-plugins-data-public.field.displayname.md) | | string
| |
+| [esTypes](./kibana-plugin-plugins-data-public.field.estypes.md) | | string[]
| |
+| [filterable](./kibana-plugin-plugins-data-public.field.filterable.md) | | boolean
| |
+| [format](./kibana-plugin-plugins-data-public.field.format.md) | | any
| |
+| [indexPattern](./kibana-plugin-plugins-data-public.field.indexpattern.md) | | IndexPattern
| |
+| [lang](./kibana-plugin-plugins-data-public.field.lang.md) | | string
| |
+| [name](./kibana-plugin-plugins-data-public.field.name.md) | | string
| |
+| [script](./kibana-plugin-plugins-data-public.field.script.md) | | string
| |
+| [scripted](./kibana-plugin-plugins-data-public.field.scripted.md) | | boolean
| |
+| [searchable](./kibana-plugin-plugins-data-public.field.searchable.md) | | boolean
| |
+| [sortable](./kibana-plugin-plugins-data-public.field.sortable.md) | | boolean
| |
+| [subType](./kibana-plugin-plugins-data-public.field.subtype.md) | | IFieldSubType
| |
+| [type](./kibana-plugin-plugins-data-public.field.type.md) | | string
| |
+| [visualizable](./kibana-plugin-plugins-data-public.field.visualizable.md) | | boolean
| |
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.name.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.name.md
new file mode 100644
index 0000000000000..d2a9b9b86aefc
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.name.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [name](./kibana-plugin-plugins-data-public.field.name.md)
+
+## Field.name property
+
+Signature:
+
+```typescript
+name: string;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.script.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.script.md
new file mode 100644
index 0000000000000..676ff9bdfc35a
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.script.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [script](./kibana-plugin-plugins-data-public.field.script.md)
+
+## Field.script property
+
+Signature:
+
+```typescript
+script?: string;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.scripted.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.scripted.md
new file mode 100644
index 0000000000000..1f6c8105e3f61
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.scripted.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [scripted](./kibana-plugin-plugins-data-public.field.scripted.md)
+
+## Field.scripted property
+
+Signature:
+
+```typescript
+scripted?: boolean;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.searchable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.searchable.md
new file mode 100644
index 0000000000000..186d344f50378
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.searchable.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [searchable](./kibana-plugin-plugins-data-public.field.searchable.md)
+
+## Field.searchable property
+
+Signature:
+
+```typescript
+searchable?: boolean;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.sortable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.sortable.md
new file mode 100644
index 0000000000000..0cd4b14d0e1e5
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.sortable.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [sortable](./kibana-plugin-plugins-data-public.field.sortable.md)
+
+## Field.sortable property
+
+Signature:
+
+```typescript
+sortable?: boolean;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.subtype.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.subtype.md
new file mode 100644
index 0000000000000..bef3b2131fa47
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.subtype.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [subType](./kibana-plugin-plugins-data-public.field.subtype.md)
+
+## Field.subType property
+
+Signature:
+
+```typescript
+subType?: IFieldSubType;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.type.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.type.md
new file mode 100644
index 0000000000000..490615edcf097
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.type.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [type](./kibana-plugin-plugins-data-public.field.type.md)
+
+## Field.type property
+
+Signature:
+
+```typescript
+type: string;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.visualizable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.visualizable.md
new file mode 100644
index 0000000000000..f32a5c456dc5d
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.field.visualizable.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [Field](./kibana-plugin-plugins-data-public.field.md) > [visualizable](./kibana-plugin-plugins-data-public.field.visualizable.md)
+
+## Field.visualizable property
+
+Signature:
+
+```typescript
+visualizable?: boolean;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._constructor_.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._constructor_.md
new file mode 100644
index 0000000000000..e38da6600696c
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._constructor_.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [(constructor)](./kibana-plugin-plugins-data-public.fieldformat._constructor_.md)
+
+## FieldFormat.(constructor)
+
+Constructs a new instance of the `FieldFormat` class
+
+Signature:
+
+```typescript
+constructor(_params?: IFieldFormatMetaParams, getConfig?: FieldFormatsGetConfigFn);
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| \_params | IFieldFormatMetaParams
| |
+| getConfig | FieldFormatsGetConfigFn
| |
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._params.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._params.md
new file mode 100644
index 0000000000000..ac3f256a9afc3
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat._params.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [\_params](./kibana-plugin-plugins-data-public.fieldformat._params.md)
+
+## FieldFormat.\_params property
+
+Signature:
+
+```typescript
+protected readonly _params: any;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convert.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convert.md
new file mode 100644
index 0000000000000..0535585cb4718
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convert.md
@@ -0,0 +1,26 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [convert](./kibana-plugin-plugins-data-public.fieldformat.convert.md)
+
+## FieldFormat.convert() method
+
+Convert a raw value to a formatted string
+
+Signature:
+
+```typescript
+convert(value: any, contentType?: FieldFormatsContentType, options?: HtmlContextTypeOptions | TextContextTypeOptions): string;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| value | any
| |
+| contentType | FieldFormatsContentType
| |
+| options | HtmlContextTypeOptions | TextContextTypeOptions
| |
+
+Returns:
+
+`string`
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convertobject.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convertobject.md
new file mode 100644
index 0000000000000..436124ac08387
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.convertobject.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [convertObject](./kibana-plugin-plugins-data-public.fieldformat.convertobject.md)
+
+## FieldFormat.convertObject property
+
+ {FieldFormatConvert} have to remove the private because of https://github.com/Microsoft/TypeScript/issues/17293
+
+Signature:
+
+```typescript
+convertObject: FieldFormatConvert | undefined;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.fieldtype.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.fieldtype.md
new file mode 100644
index 0000000000000..1d109a599d2d9
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.fieldtype.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [fieldType](./kibana-plugin-plugins-data-public.fieldformat.fieldtype.md)
+
+## FieldFormat.fieldType property
+
+ {string} - Field Format Type
+
+Signature:
+
+```typescript
+static fieldType: string | string[];
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.from.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.from.md
new file mode 100644
index 0000000000000..ec497de59d236
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.from.md
@@ -0,0 +1,22 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [from](./kibana-plugin-plugins-data-public.fieldformat.from.md)
+
+## FieldFormat.from() method
+
+Signature:
+
+```typescript
+static from(convertFn: FieldFormatConvertFunction): FieldFormatInstanceType;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| convertFn | FieldFormatConvertFunction
| |
+
+Returns:
+
+`FieldFormatInstanceType`
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconfig.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconfig.md
new file mode 100644
index 0000000000000..446e0c237ce13
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconfig.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [getConfig](./kibana-plugin-plugins-data-public.fieldformat.getconfig.md)
+
+## FieldFormat.getConfig property
+
+Signature:
+
+```typescript
+protected getConfig: FieldFormatsGetConfigFn | undefined;
+```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconverterfor.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconverterfor.md
new file mode 100644
index 0000000000000..f4eeb5eed06a0
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getconverterfor.md
@@ -0,0 +1,24 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [getConverterFor](./kibana-plugin-plugins-data-public.fieldformat.getconverterfor.md)
+
+## FieldFormat.getConverterFor() method
+
+Get a convert function that is bound to a specific contentType
+
+Signature:
+
+```typescript
+getConverterFor(contentType?: FieldFormatsContentType): FieldFormatConvertFunction;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| contentType | FieldFormatsContentType
| |
+
+Returns:
+
+`FieldFormatConvertFunction`
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getparamdefaults.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getparamdefaults.md
new file mode 100644
index 0000000000000..59afdc25df350
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.getparamdefaults.md
@@ -0,0 +1,17 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [getParamDefaults](./kibana-plugin-plugins-data-public.fieldformat.getparamdefaults.md)
+
+## FieldFormat.getParamDefaults() method
+
+Get parameter defaults {object} - parameter defaults
+
+Signature:
+
+```typescript
+getParamDefaults(): Recordany
| |
+
+Returns:
+
+`fieldFormat is FieldFormat`
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.md
new file mode 100644
index 0000000000000..b53e301c46c1c
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.md
@@ -0,0 +1,46 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md)
+
+## FieldFormat class
+
+Signature:
+
+```typescript
+export declare abstract class FieldFormat
+```
+
+## Constructors
+
+| Constructor | Modifiers | Description |
+| --- | --- | --- |
+| [(constructor)(\_params, getConfig)](./kibana-plugin-plugins-data-public.fieldformat._constructor_.md) | | Constructs a new instance of the FieldFormat
class |
+
+## Properties
+
+| Property | Modifiers | Type | Description |
+| --- | --- | --- | --- |
+| [\_params](./kibana-plugin-plugins-data-public.fieldformat._params.md) | | any
| |
+| [convertObject](./kibana-plugin-plugins-data-public.fieldformat.convertobject.md) | | FieldFormatConvert | undefined
| {FieldFormatConvert} have to remove the private because of https://github.com/Microsoft/TypeScript/issues/17293 |
+| [fieldType](./kibana-plugin-plugins-data-public.fieldformat.fieldtype.md) | static
| string | string[]
| {string} - Field Format Type |
+| [getConfig](./kibana-plugin-plugins-data-public.fieldformat.getconfig.md) | | FieldFormatsGetConfigFn | undefined
| |
+| [htmlConvert](./kibana-plugin-plugins-data-public.fieldformat.htmlconvert.md) | | HtmlContextTypeConvert | undefined
| {htmlConvert} have to remove the protected because of https://github.com/Microsoft/TypeScript/issues/17293 |
+| [id](./kibana-plugin-plugins-data-public.fieldformat.id.md) | static
| string
| {string} - Field Format Id |
+| [textConvert](./kibana-plugin-plugins-data-public.fieldformat.textconvert.md) | | TextContextTypeConvert | undefined
| {textConvert} have to remove the protected because of https://github.com/Microsoft/TypeScript/issues/17293 |
+| [title](./kibana-plugin-plugins-data-public.fieldformat.title.md) | static
| string
| {string} - Field Format Title |
+| [type](./kibana-plugin-plugins-data-public.fieldformat.type.md) | | any
| {Function} - ref to child class |
+
+## Methods
+
+| Method | Modifiers | Description |
+| --- | --- | --- |
+| [convert(value, contentType, options)](./kibana-plugin-plugins-data-public.fieldformat.convert.md) | | Convert a raw value to a formatted string |
+| [from(convertFn)](./kibana-plugin-plugins-data-public.fieldformat.from.md) | static
| |
+| [getConverterFor(contentType)](./kibana-plugin-plugins-data-public.fieldformat.getconverterfor.md) | | Get a convert function that is bound to a specific contentType |
+| [getParamDefaults()](./kibana-plugin-plugins-data-public.fieldformat.getparamdefaults.md) | | Get parameter defaults {object} - parameter defaults |
+| [isInstanceOfFieldFormat(fieldFormat)](./kibana-plugin-plugins-data-public.fieldformat.isinstanceoffieldformat.md) | static
| |
+| [param(name)](./kibana-plugin-plugins-data-public.fieldformat.param.md) | | Get the value of a param. This value may be a default value. |
+| [params()](./kibana-plugin-plugins-data-public.fieldformat.params.md) | | Get all of the params in a single object {object} |
+| [setupContentType()](./kibana-plugin-plugins-data-public.fieldformat.setupcontenttype.md) | | |
+| [toJSON()](./kibana-plugin-plugins-data-public.fieldformat.tojson.md) | | Serialize this format to a simple POJO, with only the params that are not default {object} |
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.param.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.param.md
new file mode 100644
index 0000000000000..1e7fd9d161429
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.param.md
@@ -0,0 +1,24 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [param](./kibana-plugin-plugins-data-public.fieldformat.param.md)
+
+## FieldFormat.param() method
+
+Get the value of a param. This value may be a default value.
+
+Signature:
+
+```typescript
+param(name: string): any;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| name | string
| |
+
+Returns:
+
+`any`
+
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.params.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.params.md
new file mode 100644
index 0000000000000..5825af4925d06
--- /dev/null
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.fieldformat.params.md
@@ -0,0 +1,17 @@
+
+
+[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) > [params](./kibana-plugin-plugins-data-public.fieldformat.params.md)
+
+## FieldFormat.params() method
+
+Get all of the params in a single object {object}
+
+Signature:
+
+```typescript
+params(): RecordField
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [$$spec](./kibana-plugin-plugins-data-public.indexpatternfield.__spec.md) | | FieldSpec
| |
-| [aggregatable](./kibana-plugin-plugins-data-public.indexpatternfield.aggregatable.md) | | boolean
| |
-| [count](./kibana-plugin-plugins-data-public.indexpatternfield.count.md) | | number
| |
-| [displayName](./kibana-plugin-plugins-data-public.indexpatternfield.displayname.md) | | string
| |
-| [esTypes](./kibana-plugin-plugins-data-public.indexpatternfield.estypes.md) | | string[]
| |
-| [filterable](./kibana-plugin-plugins-data-public.indexpatternfield.filterable.md) | | boolean
| |
-| [format](./kibana-plugin-plugins-data-public.indexpatternfield.format.md) | | any
| |
-| [indexPattern](./kibana-plugin-plugins-data-public.indexpatternfield.indexpattern.md) | | IndexPattern
| |
-| [lang](./kibana-plugin-plugins-data-public.indexpatternfield.lang.md) | | string
| |
-| [name](./kibana-plugin-plugins-data-public.indexpatternfield.name.md) | | string
| |
-| [script](./kibana-plugin-plugins-data-public.indexpatternfield.script.md) | | string
| |
-| [scripted](./kibana-plugin-plugins-data-public.indexpatternfield.scripted.md) | | boolean
| |
-| [searchable](./kibana-plugin-plugins-data-public.indexpatternfield.searchable.md) | | boolean
| |
-| [sortable](./kibana-plugin-plugins-data-public.indexpatternfield.sortable.md) | | boolean
| |
-| [subType](./kibana-plugin-plugins-data-public.indexpatternfield.subtype.md) | | IFieldSubType
| |
-| [type](./kibana-plugin-plugins-data-public.indexpatternfield.type.md) | | string
| |
-| [visualizable](./kibana-plugin-plugins-data-public.indexpatternfield.visualizable.md) | | boolean
| |
-
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.name.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.name.md
deleted file mode 100644
index cb24621e73209..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.name.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [name](./kibana-plugin-plugins-data-public.indexpatternfield.name.md)
-
-## IndexPatternField.name property
-
-Signature:
-
-```typescript
-name: string;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.script.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.script.md
deleted file mode 100644
index 132ba25a47637..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.script.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [script](./kibana-plugin-plugins-data-public.indexpatternfield.script.md)
-
-## IndexPatternField.script property
-
-Signature:
-
-```typescript
-script?: string;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.scripted.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.scripted.md
deleted file mode 100644
index 1dd6bc865a75d..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.scripted.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [scripted](./kibana-plugin-plugins-data-public.indexpatternfield.scripted.md)
-
-## IndexPatternField.scripted property
-
-Signature:
-
-```typescript
-scripted?: boolean;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.searchable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.searchable.md
deleted file mode 100644
index 42f984d851435..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.searchable.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [searchable](./kibana-plugin-plugins-data-public.indexpatternfield.searchable.md)
-
-## IndexPatternField.searchable property
-
-Signature:
-
-```typescript
-searchable?: boolean;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.sortable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.sortable.md
deleted file mode 100644
index 72d225185140b..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.sortable.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [sortable](./kibana-plugin-plugins-data-public.indexpatternfield.sortable.md)
-
-## IndexPatternField.sortable property
-
-Signature:
-
-```typescript
-sortable?: boolean;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.subtype.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.subtype.md
deleted file mode 100644
index 2d807f8a5739c..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.subtype.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [subType](./kibana-plugin-plugins-data-public.indexpatternfield.subtype.md)
-
-## IndexPatternField.subType property
-
-Signature:
-
-```typescript
-subType?: IFieldSubType;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.type.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.type.md
deleted file mode 100644
index c8483c9b83c9a..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.type.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [type](./kibana-plugin-plugins-data-public.indexpatternfield.type.md)
-
-## IndexPatternField.type property
-
-Signature:
-
-```typescript
-type: string;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.visualizable.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.visualizable.md
deleted file mode 100644
index dd661ae779c11..0000000000000
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.visualizable.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) > [visualizable](./kibana-plugin-plugins-data-public.indexpatternfield.visualizable.md)
-
-## IndexPatternField.visualizable property
-
-Signature:
-
-```typescript
-visualizable?: boolean;
-```
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
index 604ac5120922b..0fd82ffb2240c 100644
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
@@ -11,9 +11,10 @@
| [AggParamType](./kibana-plugin-plugins-data-public.aggparamtype.md) | |
| [AggTypeFieldFilters](./kibana-plugin-plugins-data-public.aggtypefieldfilters.md) | A registry to store which are used to filter down available fields for a specific visualization and . |
| [AggTypeFilters](./kibana-plugin-plugins-data-public.aggtypefilters.md) | A registry to store which are used to filter down available aggregations for a specific visualization and . |
+| [Field](./kibana-plugin-plugins-data-public.field.md) | |
+| [FieldFormat](./kibana-plugin-plugins-data-public.fieldformat.md) | |
| [FilterManager](./kibana-plugin-plugins-data-public.filtermanager.md) | |
| [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) | |
-| [IndexPatternField](./kibana-plugin-plugins-data-public.indexpatternfield.md) | |
| [IndexPatternFieldList](./kibana-plugin-plugins-data-public.indexpatternfieldlist.md) | |
| [IndexPatternSelect](./kibana-plugin-plugins-data-public.indexpatternselect.md) | |
| [OptionedParamType](./kibana-plugin-plugins-data-public.optionedparamtype.md) | |
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.setup.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.setup.md
index 4d7a0b3cfbbca..bd617990a00a2 100644
--- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.setup.md
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.setup.md
@@ -9,7 +9,7 @@
```typescript
setup(core: CoreSetup, { usageCollection }: DataPluginSetupDependencies): {
fieldFormats: {
- register: (customFieldFormat: import("../common").FieldFormatInstanceType) => number;
+ register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
};
search: ISearchSetup;
};
@@ -26,7 +26,7 @@ setup(core: CoreSetup, { usageCollection }: DataPluginSetupDependencies): {
`{
fieldFormats: {
- register: (customFieldFormat: import("../common").FieldFormatInstanceType) => number;
+ register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
};
search: ISearchSetup;
}`
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
index 4839870f0f3c8..564f115cf2c48 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
@@ -23,6 +23,7 @@ import { FieldEditor } from 'ui/field_editor';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
+import { HttpStart, DocLinksStart } from 'src/core/public';
import { IndexHeader } from '../index_header';
import { IndexPattern, IndexPatternField } from '../../../../../../../../../plugins/data/public';
import { ChromeDocTitle, NotificationsStart } from '../../../../../../../../../core/public';
@@ -37,7 +38,8 @@ interface CreateEditFieldProps extends RouteComponentProps {
services: {
notifications: NotificationsStart;
docTitle: ChromeDocTitle;
- http: Function;
+ getHttpStart: () => HttpStart;
+ docLinksScriptedFields: DocLinksStart['links']['scriptedFields'];
};
}
@@ -68,16 +70,14 @@ export const CreateEditField = withRouter(
const url = `/management/kibana/index_patterns/${indexPattern.id}`;
- if (mode === 'edit') {
- if (!field) {
- const message = i18n.translate('kbn.management.editIndexPattern.scripted.noFieldLabel', {
- defaultMessage:
- "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'",
- values: { indexPatternTitle: indexPattern.title, fieldName },
- });
- services.notifications.toasts.addWarning(message);
- history.push(url);
- }
+ if (mode === 'edit' && !field) {
+ const message = i18n.translate('kbn.management.editIndexPattern.scripted.noFieldLabel', {
+ defaultMessage:
+ "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'",
+ values: { indexPatternTitle: indexPattern.title, fieldName },
+ });
+ services.notifications.toasts.addWarning(message);
+ history.push(url);
}
const docFieldName = field?.name || newFieldPlaceholder;
@@ -88,24 +88,29 @@ export const CreateEditField = withRouter(
history.push(`${url}?_a=(tab:${field?.scripted ? TAB_SCRIPTED_FIELDS : TAB_INDEXED_FIELDS})`);
};
- return (
- {
+ fieldType: string;
+ format: FieldFormat;
+ formatParams: { type?: string } & P;
+ onChange: (newParams: Record extends PureComponent<
+ FormatEditorProps ,
+ FormatEditorState & S
+> {
+ state = defaultState as FormatEditorState & S;
+
+ static getDerivedStateFromProps(nextProps: FormatEditorProps<{}>, state: FormatEditorState) {
const { format, formatParams, onError } = nextProps;
const { sampleInputsByType, sampleInputs, sampleConverterType } = state;
const converter = format.getConverterFor(sampleConverterType);
const type = typeof sampleInputsByType === 'object' && formatParams.type;
- const inputs = type ? sampleInputsByType[formatParams.type] || [] : sampleInputs;
+ const inputs = type ? sampleInputsByType[formatParams.type as string] || [] : sampleInputs;
const output = convertSampleInput(converter, inputs);
onError(output.error);
return output;
@@ -78,6 +102,7 @@ export class DefaultFormatEditor extends PureComponent {
onChange = (newParams = {}) => {
const { onChange, formatParams } = this.props;
+
onChange({
...formatParams,
...newParams,
@@ -85,6 +110,6 @@ export class DefaultFormatEditor extends PureComponent {
};
render() {
- return null;
+ return <>>;
}
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.js b/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.ts
similarity index 88%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.js
rename to src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.ts
index 506002df4fd07..a6575f296864d 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.js
+++ b/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.ts
@@ -17,4 +17,4 @@
* under the License.
*/
-export { DefaultFormatEditor } from './default';
+export { DefaultFormatEditor, defaultState, FormatEditorProps, FormatEditorState } from './default';
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.js.snap b/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.js.snap
rename to src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
index ef11d70926ad7..dbebd324b16b6 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.js.snap
+++ b/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
@@ -5,7 +5,6 @@ exports[`DurationFormatEditor should render human readable output normally 1`] =