Skip to content

Commit f76b6e4

Browse files
committed
Move table-list-view to kibana-react
1 parent 17383b8 commit f76b6e4

File tree

12 files changed

+170
-152
lines changed

12 files changed

+170
-152
lines changed

src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { i18n } from '@kbn/i18n';
2424

2525
import { EuiLink, EuiButton, EuiEmptyPrompt } from '@elastic/eui';
2626

27-
import { TableListView } from './../../table_list_view';
27+
import { TableListView } from '../../../../../../../src/plugins/kibana_react/public';
2828

2929
export const EMPTY_FILTER = '';
3030

src/legacy/core_plugins/kibana/public/dashboard/saved_dashboard/saved_dashboard.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Query } from 'src/legacy/core_plugins/data/public';
2525
import { Filter } from '@kbn/es-query';
2626

2727
export interface SavedObjectDashboard extends SavedObject {
28-
id?: string;
28+
id: string;
2929
copyOnSave: boolean;
3030
timeRestore: boolean;
3131
timeTo?: string;

src/legacy/core_plugins/kibana/public/visualize/listing/visualize_listing_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import React, { Component, Fragment } from 'react';
2121
import PropTypes from 'prop-types';
2222
import { FormattedMessage } from '@kbn/i18n/react';
2323
import { i18n } from '@kbn/i18n';
24-
import { TableListView } from './../../table_list_view';
24+
import { TableListView } from '../../../../../../../src/plugins/kibana_react/public';
2525

2626
import { EuiIcon, EuiBetaBadge, EuiLink, EuiButton, EuiEmptyPrompt } from '@elastic/eui';
2727

src/legacy/ui/public/saved_objects/saved_object.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export interface SaveOptions {
2626
export interface SavedObject {
2727
save: (saveOptions: SaveOptions) => Promise<string>;
2828
copyOnSave: boolean;
29-
id?: string;
29+
id: string;
3030
}

src/legacy/ui/public/visualize/loader/embedded_visualize_handler.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ describe('EmbeddedVisualizeHandler', () => {
9595
handler = new EmbeddedVisualizeHandler(
9696
div,
9797
{
98+
id: '1',
9899
vis: mockVis,
99100
title: 'My Vis',
100101
searchSource: searchSourceMock,
@@ -127,6 +128,7 @@ describe('EmbeddedVisualizeHandler', () => {
127128
handler = new EmbeddedVisualizeHandler(
128129
div,
129130
{
131+
id: '1',
130132
vis: mockVis,
131133
title: 'My Vis',
132134
searchSource: searchSourceMock,

src/plugins/kibana_react/public/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ export * from './context';
2323
export * from './overlays';
2424
export * from './ui_settings';
2525
export * from './field_icon';
26+
export * from './table_list_view';

src/legacy/core_plugins/kibana/public/table_list_view/index.js renamed to src/plugins/kibana_react/public/table_list_view/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
20-
export { TableListView } from './table_list_view';
21-
19+
export * from './table_list_view';

0 commit comments

Comments
 (0)