Remove filterManager and kuery from vis.API (#17659)
This commit is contained in:
parent
33262a7d5a
commit
7db1252eca
|
@ -422,8 +422,6 @@ The `vis` object holds the visualization state and is the window into kibana:
|
||||||
- *vis.API.timeFilter*: allows you to access time picker
|
- *vis.API.timeFilter*: allows you to access time picker
|
||||||
- *vis.API.queryFilter*: gives you access to queryFilter
|
- *vis.API.queryFilter*: gives you access to queryFilter
|
||||||
- *vis.API.queryManager*: gives you access to add filters to the filter bar
|
- *vis.API.queryManager*: gives you access to add filters to the filter bar
|
||||||
- *vis.API.filterManager*: gives you access to filterManager
|
|
||||||
- *vis.API.kuery*: gives you access to the experimental `keury`-language filter bar
|
|
||||||
- *vis.API.events.click*: default click handler
|
- *vis.API.events.click*: default click handler
|
||||||
- *vis.API.events.brush*: default brush handler
|
- *vis.API.events.brush*: default brush handler
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,8 @@ import { FilterBarQueryFilterProvider } from 'ui/filter_bar/query_filter';
|
||||||
import { FilterBarClickHandlerProvider } from 'ui/filter_bar/filter_bar_click_handler';
|
import { FilterBarClickHandlerProvider } from 'ui/filter_bar/filter_bar_click_handler';
|
||||||
import { updateVisualizationConfig } from './vis_update';
|
import { updateVisualizationConfig } from './vis_update';
|
||||||
import { queryManagerFactory } from '../query_manager';
|
import { queryManagerFactory } from '../query_manager';
|
||||||
import * as kueryAPI from 'ui/kuery';
|
|
||||||
import { SearchSourceProvider } from 'ui/courier/data_source/search_source';
|
import { SearchSourceProvider } from 'ui/courier/data_source/search_source';
|
||||||
import { SavedObjectsClientProvider } from 'ui/saved_objects';
|
import { SavedObjectsClientProvider } from 'ui/saved_objects';
|
||||||
import { FilterManagerProvider } from 'ui/filter_manager';
|
|
||||||
|
|
||||||
export function VisProvider(Private, Promise, indexPatterns, timefilter, getAppState) {
|
export function VisProvider(Private, Promise, indexPatterns, timefilter, getAppState) {
|
||||||
const visTypes = Private(VisTypesRegistryProvider);
|
const visTypes = Private(VisTypesRegistryProvider);
|
||||||
|
@ -31,7 +29,6 @@ export function VisProvider(Private, Promise, indexPatterns, timefilter, getAppS
|
||||||
const filterBarClickHandler = Private(FilterBarClickHandlerProvider);
|
const filterBarClickHandler = Private(FilterBarClickHandlerProvider);
|
||||||
const SearchSource = Private(SearchSourceProvider);
|
const SearchSource = Private(SearchSourceProvider);
|
||||||
const savedObjectsClient = Private(SavedObjectsClientProvider);
|
const savedObjectsClient = Private(SavedObjectsClientProvider);
|
||||||
const filterManager = Private(FilterManagerProvider);
|
|
||||||
|
|
||||||
class Vis extends EventEmitter {
|
class Vis extends EventEmitter {
|
||||||
constructor(indexPattern, visState) {
|
constructor(indexPattern, visState) {
|
||||||
|
@ -57,10 +54,8 @@ export function VisProvider(Private, Promise, indexPatterns, timefilter, getAppS
|
||||||
SearchSource: SearchSource,
|
SearchSource: SearchSource,
|
||||||
indexPatterns: indexPatterns,
|
indexPatterns: indexPatterns,
|
||||||
timeFilter: timefilter,
|
timeFilter: timefilter,
|
||||||
filterManager: filterManager,
|
|
||||||
queryFilter: queryFilter,
|
queryFilter: queryFilter,
|
||||||
queryManager: queryManagerFactory(getAppState),
|
queryManager: queryManagerFactory(getAppState),
|
||||||
kuery: kueryAPI,
|
|
||||||
events: {
|
events: {
|
||||||
filter: (event) => {
|
filter: (event) => {
|
||||||
const appState = getAppState();
|
const appState = getAppState();
|
||||||
|
|
Loading…
Reference in a new issue