Skip to content

Commit

Permalink
Migrate all KUI services dependents to EUI services. (elastic#15677) (e…
Browse files Browse the repository at this point in the history
…lastic#15678)

* Migrate all KUI services dependents to EUI services.
* Remove KUI services from public interface.
* Add KUI deprecation notice to docs site.
  • Loading branch information
cjcenizal authored Dec 19, 2017
1 parent d67d620 commit 86f26f7
Show file tree
Hide file tree
Showing 58 changed files with 74 additions and 133 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

var { memoize } = require('lodash');
let moment = require('moment');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Select from 'react-select';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export class FieldSelect extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Select from 'react-select';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export class IndexPatternSelect extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

import {
keyCodes,
} from 'ui_framework/services';
} from '@elastic/eui';

export class ExitFullScreenButton extends PureComponent {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ExitFullScreenButton,
} from './exit_full_screen_button';

import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';


test('is rendered', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_regis
import 'ui/pager_control';
import 'ui/pager';
import { DashboardConstants, createDashboardEditUrl } from '../dashboard_constants';
import { SortableProperties } from 'ui_framework/services';
import { SortableProperties } from '@elastic/eui';
import { ConfirmationButtonTypes } from 'ui/modals';

export function DashboardListingController($injector, $scope, $location) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

import {
keyCodes,
} from 'ui_framework/services';
} from '@elastic/eui';

export function PanelOptionsMenuForm({ title, onReset, onUpdatePanelTitle, onClose }) {
function onInputChange(event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
KuiPager,
} from 'ui_framework/components';

import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

export class ChangeIndexModal extends React.Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'ui/elastic_textarea';
import 'ui/filters/markdown';
import { uiModules } from 'ui/modules';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';
import advancedRowTemplate from 'plugins/kibana/management/sections/settings/advanced_row.html';

uiModules.get('apps/management')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';

import { SortableProperties } from 'ui_framework/services';
import { SortableProperties } from '@elastic/eui';
import { Pager } from 'ui/pager';
import { NoVisualizationsPrompt } from './no_visualizations_prompt';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import Vars from './vars';

import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class CalculationAgg extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const DerivativeAgg = props => {
const { siblings } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const FilterRatioAgg = props => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import createNumberHandler from '../lib/create_number_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const MovingAverageAgg = props => {
const { siblings } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Select from 'react-select';
import uuid from 'uuid';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';
const newPercentile = (opts) => {
return _.assign({ id: uuid.v1(), mode: 'line', shade: 0.2 }, opts);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const PercentileRankAgg = props => {
const { series, panel, fields } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createNumberHandler from '../lib/create_number_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const SerialDiffAgg = props => {
const { siblings } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Select from 'react-select';
import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function SeriesAgg(props) {
const { panel, model } = props;
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/public/components/aggs/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const Static = props => {
const handleChange = createChangeHandler(props.onChange, props.model);
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/public/components/aggs/std_agg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FieldSelect from './field_select';
import AggRow from './agg_row';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function StandardAgg(props) {
const { model, panel, series, fields } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Select from 'react-select';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const StandardDeviationAgg = props => {
const { series, panel, fields } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Select from 'react-select';
import createChangeHandler from '../lib/create_change_handler';
import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const StandardSiblingAgg = props => {
const { siblings } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FieldSelect from './aggs/field_select';
import uuid from 'uuid';
import IconSelect from './icon_select';
import YesNo from './yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function newAnnotation() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/public/components/color_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AddDeleteButtons from './add_delete_buttons';
import Select from 'react-select';
import * as collectionActions from './lib/collection_actions';
import ColorPicker from './color_picker';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class ColorRules extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import FieldSelect from './aggs/field_select';
import createSelectHandler from './lib/create_select_handler';
import createTextHandler from './lib/create_text_handler';
import YesNo from './yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const IndexPattern = props => {
const { fields, prefix } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

export function createUpDownHandler(callback) {
return (ev) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ColorRules from '../color_rules';
import ColorPicker from '../color_picker';
import uuid from 'uuid';
import YesNo from 'plugins/metrics/components/yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class GaugePanelConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import YesNo from '../yes_no';
import MarkdownEditor from '../markdown_editor';
import less from 'less/lib/less-browser';
import { KuiCodeEditor } from 'ui_framework/components';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';
const lessC = less(window, { env: 'production' });

class MarkdownPanelConfig extends Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import createTextHandler from '../lib/create_text_handler';
import ColorRules from '../color_rules';
import YesNo from '../yes_no';
import uuid from 'uuid';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class MetricPanelConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import createTextHandler from '../lib/create_text_handler';
import createSelectHandler from '../lib/create_select_handler';
import uuid from 'uuid';
import YesNo from '../yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class TablePanelConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import createSelectHandler from '../lib/create_select_handler';
import createTextHandler from '../lib/create_text_handler';
import ColorPicker from '../color_picker';
import YesNo from '../yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class TimeseriesPanelConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ColorRules from '../color_rules';
import ColorPicker from '../color_picker';
import uuid from 'uuid';
import YesNo from '../yes_no';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class TopNPanelConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createSelectHandler from './lib/create_select_handler';
import createTextHandler from './lib/create_text_handler';
import YesNo from './yes_no';
import { IndexPattern } from './index_pattern';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

export const SeriesConfig = props => {
const defaults = { offset_time: '', value_template: '' };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';
import Visualization from './visualization';
import Toggle from 'react-toggle';
import 'react-toggle/style.css';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FieldSelect from '../../aggs/field_select';
import Select from 'react-select';
import YesNo from '../../yes_no';
import ColorRules from '../../color_rules';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

class TableSeriesConfig extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import createSelectHandler from '../../lib/create_select_handler';
import YesNo from '../../yes_no';
import createTextHandler from '../../lib/create_text_handler';
import { IndexPattern } from '../../index_pattern';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function TimeseriesConfig(props) {
const handleSelectChange = createSelectHandler(props.onChange);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import createLegendSeries from '../lib/create_legend_series';
import reactcss from 'reactcss';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function HorizontalLegend(props) {
const rows = props.series.map(createLegendSeries(props));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import createLegendSeries from '../lib/create_legend_series';
import reactcss from 'reactcss';
import { htmlIdGenerator } from 'ui_framework/services';
import { htmlIdGenerator } from '@elastic/eui';

function VerticalLegend(props) {
const rows = props.series.map(createLegendSeries(props));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
suggest,
insertAtLocation,
} from './timelion_expression_input_helpers';
import { comboBoxKeyCodes } from 'ui_framework/services';
import { comboBoxKeyCodes } from '@elastic/eui';
import { ArgValueSuggestionsProvider } from './timelion_expression_suggestions/arg_value_suggestions';

const Parser = PEG.buildParser(grammar);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sinon from 'sinon';
import expect from 'expect.js';
import ngMock from 'ng_mock';
import '../kbn_accessible_click';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

describe('kbnAccessibleClick directive', () => {
let $compile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sinon from 'sinon';
import expect from 'expect.js';
import ngMock from 'ng_mock';
import '../kbn_ui_ace_keyboard_mode';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

describe('kbnUiAceKeyboardMode directive', () => {
let element;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/accessibility/kbn_accessible_click.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import {
accessibleClickKeys,
keyCodes,
} from 'ui_framework/services';
} from '@elastic/eui';
import { uiModules } from 'ui/modules';

uiModules.get('kibana')
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/accessibility/kbn_ui_ace_keyboard_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import angular from 'angular';
import { uiModules } from 'ui/modules';
import './kbn_ui_ace_keyboard_mode.less';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

let aceKeyboardModeId = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/typeahead/typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'ui/typeahead/typeahead.less';
import 'ui/typeahead/_input';
import 'ui/typeahead/_items';
import { uiModules } from 'ui/modules';
import { comboBoxKeyCodes } from 'ui_framework/services';
import { comboBoxKeyCodes } from '@elastic/eui';

const typeahead = uiModules.get('kibana/typeahead');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import expect from 'expect.js';
import ngMock from 'ng_mock';
import sinon from 'sinon';
import { Direction } from '../keyboard_move';
import { keyCodes } from 'ui_framework/services';
import { keyCodes } from '@elastic/eui';

describe('keyboardMove directive', () => {

Expand Down
Loading

0 comments on commit 86f26f7

Please sign in to comment.