Skip to content

Commit 33d2d6f

Browse files
Merge branch 'master' into kertal-pr-2020-09-28-unskip-doc-view-open-functional-test
2 parents 8d74903 + 1899532 commit 33d2d6f

File tree

222 files changed

+10458
-1983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+10458
-1983
lines changed

docs/developer/plugin-list.asciidoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,16 @@ It also provides a stateful version of it on the start contract.
180180
which also contains the timelion APIs and backend, look at the vis_type_timelion plugin.
181181
182182
183-
|{kib-repo}blob/{branch}/src/plugins/ui_actions/README.md[uiActions]
183+
|<<uiactions-plugin>>
184184
|An API for:
185185
186+
- creating custom functionality (`actions`)
187+
- creating custom user interaction events (`triggers`)
188+
- attaching and detaching `actions` to `triggers`.
189+
- emitting `trigger` events
190+
- executing `actions` attached to a given `trigger`.
191+
- exposing a context menu for the user to choose the appropriate action when there are multiple actions attached to a single trigger.
192+
186193
187194
|{kib-repo}blob/{branch}/src/plugins/url_forwarding/README.md[urlForwarding]
188195
|This plugins contains helpers to redirect legacy URLs. It can be used to forward old URLs to their new counterparts.
@@ -524,5 +531,6 @@ in their infrastructure.
524531
525532
include::{kibana-root}/src/plugins/dashboard/README.asciidoc[leveloffset=+1]
526533
include::{kibana-root}/src/plugins/expressions/README.asciidoc[leveloffset=+1]
534+
include::{kibana-root}/src/plugins/ui_actions/README.asciidoc[leveloffset=+1]
527535
include::{kibana-root}/x-pack/plugins/dashboard_enhanced/README.asciidoc[leveloffset=+1]
528536
include::{kibana-root}/x-pack/plugins/embeddable_enhanced/README.asciidoc[leveloffset=+1]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md)
4+
5+
## API Reference
6+
7+
## Packages
8+
9+
| Package | Description |
10+
| --- | --- |
11+
| [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) | |
12+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [execute](./kibana-plugin-plugins-ui_actions-public.action.execute.md)
4+
5+
## Action.execute() method
6+
7+
Executes the action.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
execute(context: ActionExecutionContext<Context>): Promise<void>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| context | <code>ActionExecutionContext&lt;Context&gt;</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`Promise<void>`
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [getDisplayName](./kibana-plugin-plugins-ui_actions-public.action.getdisplayname.md)
4+
5+
## Action.getDisplayName() method
6+
7+
Returns a title to be displayed to the user.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
getDisplayName(context: ActionExecutionContext<Context>): string;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| context | <code>ActionExecutionContext&lt;Context&gt;</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`string`
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [getHref](./kibana-plugin-plugins-ui_actions-public.action.gethref.md)
4+
5+
## Action.getHref() method
6+
7+
This method should return a link if this item can be clicked on. The link is used to navigate user if user middle-clicks it or Ctrl + clicks or right-clicks and selects "Open in new tab".
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
getHref?(context: ActionExecutionContext<Context>): Promise<string | undefined>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| context | <code>ActionExecutionContext&lt;Context&gt;</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`Promise<string | undefined>`
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [getIconType](./kibana-plugin-plugins-ui_actions-public.action.geticontype.md)
4+
5+
## Action.getIconType() method
6+
7+
Optional EUI icon type that can be displayed along with the title.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
getIconType(context: ActionExecutionContext<Context>): string | undefined;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| context | <code>ActionExecutionContext&lt;Context&gt;</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`string | undefined`
24+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [id](./kibana-plugin-plugins-ui_actions-public.action.id.md)
4+
5+
## Action.id property
6+
7+
A unique identifier for this action instance.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
id: string;
13+
```
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [isCompatible](./kibana-plugin-plugins-ui_actions-public.action.iscompatible.md)
4+
5+
## Action.isCompatible() method
6+
7+
Returns a promise that resolves to true if this action is compatible given the context, otherwise resolves to false.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
isCompatible(context: ActionExecutionContext<Context>): Promise<boolean>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| context | <code>ActionExecutionContext&lt;Context&gt;</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`Promise<boolean>`
24+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md)
4+
5+
## Action interface
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export interface Action<Context extends BaseContext = {}, T = ActionType> extends Partial<Presentable<ActionExecutionContext<Context>>>
11+
```
12+
13+
## Properties
14+
15+
| Property | Type | Description |
16+
| --- | --- | --- |
17+
| [id](./kibana-plugin-plugins-ui_actions-public.action.id.md) | <code>string</code> | A unique identifier for this action instance. |
18+
| [MenuItem](./kibana-plugin-plugins-ui_actions-public.action.menuitem.md) | <code>UiComponent&lt;{</code><br/><code> context: ActionExecutionContext&lt;Context&gt;;</code><br/><code> }&gt;</code> | <code>UiComponent</code> to render when displaying this action as a context menu item. If not provided, <code>getDisplayName</code> will be used instead. |
19+
| [order](./kibana-plugin-plugins-ui_actions-public.action.order.md) | <code>number</code> | Determined the order when there is more than one action matched to a trigger. Higher numbers are displayed first. |
20+
| [type](./kibana-plugin-plugins-ui_actions-public.action.type.md) | <code>T</code> | The action type is what determines the context shape. |
21+
22+
## Methods
23+
24+
| Method | Description |
25+
| --- | --- |
26+
| [execute(context)](./kibana-plugin-plugins-ui_actions-public.action.execute.md) | Executes the action. |
27+
| [getDisplayName(context)](./kibana-plugin-plugins-ui_actions-public.action.getdisplayname.md) | Returns a title to be displayed to the user. |
28+
| [getHref(context)](./kibana-plugin-plugins-ui_actions-public.action.gethref.md) | This method should return a link if this item can be clicked on. The link is used to navigate user if user middle-clicks it or Ctrl + clicks or right-clicks and selects "Open in new tab". |
29+
| [getIconType(context)](./kibana-plugin-plugins-ui_actions-public.action.geticontype.md) | Optional EUI icon type that can be displayed along with the title. |
30+
| [isCompatible(context)](./kibana-plugin-plugins-ui_actions-public.action.iscompatible.md) | Returns a promise that resolves to true if this action is compatible given the context, otherwise resolves to false. |
31+
| [shouldAutoExecute(context)](./kibana-plugin-plugins-ui_actions-public.action.shouldautoexecute.md) | Determines if action should be executed automatically, without first showing up in context menu. false by default. |
32+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-ui\_actions-public](./kibana-plugin-plugins-ui_actions-public.md) &gt; [Action](./kibana-plugin-plugins-ui_actions-public.action.md) &gt; [MenuItem](./kibana-plugin-plugins-ui_actions-public.action.menuitem.md)
4+
5+
## Action.MenuItem property
6+
7+
`UiComponent` to render when displaying this action as a context menu item. If not provided, `getDisplayName` will be used instead.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
MenuItem?: UiComponent<{
13+
context: ActionExecutionContext<Context>;
14+
}>;
15+
```

0 commit comments

Comments
 (0)