-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Michail Yasonik <[email protected]> Co-authored-by: Marta Bondyra <[email protected]> Co-authored-by: Dave Snider <[email protected]> Co-authored-by: Andrea Del Rio <[email protected]> Co-authored-by: cchaos <[email protected]> Co-authored-by: Matthias Wilhelm <[email protected]> Co-authored-by: Michail Yasonik <[email protected]> Co-authored-by: Marta Bondyra <[email protected]> Co-authored-by: Dave Snider <[email protected]> Co-authored-by: Andrea Del Rio <[email protected]> Co-authored-by: cchaos <[email protected]>
- Loading branch information
1 parent
9f202aa
commit 755b042
Showing
59 changed files
with
3,156 additions
and
84 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
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
31 changes: 31 additions & 0 deletions
31
src/plugins/discover/public/application/angular/discover_datagrid.html
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,31 @@ | ||
<discover-app> | ||
<discover | ||
fetch="fetch" | ||
fetch-counter="fetchCounter" | ||
fetch-error="fetchError" | ||
field-counts="fieldCounts" | ||
histogram-data="histogramData" | ||
hits="hits" | ||
index-pattern="indexPattern" | ||
on-add-column="addColumn" | ||
on-add-filter="filterQuery" | ||
on-change-interval="changeInterval" | ||
on-remove-column="removeColumn" | ||
on-set-columns="setColumns" | ||
on-sort="setSortOrder" | ||
opts="opts" | ||
reset-query="resetQuery" | ||
result-state="resultState" | ||
rows="rows" | ||
search-source="searchSource" | ||
set-index-pattern="setIndexPattern" | ||
show-save-query="showSaveQuery" | ||
state="state" | ||
time-filter-update-handler="timefilterUpdateHandler" | ||
time-range="timeRange" | ||
top-nav-menu="topNavMenu" | ||
update-query="updateQuery" | ||
update-saved-query-id="updateSavedQueryId" | ||
> | ||
</discover> | ||
</discover-app> |
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
52 changes: 52 additions & 0 deletions
52
src/plugins/discover/public/application/components/create_discover_directive.ts
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,52 @@ | ||
/* | ||
* 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 { Discover } from './discover'; | ||
|
||
export function createDiscoverDirective(reactDirective: any) { | ||
return reactDirective(Discover, [ | ||
['fetch', { watchDepth: 'reference' }], | ||
['fetchCounter', { watchDepth: 'reference' }], | ||
['fetchError', { watchDepth: 'reference' }], | ||
['fieldCounts', { watchDepth: 'reference' }], | ||
['histogramData', { watchDepth: 'reference' }], | ||
['hits', { watchDepth: 'reference' }], | ||
['indexPattern', { watchDepth: 'reference' }], | ||
['onAddColumn', { watchDepth: 'reference' }], | ||
['onAddFilter', { watchDepth: 'reference' }], | ||
['onChangeInterval', { watchDepth: 'reference' }], | ||
['onRemoveColumn', { watchDepth: 'reference' }], | ||
['onSetColumns', { watchDepth: 'reference' }], | ||
['onSort', { watchDepth: 'reference' }], | ||
['opts', { watchDepth: 'reference' }], | ||
['resetQuery', { watchDepth: 'reference' }], | ||
['resultState', { watchDepth: 'reference' }], | ||
['rows', { watchDepth: 'reference' }], | ||
['searchSource', { watchDepth: 'reference' }], | ||
['setColumns', { watchDepth: 'reference' }], | ||
['setIndexPattern', { watchDepth: 'reference' }], | ||
['showSaveQuery', { watchDepth: 'reference' }], | ||
['state', { watchDepth: 'reference' }], | ||
['timefilterUpdateHandler', { watchDepth: 'reference' }], | ||
['timeRange', { watchDepth: 'reference' }], | ||
['topNavMenu', { watchDepth: 'reference' }], | ||
['updateQuery', { watchDepth: 'reference' }], | ||
['updateSavedQueryId', { watchDepth: 'reference' }], | ||
]); | ||
} |
56 changes: 56 additions & 0 deletions
56
src/plugins/discover/public/application/components/create_discover_grid_directive.tsx
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,56 @@ | ||
/* | ||
* 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 * as React from 'react'; | ||
import { I18nProvider } from '@kbn/i18n/react'; | ||
import { DiscoverGrid, DiscoverGridProps } from './discover_grid/discover_grid'; | ||
import { getServices } from '../../kibana_services'; | ||
|
||
export const DataGridMemoized = React.memo((props: DiscoverGridProps) => ( | ||
<DiscoverGrid {...props} /> | ||
)); | ||
|
||
export function DiscoverGridEmbeddable(props: DiscoverGridProps) { | ||
return ( | ||
<I18nProvider> | ||
<DataGridMemoized {...props} services={getServices()} /> | ||
</I18nProvider> | ||
); | ||
} | ||
|
||
/** | ||
* this is just needed for the embeddable | ||
*/ | ||
export function createDiscoverGridDirective(reactDirective: any) { | ||
return reactDirective(DiscoverGridEmbeddable, [ | ||
['columns', { watchDepth: 'collection' }], | ||
['indexPattern', { watchDepth: 'reference' }], | ||
['onAddColumn', { watchDepth: 'reference', wrapApply: false }], | ||
['onFilter', { watchDepth: 'reference', wrapApply: false }], | ||
['onRemoveColumn', { watchDepth: 'reference', wrapApply: false }], | ||
['onSetColumns', { watchDepth: 'reference', wrapApply: false }], | ||
['onSort', { watchDepth: 'reference', wrapApply: false }], | ||
['rows', { watchDepth: 'collection' }], | ||
['sampleSize', { watchDepth: 'reference' }], | ||
['searchDescription', { watchDepth: 'reference' }], | ||
['searchTitle', { watchDepth: 'reference' }], | ||
['settings', { watchDepth: 'reference' }], | ||
['showTimeCol', { watchDepth: 'value' }], | ||
['sort', { watchDepth: 'value' }], | ||
]); | ||
} |
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
Oops, something went wrong.