From c0edab3d431e3e040e7e977fbfa248bbf3dc7a19 Mon Sep 17 00:00:00 2001 From: cchaos Date: Wed, 11 Sep 2019 17:40:14 -0400 Subject: [PATCH 01/33] Update EUI to 14.0.0 --- package.json | 2 +- .../plugins/kbn_tp_run_pipeline/package.json | 2 +- .../plugins/kbn_tp_custom_visualizations/package.json | 2 +- .../plugins/kbn_tp_embeddable_explorer/package.json | 2 +- .../plugins/kbn_tp_sample_panel_action/package.json | 2 +- .../plugins/kbn_tp_visualize_embedding/package.json | 2 +- .../attribution_control/_attribution_control.scss | 2 +- x-pack/package.json | 2 +- yarn.lock | 8 ++++---- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 1f9629eff8a624..7a5c80c0d58ca2 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "@babel/register": "^7.5.5", "@elastic/charts": "^11.1.1", "@elastic/datemath": "5.0.2", - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "@elastic/filesaver": "1.1.2", "@elastic/good": "8.1.1-kibana2", "@elastic/numeral": "2.3.3", diff --git a/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json b/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json index 146325244067a8..55cdc772671243 100644 --- a/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json +++ b/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "react": "^16.8.0", "react-dom": "^16.8.0" } diff --git a/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json b/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json index 00ef51a751b276..b872f3dce6d300 100644 --- a/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json +++ b/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "react": "^16.8.0" } } diff --git a/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json b/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json index e86e63bf623b7b..90109a70b1e787 100644 --- a/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json +++ b/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "react": "^16.8.0" }, "scripts": { diff --git a/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json b/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json index 134b5152cdd216..1815075e20e40c 100644 --- a/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json +++ b/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "react": "^16.8.0" }, "scripts": { diff --git a/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json b/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json index 05338e6d4d882e..b995ddf0292921 100644 --- a/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json +++ b/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "react": "^16.8.0", "react-dom": "^16.8.0" } diff --git a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/attribution_control/_attribution_control.scss b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/attribution_control/_attribution_control.scss index 892a69f2562380..9ebaee57fba4db 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/attribution_control/_attribution_control.scss +++ b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/attribution_control/_attribution_control.scss @@ -1,6 +1,6 @@ .mapAttributionControl { @include mapOverlayIsTextOnly; - @include euiTextOverflowWrap; + @include euiTextBreakWord; pointer-events: all; padding-left: $euiSizeM; } diff --git a/x-pack/package.json b/x-pack/package.json index 490afb19353885..2c0aab2fcf2c38 100644 --- a/x-pack/package.json +++ b/x-pack/package.json @@ -184,7 +184,7 @@ "@babel/runtime": "^7.5.5", "@elastic/ctags-langserver": "^0.1.9", "@elastic/datemath": "5.0.2", - "@elastic/eui": "13.8.1", + "@elastic/eui": "14.0.0", "@elastic/javascript-typescript-langserver": "^0.2.2", "@elastic/lsp-extension": "^0.1.2", "@elastic/maki": "6.1.0", diff --git a/yarn.lock b/yarn.lock index 89b1b414be290e..595a914e2fcd72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -983,10 +983,10 @@ tabbable "^1.1.0" uuid "^3.1.0" -"@elastic/eui@13.8.1": - version "13.8.1" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-13.8.1.tgz#17bc50c634145a242be9fd4cdc78b857eadf60f3" - integrity sha512-4GbNpN3SIOFYviE2cfqIMCUmMf2KNSwEdMHP7cMwwa4u/W708NKOLB52Ipn0raWnWHAuIu9k5v9CrbaZfd1gdA== +"@elastic/eui@14.0.0": + version "14.0.0" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.0.0.tgz#4af6e687aec7b981a87dc4da15699f0d92ad17de" + integrity sha512-kU3WNPysOYZkgsrQOO1RmLgQmJWYmjVHw4w4HoliwLka2N9AtEYtNu+rFprkDwO7Pvd1lxb/mRPGdJ6NZtZdvA== dependencies: "@types/lodash" "^4.14.116" "@types/numeral" "^0.0.25" From ac0057c39e8ee3c9f032da588f280aafb27daee8 Mon Sep 17 00:00:00 2001 From: cchaos Date: Thu, 12 Sep 2019 10:22:06 -0400 Subject: [PATCH 02/33] =?UTF-8?q?Fixed=20SearchBar=E2=80=99s=20pre/appends?= =?UTF-8?q?=20alignment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../query/query_bar/components/language_switcher.tsx | 8 ++++++-- .../saved_query_management_component.tsx | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/legacy/core_plugins/data/public/query/query_bar/components/language_switcher.tsx b/src/legacy/core_plugins/data/public/query/query_bar/components/language_switcher.tsx index 8806b5b6489621..a5b72b7749f14a 100644 --- a/src/legacy/core_plugins/data/public/query/query_bar/components/language_switcher.tsx +++ b/src/legacy/core_plugins/data/public/query/query_bar/components/language_switcher.tsx @@ -65,7 +65,11 @@ export class QueryLanguageSwitcher extends Component { ); const button = ( - + {this.props.language === 'lucene' ? luceneLabel : kqlLabel} ); @@ -73,7 +77,7 @@ export class QueryLanguageSwitcher extends Component { return ( = ({ { From 38c6e97bc8ed66b81cd85f7f819424e4e69f2ce1 Mon Sep 17 00:00:00 2001 From: cchaos Date: Thu, 12 Sep 2019 10:54:45 -0400 Subject: [PATCH 03/33] So many snaps --- .../language_switcher.test.tsx.snap | 8 +- .../query_bar_input.test.tsx.snap | 42 +- .../__snapshots__/controls_tab.test.js.snap | 2 + .../list_control_editor.test.js.snap | 12 + .../__snapshots__/options_tab.test.js.snap | 3 + .../range_control_editor.test.js.snap | 2 + .../vis/__snapshots__/form_row.test.js.snap | 3 + .../__snapshots__/save_modal.test.js.snap | 2 + .../__snapshots__/header.test.js.snap | 2 + .../__snapshots__/time_field.test.js.snap | 3 + .../__snapshots__/objects_table.test.js.snap | 1 + .../__snapshots__/flyout.test.js.snap | 2 + .../__jest__/__snapshots__/table.test.js.snap | 4 + .../field/__snapshots__/field.test.js.snap | 40 + .../splits/__snapshots__/terms.test.js.snap | 7 + .../bytes/__snapshots__/bytes.test.js.snap | 1 + .../date/__snapshots__/date.test.js.snap | 1 + .../__snapshots__/date_nanos.test.js.snap | 1 + .../__snapshots__/duration.test.js.snap | 5 + .../number/__snapshots__/number.test.js.snap | 1 + .../__snapshots__/percent.test.js.snap | 1 + .../__snapshots__/static_lookup.test.js.snap | 2 + .../string/__snapshots__/string.test.js.snap | 1 + .../__snapshots__/truncate.test.js.snap | 1 + .../url/__snapshots__/url.test.js.snap | 9 + .../__snapshots__/samples.test.js.snap | 1 + .../url_panel_content.test.js.snap | 5 + .../__snapshots__/agg_params.test.tsx.snap | 1 + .../controls/__snapshots__/size.test.tsx.snap | 1 + .../__snapshots__/top_aggregate.test.tsx.snap | 1 + .../saved_object_save_modal.test.tsx.snap | 1 + .../extended_template.examples.storyshot | 160 +- .../custom_element_modal.examples.storyshot | 584 ++++--- .../expression_input.examples.storyshot | 28 +- .../file_upload.examples.storyshot | 4 +- .../extended_template.examples.storyshot | 1514 +++++++++-------- .../extended_template.examples.storyshot | 450 ++--- .../flex_item_setting.test.js.snap | 2 + .../pipeline_editor.test.js.snap | 22 + .../geometry_filter_form.test.js.snap | 8 + .../tooltip_selector.test.js.snap | 1 + .../heatmap_style_editor.test.js.snap | 1 + .../vector_style_symbol_editor.test.js.snap | 2 + .../__snapshots__/popover_form.test.tsx.snap | 2 + .../__snapshots__/popover_form.test.tsx.snap | 3 + .../__snapshots__/overrides.test.js.snap | 4 + .../__snapshots__/editor.test.js.snap | 28 + .../__snapshots__/list.test.js.snap | 15 + .../__snapshots__/calendar_form.test.js.snap | 5 + .../add_item_popover.test.js.snap | 3 + .../edit_description_popover.test.js.snap | 3 + .../edit/__snapshots__/header.test.js.snap | 2 + .../remote_cluster_form.test.js.snap | 432 ++--- .../basic_login_form.test.tsx.snap | 2 + .../elasticsearch_privileges.test.tsx.snap | 2 + .../index_privilege_form.test.tsx.snap | 3 + .../simple_privilege_section.test.tsx.snap | 1 + .../privilege_space_form.test.tsx.snap | 2 + .../confirm_delete_modal.test.tsx.snap | 1 + .../customize_space_avatar.test.tsx.snap | 2 + .../space_identifier.test.tsx.snap | 1 + .../__snapshots__/ping_list.test.tsx.snap | 2 + 62 files changed, 1981 insertions(+), 1474 deletions(-) diff --git a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap index e46ec946e97f62..a898d5b3c78d13 100644 --- a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap +++ b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap @@ -2,9 +2,11 @@ exports[`LanguageSwitcher should toggle off if language is lucene 1`] = ` @@ -15,7 +17,6 @@ exports[`LanguageSwitcher should toggle off if language is lucene 1`] = ` /> } - className="eui-displayBlock" closePopover={[Function]} display="inlineBlock" hasArrow={true} @@ -69,6 +70,7 @@ exports[`LanguageSwitcher should toggle off if language is lucene 1`] = ` @@ -115,7 +119,6 @@ exports[`LanguageSwitcher should toggle on if language is kuery 1`] = ` /> } - className="eui-displayBlock" closePopover={[Function]} display="inlineBlock" hasArrow={true} @@ -169,6 +172,7 @@ exports[`LanguageSwitcher should toggle on if language is kuery 1`] = ` - + @@ -309,7 +309,6 @@ exports[`QueryBarInput Should disable autoFocus on EuiFieldText when disableAuto /> } - className="eui-displayBlock" closePopover={[Function]} display="inlineBlock" hasArrow={true} @@ -324,7 +323,7 @@ exports[`QueryBarInput Should disable autoFocus on EuiFieldText when disableAuto onOutsideClick={[Function]} >