-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into new-platform-clea…
…nup-filters
- Loading branch information
Showing
321 changed files
with
8,290 additions
and
3,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
docs/development/core/public/kibana-plugin-public.coresetup.overlays.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [CoreSetup](./kibana-plugin-public.coresetup.md) > [overlays](./kibana-plugin-public.coresetup.overlays.md) | ||
|
||
## CoreSetup.overlays property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
overlays: OverlaySetup; | ||
``` |
15 changes: 15 additions & 0 deletions
15
docs/development/core/public/kibana-plugin-public.flyoutref.close.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [FlyoutRef](./kibana-plugin-public.flyoutref.md) > [close](./kibana-plugin-public.flyoutref.close.md) | ||
|
||
## FlyoutRef.close() method | ||
|
||
Closes the referenced flyout if it's still open which in turn will resolve the `onClose` Promise. If the flyout had already been closed this method does nothing. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
close(): Promise<void>; | ||
``` | ||
<b>Returns:</b> | ||
|
||
`Promise<void>` | ||
|
24 changes: 24 additions & 0 deletions
24
docs/development/core/public/kibana-plugin-public.flyoutref.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [FlyoutRef](./kibana-plugin-public.flyoutref.md) | ||
|
||
## FlyoutRef class | ||
|
||
A FlyoutRef is a reference to an opened flyout panel. It offers methods to close the flyout panel again. If you open a flyout panel you should make sure you call `close()` when it should be closed. Since a flyout could also be closed by a user or from another flyout being opened, you must bind to the `onClose` Promise on the FlyoutRef instance. The Promise will resolve whenever the flyout was closed at which point you should discard the FlyoutRef. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare class FlyoutRef | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [onClose](./kibana-plugin-public.flyoutref.onclose.md) | | <code>Promise<void></code> | An Promise that will resolve once this flyout is closed.<!-- -->Flyouts can close from user interaction, calling <code>close()</code> on the flyout reference or another call to <code>openFlyout()</code> replacing your flyout. | | ||
|
||
## Methods | ||
|
||
| Method | Modifiers | Description | | ||
| --- | --- | --- | | ||
| [close()](./kibana-plugin-public.flyoutref.close.md) | | Closes the referenced flyout if it's still open which in turn will resolve the <code>onClose</code> Promise. If the flyout had already been closed this method does nothing. | | ||
|
13 changes: 13 additions & 0 deletions
13
docs/development/core/public/kibana-plugin-public.flyoutref.onclose.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [FlyoutRef](./kibana-plugin-public.flyoutref.md) > [onClose](./kibana-plugin-public.flyoutref.onclose.md) | ||
|
||
## FlyoutRef.onClose property | ||
|
||
An Promise that will resolve once this flyout is closed. | ||
|
||
Flyouts can close from user interaction, calling `close()` on the flyout reference or another call to `openFlyout()` replacing your flyout. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
readonly onClose: Promise<void>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/development/core/public/kibana-plugin-public.overlaysetup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [OverlaySetup](./kibana-plugin-public.overlaysetup.md) | ||
|
||
## OverlaySetup interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface OverlaySetup | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [openFlyout](./kibana-plugin-public.overlaysetup.openflyout.md) | <code>(flyoutChildren: React.ReactNode, flyoutProps?: {`<p/>` closeButtonAriaLabel?: string;`<p/>` 'data-test-subj'?: string;`<p/>` }) => FlyoutRef</code> | | | ||
|
12 changes: 12 additions & 0 deletions
12
docs/development/core/public/kibana-plugin-public.overlaysetup.openflyout.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Home](./index) > [kibana-plugin-public](./kibana-plugin-public.md) > [OverlaySetup](./kibana-plugin-public.overlaysetup.md) > [openFlyout](./kibana-plugin-public.overlaysetup.openflyout.md) | ||
|
||
## OverlaySetup.openFlyout property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
openFlyout: (flyoutChildren: React.ReactNode, flyoutProps?: { | ||
closeButtonAriaLabel?: string; | ||
'data-test-subj'?: string; | ||
}) => FlyoutRef; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"kbn:watch": "node scripts/build --source-maps --watch" | ||
}, | ||
"dependencies": { | ||
"lodash": "npm:@elastic/[email protected]" | ||
"lodash": "npm:@elastic/[email protected]", | ||
"moment-timezone": "^0.5.14" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
packages/kbn-es-query/src/es_query/__tests__/get_es_query_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { getEsQueryConfig } from '../get_es_query_config'; | ||
|
||
const config = { | ||
get(item) { | ||
return config[item]; | ||
}, | ||
'query:allowLeadingWildcards': { | ||
allowLeadingWildcards: true, | ||
}, | ||
'query:queryString:options': { | ||
queryStringOptions: {}, | ||
}, | ||
'courier:ignoreFilterIfFieldNotInIndex': { | ||
ignoreFilterIfFieldNotInIndex: true, | ||
}, | ||
'dateFormat:tz': { | ||
dateFormatTZ: 'Browser', | ||
}, | ||
}; | ||
|
||
describe('getEsQueryConfig', function () { | ||
it('should return the parameters of an Elasticsearch query config requested', function () { | ||
const result = getEsQueryConfig(config); | ||
const expected = { | ||
allowLeadingWildcards: { | ||
allowLeadingWildcards: true, | ||
}, | ||
dateFormatTZ: { | ||
dateFormatTZ: 'Browser', | ||
}, | ||
ignoreFilterIfFieldNotInIndex: { | ||
ignoreFilterIfFieldNotInIndex: true, | ||
}, | ||
queryStringOptions: { | ||
queryStringOptions: {}, | ||
}, | ||
}; | ||
expect(result).to.eql(expected); | ||
expect(result).to.have.keys( | ||
'allowLeadingWildcards', | ||
'dateFormatTZ', | ||
'ignoreFilterIfFieldNotInIndex', | ||
'queryStringOptions' | ||
); | ||
}); | ||
}); |
Oops, something went wrong.