From 571bfa2c0f8c7829facefa6b7a87c877fc96eb38 Mon Sep 17 00:00:00 2001 From: "dave.snider@gmail.com" Date: Tue, 20 Aug 2019 13:37:47 -0700 Subject: [PATCH] Upgrade EUI@13.3.0 (#42858) Upgrades 13.3.0 --- package.json | 2 +- .../__snapshots__/i18n_service.test.tsx.snap | 6 + src/core/public/i18n/i18n_service.tsx | 42 ++++ .../instruction_set.test.js.snap | 6 - .../saved_objects_installer.test.js.snap | 190 +++++++++--------- .../plugins/kbn_tp_run_pipeline/package.json | 2 +- .../kbn_tp_custom_visualizations/package.json | 2 +- .../kbn_tp_embeddable_explorer/package.json | 2 +- .../kbn_tp_sample_panel_action/package.json | 2 +- .../kbn_tp_visualize_embedding/package.json | 2 +- .../self_changing_vis.js | 2 +- .../ServiceOverview.test.tsx.snap | 2 + x-pack/package.json | 2 +- yarn.lock | 8 +- 14 files changed, 157 insertions(+), 113 deletions(-) diff --git a/package.json b/package.json index 042ce71fdeb10a..eda41d86e4c03c 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "@babel/register": "7.4.4", "@elastic/charts": "^9.1.1", "@elastic/datemath": "5.0.2", - "@elastic/eui": "13.1.1", + "@elastic/eui": "13.3.0", "@elastic/filesaver": "1.1.2", "@elastic/good": "8.1.1-kibana2", "@elastic/numeral": "2.3.3", diff --git a/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap b/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap index 0910635924ea26..e6fd864bcedd9d 100644 --- a/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap +++ b/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap @@ -54,8 +54,14 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiStepNumber.hasErrors": "has errors", "euiStepNumber.hasWarnings": "has warnings", "euiStepNumber.isComplete": "complete", + "euiSuperDatePicker.showDatesButtonLabel": "Show dates", "euiSuperSelect.screenReaderAnnouncement": [Function], "euiSuperSelectControl.selectAnOption": [Function], + "euiSuperUpdateButton.cannotUpdateTooltip": "Cannot update", + "euiSuperUpdateButton.clickToApplyTooltip": "Click to apply", + "euiSuperUpdateButton.refreshButtonLabel": "Refresh", + "euiSuperUpdateButton.updateButtonLabel": "Uodate", + "euiSuperUpdateButton.updatingButtonLabel": "Updating", "euiTablePagination.rowsPerPage": "Rows per page", "euiTablePagination.rowsPerPageOption": [Function], "euiTableSortMobile.sorting": "Sorting", diff --git a/src/core/public/i18n/i18n_service.tsx b/src/core/public/i18n/i18n_service.tsx index 78411a7a418d79..66c24a6557ca04 100644 --- a/src/core/public/i18n/i18n_service.tsx +++ b/src/core/public/i18n/i18n_service.tsx @@ -285,6 +285,13 @@ export class I18nService { description: 'Used as the title attribute on an image or svg icon to indicate a given process step is complete', }), + 'euiSuperDatePicker.showDatesButtonLabel': i18n.translate( + 'core.euiSuperDatePicker.showDatesButtonLabel', + { + defaultMessage: 'Show dates', + description: 'Displayed in a button that shows date picker', + } + ), 'euiSuperSelect.screenReaderAnnouncement': ({ optionsCount }: EuiValues) => i18n.translate('core.euiSuperSelect.screenReaderAnnouncement', { defaultMessage: @@ -296,6 +303,41 @@ export class I18nService { defaultMessage: 'Select an option: {selectedValue}, is selected', values: { selectedValue }, }), + 'euiSuperUpdateButton.cannotUpdateTooltip': i18n.translate( + 'core.euiSuperUpdateButton.cannotUpdateTooltip', + { + defaultMessage: 'Cannot update', + description: "Displayed in a tooltip when updates can't happen", + } + ), + 'euiSuperUpdateButton.clickToApplyTooltip': i18n.translate( + 'core.euiSuperUpdateButton.clickToApplyTooltip', + { + defaultMessage: 'Click to apply', + description: "Displayed in a tooltip when there are changes that haven't been applied", + } + ), + 'euiSuperUpdateButton.refreshButtonLabel': i18n.translate( + 'core.euiSuperUpdateButton.refreshButtonLabel', + { + defaultMessage: 'Refresh', + description: 'Displayed in a button that refreshes based on date picked', + } + ), + 'euiSuperUpdateButton.updatingButtonLabel': i18n.translate( + 'core.euiSuperUpdateButton.updatingButtonLabel', + { + defaultMessage: 'Updating', + description: 'Displayed in a button that refreshes when updates are happening', + } + ), + 'euiSuperUpdateButton.updateButtonLabel': i18n.translate( + 'core.euiSuperUpdateButton.updateButtonLabel', + { + defaultMessage: 'Uodate', + description: 'Displayed in a button that updates based on date picked', + } + ), 'euiTablePagination.rowsPerPage': i18n.translate('core.euiTablePagination.rowsPerPage', { defaultMessage: 'Rows per page', description: 'Displayed in a button that toggles a table pagination menu', diff --git a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap index 9b50b31448ecc1..6004cde57773bd 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap @@ -49,7 +49,6 @@ exports[`render 1`] = ` /> - - + - - Incomplete Step - -   - - - -
- - -

+ + + - Load Kibana objects -

-
+

+ Load Kibana objects +

+ +
@@ -427,8 +428,6 @@ exports[`bulkCreate should display success message when bulkCreate is successful } > - - - - Step - -   - - - -
- - - - - - - - - -
-
- -

+ + + + + + +

+
+ + - Load Kibana objects -

-
+

+ Load Kibana objects +

+ +
@@ -658,8 +660,6 @@ exports[`bulkCreate should display success message when bulkCreate is successful exports[`renders 1`] = ` { await PageObjects.visualize.navigateToNewVisualization(); diff --git a/x-pack/legacy/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap b/x-pack/legacy/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap index fca6e13c0862e2..573278c407389a 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap +++ b/x-pack/legacy/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap @@ -278,6 +278,7 @@ NodeList [ >