diff --git a/src/legacy/ui/public/utils/brush_event.js b/src/legacy/ui/public/vis/vis_filters/brush_event.js similarity index 100% rename from src/legacy/ui/public/utils/brush_event.js rename to src/legacy/ui/public/vis/vis_filters/brush_event.js diff --git a/src/legacy/ui/public/utils/__tests__/brush_event.test.js b/src/legacy/ui/public/vis/vis_filters/brush_event.test.js similarity index 99% rename from src/legacy/ui/public/utils/__tests__/brush_event.test.js rename to src/legacy/ui/public/vis/vis_filters/brush_event.test.js index c7c1804cde780..10b17858ee031 100644 --- a/src/legacy/ui/public/utils/__tests__/brush_event.test.js +++ b/src/legacy/ui/public/vis/vis_filters/brush_event.test.js @@ -39,7 +39,7 @@ jest.mock('ui/chrome', import _ from 'lodash'; import moment from 'moment'; import expect from '@kbn/expect'; -import { onBrushEvent } from '../brush_event'; +import { onBrushEvent } from './brush_event'; import { timefilter } from 'ui/timefilter'; describe('brushEvent', () => { diff --git a/src/legacy/ui/public/vis/vis_filters/index.js b/src/legacy/ui/public/vis/vis_filters/index.js new file mode 100644 index 0000000000000..a31749947c6cb --- /dev/null +++ b/src/legacy/ui/public/vis/vis_filters/index.js @@ -0,0 +1,20 @@ +/* + * 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. + */ + +export { VisFiltersProvider, createFilter } from './vis_filters'; diff --git a/src/legacy/ui/public/vis/vis_filters.js b/src/legacy/ui/public/vis/vis_filters/vis_filters.js similarity index 95% rename from src/legacy/ui/public/vis/vis_filters.js rename to src/legacy/ui/public/vis/vis_filters/vis_filters.js index 1a43f35e8537a..0f7e1f4814dfd 100644 --- a/src/legacy/ui/public/vis/vis_filters.js +++ b/src/legacy/ui/public/vis/vis_filters/vis_filters.js @@ -18,9 +18,9 @@ */ import _ from 'lodash'; -import { FilterBarPushFiltersProvider } from '../filter_bar/push_filters'; -import { FilterBarQueryFilterProvider } from '../filter_bar/query_filter'; -import { onBrushEvent } from '../utils/brush_event'; +import { FilterBarPushFiltersProvider } from '../../filter_bar/push_filters'; +import { FilterBarQueryFilterProvider } from '../../filter_bar/query_filter'; +import { onBrushEvent } from './brush_event'; /** * For terms aggregations on `__other__` buckets, this assembles a list of applicable filter