Skip to content

Commit

Permalink
[Vis Default Editor] File renaming (#42325)
Browse files Browse the repository at this point in the history
* Remove unused EditorOptionsGroup

* Rename file: remove 'default_editor_'
  • Loading branch information
maryia-lapata committed Aug 8, 2019
1 parent 706418d commit 35528af
Show file tree
Hide file tree
Showing 39 changed files with 67 additions and 468 deletions.
3 changes: 2 additions & 1 deletion src/legacy/ui/public/agg_types/agg_param.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* under the License.
*/

import { AggConfig, AggParamEditorProps } from '../vis';
import { AggConfig } from '../vis';
import { AggParamEditorProps } from '../vis/editors/default';

interface AggParam {
editorComponent: React.ComponentType<AggParamEditorProps<unknown>>;
Expand Down
3 changes: 1 addition & 2 deletions src/legacy/ui/public/agg_types/controls/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ import React, { useEffect } from 'react';
import { EuiComboBox, EuiComboBoxOptionProps, EuiFormRow } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { AggConfig } from 'ui/vis';
import { AggParamEditorProps, ComboBoxGroupedOption } from 'ui/vis/editors/default';
import { formatListAsProse, parseCommaSeparatedList } from '../../../../utils';
import { AggParamEditorProps } from '../../vis/editors/default';
import { ComboBoxGroupedOption } from '../../vis/editors/default/default_editor_utils';
import { FieldParamType } from '../param_types';

const label = i18n.translate('common.ui.aggTypes.field.fieldLabel', { defaultMessage: 'Field' });
Expand Down
7 changes: 5 additions & 2 deletions src/legacy/ui/public/agg_types/controls/sub_metric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
import React, { useEffect, useState } from 'react';
import { EuiFormLabel } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { AggParamEditorProps, DefaultEditorAggParams } from '../../vis/editors/default';
import {
AggParamEditorProps,
DefaultEditorAggParams,
AggGroupNames,
} from '../../vis/editors/default';
import { AggConfig } from '../../vis';
import { AggGroupNames } from '../../vis/editors/default/agg_groups';

function SubMetricParamEditor({
agg,
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/ui/public/agg_types/controls/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { AggConfig, VisState } from 'ui/vis';
import { EditorConfig } from 'ui/vis/editors/config/types';
import { SubAggParamsProp } from 'ui/vis/editors/default/components/default_editor_agg_params';
import { SubAggParamsProp } from 'ui/vis/editors/default';
import { AggParam } from '..';

export const aggParamCommonPropsMock = {
Expand Down
1 change: 0 additions & 1 deletion src/legacy/ui/public/vis/editors/_index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@import './components/index';
@import './default/index';

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/legacy/ui/public/vis/editors/components/_index.scss

This file was deleted.

This file was deleted.

0 comments on commit 35528af

Please sign in to comment.