diff --git a/src/core/MIGRATION.md b/src/core/MIGRATION.md
index 02d46b1583b592..ce2d652257e1f0 100644
--- a/src/core/MIGRATION.md
+++ b/src/core/MIGRATION.md
@@ -1240,6 +1240,7 @@ import { npStart: { plugins } } from 'ui/new_platform';
| `ui/filter_manager` | `plugins.data.filter` | -- |
| `ui/index_patterns` | `plugins.data.indexPatterns` |
| `import 'ui/management'` | `plugins.management.sections` | |
+| `import 'ui/registry/field_format_editors'` | `plugins.indexPatternManagement.fieldFormatEditors` | |
| `ui/registry/field_formats` | `plugins.data.fieldFormats` | |
| `ui/registry/feature_catalogue` | `plugins.home.featureCatalogue.register` | Must add `home` as a dependency in your kibana.json. |
| `ui/registry/vis_types` | `plugins.visualizations` | -- |
diff --git a/src/legacy/core_plugins/kibana/public/management/index.js b/src/legacy/core_plugins/kibana/public/management/index.js
index 2cba9fab7be222..ff253629a48254 100644
--- a/src/legacy/core_plugins/kibana/public/management/index.js
+++ b/src/legacy/core_plugins/kibana/public/management/index.js
@@ -21,7 +21,6 @@ import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { FormattedMessage } from '@kbn/i18n/react';
-import './sections';
import uiRoutes from 'ui/routes';
import { I18nContext } from 'ui/i18n';
import { uiModules } from 'ui/modules';
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/angular_template.html b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/angular_template.html
deleted file mode 100644
index a2bc83db904a4b..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/angular_template.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/header/header.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/header/header.tsx
deleted file mode 100644
index 928c1ef2b62994..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/header/header.tsx
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * 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 React, { Fragment } from 'react';
-
-import {
- EuiBetaBadge,
- EuiSpacer,
- EuiTitle,
- EuiFlexGroup,
- EuiFlexItem,
- EuiText,
- EuiTextColor,
- EuiSwitch,
-} from '@elastic/eui';
-
-import { i18n } from '@kbn/i18n';
-import { FormattedMessage } from '@kbn/i18n/react';
-
-export const Header = ({
- prompt,
- indexPatternName,
- showSystemIndices = false,
- isIncludingSystemIndices,
- onChangeIncludingSystemIndices,
- isBeta = false,
-}: {
- prompt?: React.ReactNode;
- indexPatternName: string;
- showSystemIndices?: boolean;
- isIncludingSystemIndices: boolean;
- onChangeIncludingSystemIndices: () => void;
- isBeta?: boolean;
-}) => (
-
-);
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js
deleted file mode 100644
index 2762a4f6e87260..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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 uiRoutes from 'ui/routes';
-import angularTemplate from './angular_template.html';
-import { npStart } from 'ui/new_platform';
-import { getCreateBreadcrumbs } from '../breadcrumbs';
-
-import { renderCreateIndexPatternWizard, destroyCreateIndexPatternWizard } from './render';
-
-uiRoutes.when('/management/kibana/index_pattern', {
- template: angularTemplate,
- k7Breadcrumbs: getCreateBreadcrumbs,
- controller: function($scope, $injector) {
- // Wait for the directives to execute
- const kbnUrl = $injector.get('kbnUrl');
- $scope.$$postDigest(() => {
- const $routeParams = $injector.get('$routeParams');
- const indexPatternCreationType = npStart.plugins.indexPatternManagement.creation.getType(
- $routeParams.type
- );
- const services = {
- uiSettings: npStart.core.uiSettings,
- es: npStart.plugins.data.search.__LEGACY.esClient,
- indexPatterns: npStart.plugins.data.indexPatterns,
- savedObjectsClient: npStart.core.savedObjects.client,
- indexPatternCreationType,
- changeUrl: url => {
- $scope.$evalAsync(() => kbnUrl.changePath(url));
- },
- openConfirm: npStart.core.overlays.openConfirm,
- prependBasePath: npStart.core.http.basePath.prepend,
- };
-
- const initialQuery = $routeParams.id ? decodeURIComponent($routeParams.id) : undefined;
-
- renderCreateIndexPatternWizard(initialQuery, services);
- });
-
- $scope.$on('$destroy', destroyCreateIndexPatternWizard);
- },
-});
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.js b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.js
deleted file mode 100644
index d09ad3f63f0a26..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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 React from 'react';
-import { render, unmountComponentAtNode } from 'react-dom';
-import { CreateIndexPatternWizard } from './create_index_pattern_wizard';
-
-import { I18nContext } from 'ui/i18n';
-
-const CREATE_INDEX_PATTERN_DOM_ELEMENT_ID = 'createIndexPatternReact';
-
-export function renderCreateIndexPatternWizard(initialQuery, services) {
- const node = document.getElementById(CREATE_INDEX_PATTERN_DOM_ELEMENT_ID);
- if (!node) {
- return;
- }
-
- render(
-
-
- ,
- node
- );
-}
-
-export function destroyCreateIndexPatternWizard() {
- const node = document.getElementById(CREATE_INDEX_PATTERN_DOM_ELEMENT_ID);
- node && unmountComponentAtNode(node);
-}
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.test.js b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.test.js
deleted file mode 100644
index 1b9dafb6daf237..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/render.test.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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.
- */
-
-const render = jest.fn();
-const unmountComponentAtNode = jest.fn();
-
-jest.doMock('react-dom', () => ({ render, unmountComponentAtNode }));
-
-jest.mock('ui/chrome', () => ({
- getUiSettingsClient: () => ({
- get: () => '',
- }),
- addBasePath: () => {},
-}));
-
-jest.mock('ui/i18n', () => ({
- I18nContext: () => {},
-}));
-
-const { renderCreateIndexPatternWizard, destroyCreateIndexPatternWizard } = require('./render');
-
-describe('CreateIndexPatternWizardRender', () => {
- beforeEach(() => {
- jest.spyOn(document, 'getElementById').mockImplementation(() => ({}));
- render.mockClear();
- unmountComponentAtNode.mockClear();
- });
-
- it('should call render', () => {
- renderCreateIndexPatternWizard('', {
- es: {},
- indexPatterns: {},
- savedObjectsClient: {},
- config: {},
- changeUrl: () => {},
- indexPatternCreationType: {},
- openConfirm: jest.fn(),
- });
-
- expect(render.mock.calls.length).toBe(1);
- });
-
- it('should call unmountComponentAtNode', () => {
- destroyCreateIndexPatternWizard();
- expect(unmountComponentAtNode.mock.calls.length).toBe(1);
- });
-});
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field.html b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field.html
deleted file mode 100644
index 2decaf423183e1..00000000000000
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
}
indexPatternName={indexPatternName}
isBeta={true}
+ changeTitle={() => {}}
/>
);
diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx
new file mode 100644
index 00000000000000..1be33e3edc3bc5
--- /dev/null
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx
@@ -0,0 +1,118 @@
+/*
+ * 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 React, { Fragment } from 'react';
+
+import {
+ EuiBetaBadge,
+ EuiSpacer,
+ EuiTitle,
+ EuiFlexGroup,
+ EuiFlexItem,
+ EuiText,
+ EuiTextColor,
+ EuiSwitch,
+} from '@elastic/eui';
+
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n/react';
+
+export const Header = ({
+ prompt,
+ indexPatternName,
+ showSystemIndices = false,
+ isIncludingSystemIndices,
+ onChangeIncludingSystemIndices,
+ isBeta = false,
+ changeTitle,
+}: {
+ prompt?: React.ReactNode;
+ indexPatternName: string;
+ showSystemIndices?: boolean;
+ isIncludingSystemIndices: boolean;
+ onChangeIncludingSystemIndices: () => void;
+ isBeta?: boolean;
+ changeTitle: (title: string) => void;
+}) => {
+ const createIndexPatternHeader = i18n.translate(
+ 'indexPatternManagement.createIndexPatternHeader',
+ {
+ defaultMessage: 'Create {indexPatternName}',
+ values: { indexPatternName },
+ }
+ );
+
+ changeTitle(createIndexPatternHeader);
+
+ return (
+
+ );
+};
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/header/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/header/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap
similarity index 88%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap
index 3adc497a639c41..1e6ac56d437e1f 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/__snapshots__/loading_state.test.tsx.snap
@@ -22,7 +22,7 @@ exports[`LoadingState should render normally 1`] = `
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/loading_state.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/loading_state.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/loading_state.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/loading_state.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/loading_state.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/loading_state.tsx
similarity index 94%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/loading_state.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/loading_state.tsx
index e9b68033090cfd..26653adfd14a6d 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/loading_state/loading_state.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/loading_state/loading_state.tsx
@@ -29,7 +29,7 @@ export const LoadingState = () => (
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap
similarity index 85%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap
index f2fb17cdb0d602..3021292953ff5c 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/header/__snapshots__/header.test.tsx.snap
@@ -8,7 +8,7 @@ exports[`Header should mark the input as invalid 1`] = `
@@ -42,7 +42,7 @@ exports[`Header should mark the input as invalid 1`] = `
@@ -55,7 +55,7 @@ exports[`Header should mark the input as invalid 1`] = `
@@ -71,7 +71,7 @@ exports[`Header should mark the input as invalid 1`] = `
label={
}
@@ -99,7 +99,7 @@ exports[`Header should mark the input as invalid 1`] = `
>
@@ -116,7 +116,7 @@ exports[`Header should render normally 1`] = `
{characterList} }}
/>
@@ -97,7 +97,7 @@ export const Header: React.FC = ({
= ({
data-test-subj="createIndexPatternGoToStep2Button"
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/header/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/header/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/header/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/header/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap
similarity index 97%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap
index a759b3b3e98818..598de4d90e8932 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__snapshots__/indices_list.test.tsx.snap
@@ -44,7 +44,7 @@ exports[`IndicesList should change pages 1`] = `
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap
similarity index 85%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap
index d8b4253de78bb2..9d67ca913d415d 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap
@@ -21,7 +21,7 @@ exports[`LoadingIndices should render normally 1`] = `
>
@@ -39,7 +39,7 @@ exports[`LoadingIndices should render normally 1`] = `
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx
similarity index 91%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx
index 2f91f961b6c183..16e8d1a9f3e986 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/loading_indices.tsx
@@ -33,7 +33,7 @@ export const LoadingIndices = ({ ...rest }) => (
@@ -42,7 +42,7 @@ export const LoadingIndices = ({ ...rest }) => (
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap
similarity index 80%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap
index eb99424cb12a84..4a063f1430d1c0 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__snapshots__/status_message.test.tsx.snap
@@ -15,13 +15,13 @@ exports[`StatusMessage should render with exact matches 1`] = `
,
@@ -55,14 +55,14 @@ exports[`StatusMessage should render with no partial matches 1`] = `
@@ -149,7 +149,7 @@ exports[`StatusMessage should show that no indices exist 1`] = `
@@ -168,7 +168,7 @@ exports[`StatusMessage should show that system indices exist 1`] = `
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx
similarity index 83%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx
index ad7f58fa4e879d..ccdd1833ea9bfb 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.tsx
@@ -55,7 +55,7 @@ export const StatusMessage: React.FC = ({
statusMessage = (
{allIndicesLength} indices }}
/>
@@ -65,7 +65,7 @@ export const StatusMessage: React.FC = ({
statusMessage = (
@@ -75,7 +75,7 @@ export const StatusMessage: React.FC = ({
statusMessage = (
@@ -88,13 +88,13 @@ export const StatusMessage: React.FC = ({
@@ -102,7 +102,7 @@ export const StatusMessage: React.FC = ({
strongIndices: (
@@ -118,7 +118,7 @@ export const StatusMessage: React.FC = ({
statusMessage = (
= ({
strongIndices: (
@@ -142,14 +142,14 @@ export const StatusMessage: React.FC = ({
statusMessage = (
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx
similarity index 95%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx
index 40471b95d774c1..68afd64ae848c2 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx
@@ -21,10 +21,10 @@ import React from 'react';
import { StepIndexPattern } from '../step_index_pattern';
import { shallowWithI18nProvider } from 'test_utils/enzyme_helpers';
import { Header } from './components/header';
-import { IndexPatternCreationConfig } from '../../../../../../../../../../plugins/index_pattern_management/public';
-import { coreMock } from '../../../../../../../../../../core/public/mocks';
-import { dataPluginMock } from '../../../../../../../../../../plugins/data/public/mocks';
-import { SavedObjectsFindResponsePublic } from '../../../../../../../../../../core/public';
+import { IndexPatternCreationConfig } from '../../../../../../../plugins/index_pattern_management/public';
+import { coreMock } from '../../../../../../../core/public/mocks';
+import { dataPluginMock } from '../../../../../../../plugins/data/public/mocks';
+import { SavedObjectsFindResponsePublic } from 'src/core/public';
jest.mock('../../lib/ensure_minimum_time', () => ({
ensureMinimumTime: async (promises: Array>) =>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx
similarity index 95%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx
index d8f677b7f60897..5c8fa92d355a34 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.tsx
@@ -25,8 +25,8 @@ import {
indexPatterns,
DataPublicPluginStart,
IndexPatternAttributes,
-} from '../../../../../../../../../../plugins/data/public';
-import { SavedObjectsClient, IUiSettingsClient } from '../../../../../../../../../../core/public';
+} from '../../../../../../../plugins/data/public';
+import { SavedObjectsClientContract, IUiSettingsClient } from '../../../../../../../core/public';
import { MAX_SEARCH_SIZE } from '../../constants';
import {
getIndices,
@@ -39,14 +39,14 @@ import { LoadingIndices } from './components/loading_indices';
import { StatusMessage } from './components/status_message';
import { IndicesList } from './components/indices_list';
import { Header } from './components/header';
-import { IndexPatternCreationConfig } from '../../../../../../../../../../plugins/index_pattern_management/public';
+import { IndexPatternCreationConfig } from '../../../../../../../plugins/index_pattern_management/public';
import { MatchedIndex } from '../../types';
interface StepIndexPatternProps {
allIndices: MatchedIndex[];
isIncludingSystemIndices: boolean;
esService: DataPublicPluginStart['search']['__LEGACY']['esClient'];
- savedObjectsClient: SavedObjectsClient;
+ savedObjectsClient: SavedObjectsClientContract;
indexPatternCreationType: IndexPatternCreationConfig;
goToNextStep: (query: string) => void;
initialQuery?: string;
@@ -237,7 +237,7 @@ export class StepIndexPattern extends Component
@@ -270,7 +270,7 @@ export class StepIndexPattern extends Component
}
@@ -60,7 +60,7 @@ exports[`StepTimeField should render "Custom index pattern ID already exists" wh
@@ -92,7 +92,7 @@ exports[`StepTimeField should render a loading state when creating the index pat
@@ -269,7 +269,7 @@ exports[`StepTimeField should render any error message 1`] = `
title={
}
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx
similarity index 91%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx
index 342876712eb28e..d7c55f2573a17f 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/action_buttons/action_buttons.tsx
@@ -36,7 +36,7 @@ export const ActionButtons = ({
@@ -49,7 +49,7 @@ export const ActionButtons = ({
onClick={createIndexPattern}
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/action_buttons/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/action_buttons/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/action_buttons/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/action_buttons/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap
similarity index 81%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap
index 02ceed3454a00b..d1b10fb532020a 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__snapshots__/advanced_options.test.tsx.snap
@@ -8,7 +8,7 @@ exports[`AdvancedOptions should hide if not showing 1`] = `
>
@@ -26,7 +26,7 @@ exports[`AdvancedOptions should render normally 1`] = `
>
@@ -43,14 +43,14 @@ exports[`AdvancedOptions should render normally 1`] = `
helpText={
}
label={
}
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx
similarity index 85%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx
index fd2c1db1eacd76..b8f34095743ba0 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.tsx
@@ -44,12 +44,12 @@ export const AdvancedOptions: React.FC = ({
>
{isVisible ? (
) : (
)}
@@ -60,13 +60,13 @@ export const AdvancedOptions: React.FC = ({
}
helpText={
@@ -78,7 +78,7 @@ export const AdvancedOptions: React.FC = ({
value={indexPatternId}
onChange={onChangeIndexPatternId}
placeholder={i18n.translate(
- 'kbn.management.createIndexPattern.stepTime.options.patternPlaceholder',
+ 'indexPatternManagement.createIndexPattern.stepTime.options.patternPlaceholder',
{
defaultMessage: 'custom-index-pattern-id',
}
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/advanced_options/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap
similarity index 83%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap
index 5c53558286b0d9..63008ec5b52e79 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/__snapshots__/header.test.tsx.snap
@@ -8,7 +8,7 @@ exports[`Header should render normally 1`] = `
@@ -21,7 +21,7 @@ exports[`Header should render normally 1`] = `
>
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/header.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/header.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/header.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/header.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx
similarity index 92%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx
index 5c2f184e8038ba..22e245f7ac1370 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/header.tsx
@@ -33,7 +33,7 @@ export const Header: React.FC = ({ indexPattern, indexPatternName }
@@ -41,7 +41,7 @@ export const Header: React.FC = ({ indexPattern, indexPatternName }
{indexPattern},
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/header/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/header/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap
similarity index 84%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap
index e997cb80a2a146..7d056433f55df7 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/__snapshots__/time_field.test.tsx.snap
@@ -13,14 +13,14 @@ exports[`TimeField should render a loading state 1`] = `
@@ -38,7 +38,7 @@ exports[`TimeField should render a loading state 1`] = `
@@ -84,14 +84,14 @@ exports[`TimeField should render a selected time field 1`] = `
@@ -109,7 +109,7 @@ exports[`TimeField should render a selected time field 1`] = `
@@ -123,7 +123,7 @@ exports[`TimeField should render a selected time field 1`] = `
>
@@ -165,14 +165,14 @@ exports[`TimeField should render normally 1`] = `
@@ -190,7 +190,7 @@ exports[`TimeField should render normally 1`] = `
@@ -204,7 +204,7 @@ exports[`TimeField should render normally 1`] = `
>
@@ -239,7 +239,7 @@ exports[`TimeField should render something if hiding time field 1`] = `
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/index.ts b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/index.ts
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.css b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.scss
similarity index 84%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.css
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.scss
index d0a2652d7e0452..5bd60e8b76afc4 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.css
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.scss
@@ -1,6 +1,7 @@
/**
* 1. Bring the line-height down or else this link expands its container when it becomes visible.
*/
- .timeFieldRefreshButton {
+
+.timeFieldRefreshButton {
line-height: 1 !important; /* 1 */
}
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.test.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx
similarity index 87%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx
rename to src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx
index 876a3b79a8812f..b4ed37118966ba 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx
+++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_time_field/components/time_field/time_field.tsx
@@ -17,9 +17,9 @@
* under the License.
*/
-import React from 'react';
+import './time_field.scss';
-import './time_field.css';
+import React from 'react';
import {
EuiForm,
@@ -60,7 +60,7 @@ export const TimeField: React.FC = ({
@@ -71,7 +71,7 @@ export const TimeField: React.FC = ({
) : (
@@ -83,13 +83,13 @@ export const TimeField: React.FC = ({
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/header.test.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/header.test.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/header.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx
similarity index 90%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/header.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx
index 7b37f75043dd5c..709908a1bb2536 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/header.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx
@@ -27,7 +27,7 @@ export const Header = () => (
@@ -35,7 +35,7 @@ export const Header = () => (
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/index.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/header/index.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/index.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/index.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap
similarity index 95%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap
index c70d0871bb854f..cb8abdefec266c 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap
@@ -29,7 +29,7 @@ exports[`Table editing should update the matches dynamically as input value is c
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/index.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/index.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.test.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx
similarity index 99%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.test.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx
index 4705ecd2d1685f..421b5b67c22885 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx
@@ -22,7 +22,7 @@ import { shallow, ShallowWrapper } from 'enzyme';
import { Table, TableProps, TableState } from './table';
import { EuiTableFieldDataColumnType, keyCodes } from '@elastic/eui';
-import { IIndexPattern } from '../../../../../../../../../../../plugins/data/public';
+import { IIndexPattern } from 'src/plugins/data/public';
import { SourceFiltersTableFilter } from '../../types';
const indexPattern = {} as IIndexPattern;
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx
similarity index 85%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx
index db2b74bbc9824d..04998d9f7dafe5 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/components/table/table.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx
@@ -30,43 +30,54 @@ import {
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
+import { IIndexPattern } from 'src/plugins/data/public';
import { SourceFiltersTableFilter } from '../../types';
-import { IIndexPattern } from '../../../../../../../../../../../plugins/data/public';
-
-const filterHeader = i18n.translate('kbn.management.editIndexPattern.source.table.filterHeader', {
- defaultMessage: 'Filter',
-});
+const filterHeader = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.source.table.filterHeader',
+ {
+ defaultMessage: 'Filter',
+ }
+);
const filterDescription = i18n.translate(
- 'kbn.management.editIndexPattern.source.table.filterDescription',
+ 'indexPatternManagement.editIndexPattern.source.table.filterDescription',
{ defaultMessage: 'Filter name' }
);
-const matchesHeader = i18n.translate('kbn.management.editIndexPattern.source.table.matchesHeader', {
- defaultMessage: 'Matches',
-});
+const matchesHeader = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.source.table.matchesHeader',
+ {
+ defaultMessage: 'Matches',
+ }
+);
const matchesDescription = i18n.translate(
- 'kbn.management.editIndexPattern.source.table.matchesDescription',
+ 'indexPatternManagement.editIndexPattern.source.table.matchesDescription',
{ defaultMessage: 'Language used for the field' }
);
-const editAria = i18n.translate('kbn.management.editIndexPattern.source.table.editAria', {
+const editAria = i18n.translate('indexPatternManagement.editIndexPattern.source.table.editAria', {
defaultMessage: 'Edit',
});
-const saveAria = i18n.translate('kbn.management.editIndexPattern.source.table.saveAria', {
+const saveAria = i18n.translate('indexPatternManagement.editIndexPattern.source.table.saveAria', {
defaultMessage: 'Save',
});
-const deleteAria = i18n.translate('kbn.management.editIndexPattern.source.table.deleteAria', {
- defaultMessage: 'Delete',
-});
+const deleteAria = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.source.table.deleteAria',
+ {
+ defaultMessage: 'Delete',
+ }
+);
-const cancelAria = i18n.translate('kbn.management.editIndexPattern.source.table.cancelAria', {
- defaultMessage: 'Cancel',
-});
+const cancelAria = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.source.table.cancelAria',
+ {
+ defaultMessage: 'Cancel',
+ }
+);
export interface TableProps {
indexPattern: IIndexPattern;
@@ -161,7 +172,7 @@ export class Table extends Component {
return (
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/index.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/index.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.test.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx
similarity index 98%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.test.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx
index 1b68dd13566d39..fa048af7c7a70b 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx
@@ -21,7 +21,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import { SourceFiltersTable } from './source_filters_table';
-import { IIndexPattern } from '../../../../../../../../../plugins/data/public';
+import { IIndexPattern } from 'src/plugins/data/public';
jest.mock('@elastic/eui', () => ({
EuiButton: 'eui-button',
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx
similarity index 98%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx
index dcf8ae9e1323f3..ccdda3915e9796 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/source_filters_table.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx
@@ -22,7 +22,7 @@ import { createSelector } from 'reselect';
import { EuiSpacer } from '@elastic/eui';
import { AddFilter, Table, Header, DeleteFilterConfirmationModal } from './components';
-import { IIndexPattern } from '../../../../../../../../../plugins/data/public';
+import { IIndexPattern } from '../../../../../../plugins/data/public';
import { SourceFiltersTableFilter } from './types';
export interface SourceFiltersTableProps {
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/types.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/types.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/source_filters_table/types.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/source_filters_table/types.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/index.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/index.ts
similarity index 100%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/index.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/index.ts
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/tabs.tsx
similarity index 92%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/tabs.tsx
index c727dcd3e3c650..5cf7fd9b2af068 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/tabs.tsx
@@ -30,10 +30,10 @@ import {
EuiSelectOption,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
-import { fieldWildcardMatcher } from '../../../../../../../../../plugins/kibana_utils/public';
-import { IndexPatternManagementStart } from '../../../../../../../../../plugins/index_pattern_management/public';
-import { IndexPattern, IndexPatternField } from '../../../../../../../../../plugins/data/public';
-import { META_FIELDS_SETTING } from '../../../../../../../../../plugins/data/common';
+import { fieldWildcardMatcher } from '../../../../../kibana_utils/public';
+import { IndexPatternManagementStart } from '../../../../../index_pattern_management/public';
+import { IndexPattern, IndexPatternField } from '../../../../../data/public';
+import { META_FIELDS_SETTING } from '../../../../../data/common';
import { createEditIndexPatternPageStateContainer } from '../edit_index_pattern_state_container';
import { TAB_INDEXED_FIELDS, TAB_SCRIPTED_FIELDS, TAB_SOURCE_FILTERS } from '../constants';
import { SourceFiltersTable } from '../source_filters_table';
@@ -47,19 +47,26 @@ interface TabsProps extends Pick {
fields: IndexPatternField[];
services: {
indexPatternManagement: IndexPatternManagementStart;
+ painlessDocLink: string;
};
}
-const searchAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.searchAria', {
- defaultMessage: 'Search fields',
-});
+const searchAriaLabel = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.fields.searchAria',
+ {
+ defaultMessage: 'Search fields',
+ }
+);
-const filterAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.filterAria', {
- defaultMessage: 'Filter field types',
-});
+const filterAriaLabel = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.fields.filterAria',
+ {
+ defaultMessage: 'Filter field types',
+ }
+);
const filterPlaceholder = i18n.translate(
- 'kbn.management.editIndexPattern.fields.filterPlaceholder',
+ 'indexPatternManagement.editIndexPattern.fields.filterPlaceholder',
{
defaultMessage: 'Search',
}
@@ -189,6 +196,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
},
}}
onRemoveField={refreshFilters}
+ painlessDocLink={services.painlessDocLink}
/>
);
@@ -219,6 +227,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
refreshFilters,
scriptedFieldLanguageFilter,
services.indexPatternManagement.list.getFieldInfo,
+ services.painlessDocLink,
]
);
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/utils.ts b/src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/utils.ts
similarity index 82%
rename from src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/utils.ts
rename to src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/utils.ts
index 83335a6fabfeb6..b9b59142290dc6 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/utils.ts
+++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/tabs/utils.ts
@@ -19,8 +19,8 @@
import { Dictionary, countBy, defaults, unique } from 'lodash';
import { i18n } from '@kbn/i18n';
-import { IndexPattern, IndexPatternField } from '../../../../../../../../../plugins/data/public';
-import { IndexPatternManagementStart } from '../../../../../../../../../plugins/index_pattern_management/public';
+import { IndexPattern, IndexPatternField } from '../../../../../../plugins/data/public';
+import { IndexPatternManagementStart } from '../../../../../../plugins/index_pattern_management/public';
import { TAB_INDEXED_FIELDS, TAB_SCRIPTED_FIELDS, TAB_SOURCE_FILTERS } from '../constants';
function filterByName(items: IndexPatternField[], filter: string) {
@@ -56,17 +56,17 @@ function getTitle(type: string, filteredCount: Dictionary, totalCount: D
let title = '';
switch (type) {
case 'indexed':
- title = i18n.translate('kbn.management.editIndexPattern.tabs.fieldsHeader', {
+ title = i18n.translate('indexPatternManagement.editIndexPattern.tabs.fieldsHeader', {
defaultMessage: 'Fields',
});
break;
case 'scripted':
- title = i18n.translate('kbn.management.editIndexPattern.tabs.scriptedHeader', {
+ title = i18n.translate('indexPatternManagement.editIndexPattern.tabs.scriptedHeader', {
defaultMessage: 'Scripted fields',
});
break;
case 'sourceFilters':
- title = i18n.translate('kbn.management.editIndexPattern.tabs.sourceHeader', {
+ title = i18n.translate('indexPatternManagement.editIndexPattern.tabs.sourceHeader', {
defaultMessage: 'Source filters',
});
break;
@@ -117,16 +117,22 @@ export function getTabs(
}
export function getPath(field: IndexPatternField) {
- return `/management/kibana/index_patterns/${field.indexPattern?.id}/field/${field.name}`;
+ return `${field.indexPattern?.id}/field/${field.name}`;
}
-const allTypesDropDown = i18n.translate('kbn.management.editIndexPattern.fields.allTypesDropDown', {
- defaultMessage: 'All field types',
-});
+const allTypesDropDown = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.fields.allTypesDropDown',
+ {
+ defaultMessage: 'All field types',
+ }
+);
-const allLangsDropDown = i18n.translate('kbn.management.editIndexPattern.fields.allLangsDropDown', {
- defaultMessage: 'All languages',
-});
+const allLangsDropDown = i18n.translate(
+ 'indexPatternManagement.editIndexPattern.fields.allLangsDropDown',
+ {
+ defaultMessage: 'All languages',
+ }
+);
export function convertToEuiSelectOption(options: string[], type: string) {
const euiOptions =
diff --git a/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap
similarity index 72%
rename from src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap
index dc11bdfefa46bf..a7ed4e1c9cafd7 100644
--- a/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap
@@ -6,7 +6,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
@@ -19,31 +19,14 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
isVisible={false}
/>
}
label={
}
@@ -168,7 +152,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
error={
}
@@ -188,7 +172,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
@@ -205,7 +189,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
>
@@ -224,7 +208,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
>
@@ -238,7 +222,7 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
>
@@ -258,7 +242,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
}
label={
}
@@ -435,7 +403,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
@@ -452,7 +420,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
>
@@ -471,7 +439,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
>
@@ -485,7 +453,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
>
@@ -503,7 +471,7 @@ exports[`FieldEditor should render edit scripted field correctly 1`] = `
>
@@ -525,7 +493,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
@@ -538,31 +506,14 @@ exports[`FieldEditor should show conflict field warning 1`] = `
isVisible={false}
/>
@@ -614,7 +566,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
"mappingConflict": ,
@@ -690,14 +642,14 @@ exports[`FieldEditor should show conflict field warning 1`] = `
helpText={
}
label={
}
@@ -731,7 +683,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
error={
}
@@ -751,7 +703,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
@@ -768,7 +720,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
>
@@ -787,7 +739,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
>
@@ -801,7 +753,7 @@ exports[`FieldEditor should show conflict field warning 1`] = `
>
@@ -821,7 +773,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
testlang
,
"painlessLink": ,
@@ -1032,14 +967,14 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
helpText={
}
label={
}
@@ -1088,7 +1023,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
@@ -1105,7 +1040,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
>
@@ -1124,7 +1059,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
>
@@ -1138,7 +1073,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
>
@@ -1156,7 +1091,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
>
@@ -1178,7 +1113,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
@@ -1191,31 +1126,14 @@ exports[`FieldEditor should show multiple type field warning with a table contai
isVisible={false}
/>
@@ -1267,7 +1186,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
"mappingConflict": ,
@@ -1350,14 +1269,14 @@ exports[`FieldEditor should show multiple type field warning with a table contai
title={
}
>
@@ -1399,14 +1318,14 @@ exports[`FieldEditor should show multiple type field warning with a table contai
helpText={
}
label={
}
@@ -1440,7 +1359,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
error={
}
@@ -1460,7 +1379,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
@@ -1477,7 +1396,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
>
@@ -1496,7 +1415,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
>
@@ -1510,7 +1429,7 @@ exports[`FieldEditor should show multiple type field warning with a table contai
>
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
similarity index 92%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
index bf1682faf9a9d9..f3e529a8a1e1b2 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`BytesFormatEditor should render normally 1`] = `
>
@@ -30,7 +30,7 @@ exports[`BytesFormatEditor should render normally 1`] = `
label={
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx
index 40443ec2621823..99c3d3d55a8bce 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/bytes/bytes.test.tsx
@@ -44,7 +44,6 @@ describe('BytesFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
,
"render": [Function],
@@ -18,7 +18,7 @@ exports[`ColorFormatEditor should render multiple colors 1`] = `
"field": "text",
"name": ,
"render": [Function],
@@ -27,7 +27,7 @@ exports[`ColorFormatEditor should render multiple colors 1`] = `
"field": "background",
"name": ,
"render": [Function],
@@ -35,7 +35,7 @@ exports[`ColorFormatEditor should render multiple colors 1`] = `
Object {
"name": ,
"render": [Function],
@@ -89,7 +89,7 @@ exports[`ColorFormatEditor should render multiple colors 1`] = `
>
@@ -108,7 +108,7 @@ exports[`ColorFormatEditor should render other type normally (range field) 1`] =
"field": "range",
"name": ,
"render": [Function],
@@ -117,7 +117,7 @@ exports[`ColorFormatEditor should render other type normally (range field) 1`] =
"field": "text",
"name": ,
"render": [Function],
@@ -126,7 +126,7 @@ exports[`ColorFormatEditor should render other type normally (range field) 1`] =
"field": "background",
"name": ,
"render": [Function],
@@ -134,7 +134,7 @@ exports[`ColorFormatEditor should render other type normally (range field) 1`] =
Object {
"name": ,
"render": [Function],
@@ -181,7 +181,7 @@ exports[`ColorFormatEditor should render other type normally (range field) 1`] =
>
@@ -200,7 +200,7 @@ exports[`ColorFormatEditor should render string type normally (regex field) 1`]
"field": "regex",
"name": ,
"render": [Function],
@@ -209,7 +209,7 @@ exports[`ColorFormatEditor should render string type normally (regex field) 1`]
"field": "text",
"name": ,
"render": [Function],
@@ -218,7 +218,7 @@ exports[`ColorFormatEditor should render string type normally (regex field) 1`]
"field": "background",
"name": ,
"render": [Function],
@@ -226,7 +226,7 @@ exports[`ColorFormatEditor should render string type normally (regex field) 1`]
Object {
"name": ,
"render": [Function],
@@ -273,7 +273,7 @@ exports[`ColorFormatEditor should render string type normally (regex field) 1`]
>
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/color/color.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/color/color.test.tsx
similarity index 94%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/color/color.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/color/color.test.tsx
index 549831e9c3fb29..f13cb0975c8d2d 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/color/color.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/color/color.test.tsx
@@ -22,7 +22,7 @@ import { shallowWithI18nProvider } from 'test_utils/enzyme_helpers';
import { FieldFormat } from 'src/plugins/data/public';
import { ColorFormatEditor } from './color';
-import { fieldFormats } from '../../../../../../../../plugins/data/public';
+import { fieldFormats } from '../../../../../../../../data/public';
const fieldType = 'string';
const format = {
@@ -42,7 +42,6 @@ describe('ColorFormatEditor', () => {
it('should render string type normally (regex field)', async () => {
const component = shallowWithI18nProvider(
{
it('should render other type normally (range field)', async () => {
const component = shallowWithI18nProvider(
{
it('should render multiple colors', async () => {
const component = shallowWithI18nProvider(
),
@@ -121,7 +121,7 @@ export class ColorFormatEditor extends DefaultFormatEditor
),
@@ -145,7 +145,7 @@ export class ColorFormatEditor extends DefaultFormatEditor
),
@@ -169,7 +169,7 @@ export class ColorFormatEditor extends DefaultFormatEditor
),
@@ -192,7 +192,7 @@ export class ColorFormatEditor extends DefaultFormatEditor
),
@@ -211,15 +211,15 @@ export class ColorFormatEditor extends DefaultFormatEditor {
@@ -240,7 +240,7 @@ export class ColorFormatEditor extends DefaultFormatEditor
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/color/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/color/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/color/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/color/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap
similarity index 93%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap
index 2d73f775e316c7..a4d780c59ca740 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`DateFormatEditor should render normally 1`] = `
>
@@ -30,7 +30,7 @@ exports[`DateFormatEditor should render normally 1`] = `
label={
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/date.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/date.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/date.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/date.test.tsx
index 746cb7c7fe3022..c3114dacd118d8 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/date.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/date.test.tsx
@@ -44,7 +44,6 @@ describe('DateFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
{defaultPattern},
@@ -69,7 +69,7 @@ export class DateFormatEditor extends DefaultFormatEditor
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap
similarity index 93%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap
index 1456deaa13e47b..8c6397ea3adeba 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`DateFormatEditor should render normally 1`] = `
>
@@ -30,7 +30,7 @@ exports[`DateFormatEditor should render normally 1`] = `
label={
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx
similarity index 94%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx
index e6b15c741af4ef..bc9a8704e7c7d8 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { shallow } from 'enzyme';
-import { FieldFormat } from '../../../../../../../../plugins/data/public';
+import { FieldFormat } from '../../../../../../../../data/public';
import { DateNanosFormatEditor } from './date_nanos';
@@ -46,7 +46,6 @@ describe('DateFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
{defaultPattern},
@@ -64,7 +64,7 @@ export class DateNanosFormatEditor extends DefaultFormatEditor
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/date_nanos/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/date_nanos/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/default.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/default.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/default.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/default.test.tsx
index 3f30af97dc063b..6af441b9ba7510 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/default.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/default.test.tsx
@@ -69,7 +69,6 @@ describe('DefaultFormatEditor', () => {
it('should render nothing', async () => {
const component = shallow(
{
it('should call prop onChange()', async () => {
const component = shallow(
{
shallow(
{
formatParams: { type?: string } & P;
onChange: (newParams: Record) => void;
onError: FieldFormatEditorProps['onError'];
- basePath: string;
}
export interface FormatEditorState {
@@ -86,6 +85,7 @@ export class DefaultFormatEditor
extends PureComponent<
FormatEditorProps
,
FormatEditorState & S
> {
+ static formatId = 'default';
state = defaultState as FormatEditorState & S;
static getDerivedStateFromProps(nextProps: FormatEditorProps<{}>, state: FormatEditorState) {
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/default/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/default/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
similarity index 94%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
index dbebd324b16b69..b606e60949af54 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap
@@ -12,7 +12,7 @@ exports[`DurationFormatEditor should render human readable output normally 1`] =
label={
}
@@ -42,7 +42,7 @@ exports[`DurationFormatEditor should render human readable output normally 1`] =
label={
}
@@ -124,7 +124,7 @@ exports[`DurationFormatEditor should render non-human readable output normally 1
label={
}
@@ -154,7 +154,7 @@ exports[`DurationFormatEditor should render non-human readable output normally 1
label={
}
@@ -189,7 +189,7 @@ exports[`DurationFormatEditor should render non-human readable output normally 1
label={
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/duration.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/duration.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/duration.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/duration.test.tsx
index 3ab69d12d8c0e0..b181d6fa4466da 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/duration.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/duration.test.tsx
@@ -71,7 +71,6 @@ describe('DurationFormatEditor', () => {
it('should render human readable output normally', async () => {
const component = shallow(
{
};
const component = shallow(
20
) {
- error = i18n.translate('common.ui.fieldEditor.durationErrorMessage', {
+ error = i18n.translate('indexPatternManagement.durationErrorMessage', {
defaultMessage: 'Decimal places must be between 0 and 20',
});
nextProps.onError(error);
@@ -101,7 +101,7 @@ export class DurationFormatEditor extends DefaultFormatEditor<
}
@@ -125,7 +125,7 @@ export class DurationFormatEditor extends DefaultFormatEditor<
}
@@ -149,7 +149,7 @@ export class DurationFormatEditor extends DefaultFormatEditor<
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/index.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/index.tsx
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/duration/index.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/duration/index.tsx
diff --git a/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/index.ts
new file mode 100644
index 00000000000000..6961cbf8d831c5
--- /dev/null
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/index.ts
@@ -0,0 +1,31 @@
+/*
+ * 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 { DefaultFormatEditor } from './default';
+
+export { BytesFormatEditor } from './bytes';
+export { ColorFormatEditor } from './color';
+export { DateFormatEditor } from './date';
+export { DateNanosFormatEditor } from './date_nanos';
+export { DurationFormatEditor } from './duration';
+export { NumberFormatEditor } from './number';
+export { PercentFormatEditor } from './percent';
+export { StaticLookupFormatEditor } from './static_lookup';
+export { StringFormatEditor } from './string';
+export { TruncateFormatEditor } from './truncate';
+export { UrlFormatEditor } from './url';
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
similarity index 92%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
index cf04dd19428e5b..42c2323e56979e 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`NumberFormatEditor should render normally 1`] = `
>
@@ -30,7 +30,7 @@ exports[`NumberFormatEditor should render normally 1`] = `
label={
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/number.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/number.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/number.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/number.test.tsx
index c07c8663593051..fddd1d5a8c7c34 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/number/number.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/number/number.test.tsx
@@ -44,7 +44,6 @@ describe('NumberFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
{defaultPattern} }}
/>
@@ -56,7 +56,7 @@ export class NumberFormatEditor extends DefaultFormatEditor
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
similarity index 92%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
index 0784a3f5e407db..ac512402b4d417 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`PercentFormatEditor should render normally 1`] = `
>
@@ -30,7 +30,7 @@ exports[`PercentFormatEditor should render normally 1`] = `
label={
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/percent.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/percent.test.tsx
similarity index 94%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/percent.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/percent.test.tsx
index ddeb79538cda1b..c23e940dadea79 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/percent/percent.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/percent/percent.test.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { shallow } from 'enzyme';
-import { FieldFormat } from '../../../../../../../../plugins/data/public';
+import { FieldFormat } from '../../../../../../../../data/public';
import { PercentFormatEditor } from './percent';
@@ -44,7 +44,6 @@ describe('PercentFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
,
"render": [Function],
@@ -18,7 +18,7 @@ exports[`StaticLookupFormatEditor should render multiple lookup entries and unkn
"field": "value",
"name": ,
"render": [Function],
@@ -73,7 +73,7 @@ exports[`StaticLookupFormatEditor should render multiple lookup entries and unkn
>
@@ -89,7 +89,7 @@ exports[`StaticLookupFormatEditor should render multiple lookup entries and unkn
label={
}
@@ -116,7 +116,7 @@ exports[`StaticLookupFormatEditor should render normally 1`] = `
"field": "key",
"name": ,
"render": [Function],
@@ -125,7 +125,7 @@ exports[`StaticLookupFormatEditor should render normally 1`] = `
"field": "value",
"name": ,
"render": [Function],
@@ -174,7 +174,7 @@ exports[`StaticLookupFormatEditor should render normally 1`] = `
>
@@ -190,7 +190,7 @@ exports[`StaticLookupFormatEditor should render normally 1`] = `
label={
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/static_lookup/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/static_lookup/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/static_lookup/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/static_lookup/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx
similarity index 93%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx
index 2e2b1c3ae2357d..a8356923eb3813 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx
@@ -18,9 +18,9 @@
*/
import React from 'react';
-import { shallowWithI18nProvider } from '../../../../../../../../test_utils/public/enzyme_helpers';
+import { shallowWithI18nProvider } from '../../../../../../../../../test_utils/public/enzyme_helpers';
import { StaticLookupFormatEditorFormatParams } from './static_lookup';
-import { FieldFormat } from '../../../../../../../../plugins/data/public';
+import { FieldFormat } from '../../../../../../../../data/public';
import { StaticLookupFormatEditor } from './static_lookup';
@@ -43,7 +43,6 @@ describe('StaticLookupFormatEditor', () => {
it('should render normally', async () => {
const component = shallowWithI18nProvider(
{
it('should render multiple lookup entries and unknown key value', async () => {
const component = shallowWithI18nProvider(
+
),
render: (value: number, item: StaticLookupItem) => {
return (
@@ -106,7 +109,7 @@ export class StaticLookupFormatEditor extends DefaultFormatEditor<
field: 'value',
name: (
),
@@ -128,15 +131,15 @@ export class StaticLookupFormatEditor extends DefaultFormatEditor<
},
{
field: 'actions',
- name: i18n.translate('common.ui.fieldEditor.staticLookup.actions', {
+ name: i18n.translate('indexPatternManagement.staticLookup.actions', {
defaultMessage: 'actions',
}),
actions: [
{
- name: i18n.translate('common.ui.fieldEditor.staticLookup.deleteAria', {
+ name: i18n.translate('indexPatternManagement.staticLookup.deleteAria', {
defaultMessage: 'Delete',
}),
- description: i18n.translate('common.ui.fieldEditor.staticLookup.deleteTitle', {
+ description: i18n.translate('indexPatternManagement.staticLookup.deleteTitle', {
defaultMessage: 'Delete entry',
}),
onClick: (item: StaticLookupItem) => {
@@ -158,7 +161,7 @@ export class StaticLookupFormatEditor extends DefaultFormatEditor<
@@ -166,7 +169,7 @@ export class StaticLookupFormatEditor extends DefaultFormatEditor<
}
@@ -174,7 +177,7 @@ export class StaticLookupFormatEditor extends DefaultFormatEditor<
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/string/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/string/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/string/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/string/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/string/string.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/string/string.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/string/string.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/string/string.test.tsx
index d0fa0935b26640..ccaa12222281fe 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/string/string.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/string/string.test.tsx
@@ -52,7 +52,6 @@ describe('StringFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap
similarity index 96%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap
index f646d5b4afca80..2d1ee496d2786b 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap
@@ -12,7 +12,7 @@ exports[`TruncateFormatEditor should render normally 1`] = `
label={
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/index.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/index.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/index.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/index.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/sample.ts b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/sample.ts
similarity index 100%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/sample.ts
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/sample.ts
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx
similarity index 98%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx
index bb723386ff7773..149b78c85e5da5 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/truncate/truncate.test.tsx
@@ -50,7 +50,6 @@ describe('TruncateFormatEditor', () => {
it('should render normally', async () => {
const component = shallow(
{
it('should fire error, when input is invalid', async () => {
const component = shallow(
{
it('should fire change, when input changed and is valid', async () => {
const component = shallow(
}
diff --git a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap
similarity index 90%
rename from src/legacy/ui/public/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap
rename to src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap
index f0766df176c0da..69b192a81d097e 100644
--- a/src/legacy/ui/public/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/field_editor/components/field_format_editor/editors/url/__snapshots__/label_template_flyout.test.tsx.snap
@@ -11,14 +11,14 @@ exports[`LabelTemplateFlyout should render normally 1`] = `