From 581b30b743c7b870a6e8c803cde96d06787ba90f Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:04:45 -0700 Subject: [PATCH] Upgrade EUI to v88.5.0 (#166868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `v88.3.0`⏩`v88.5.0` closes #151514 --- ## [`88.5.0`](https://github.com/elastic/eui/tree/v88.5.0) - Updated `EuiCallOut` with a new `onDismiss` prop ([#7156](https://github.com/elastic/eui/pull/7156)) - Added a new `renderCustomToolbar` prop to `EuiDataGrid`, which allows custom rendering of the toolbar. ([#7190](https://github.com/elastic/eui/pull/7190)) - Added a new `allowResetButton` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows hiding the "Reset to default" button from the display settings popover. ([#7190](https://github.com/elastic/eui/pull/7190)) - Added a new `additionalDisplaySettings` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows rendering extra settings inside the display settings popover. ([#7190](https://github.com/elastic/eui/pull/7190)) - Updated `EuiDataGrid`'s toolbar display settings button icon ([#7190](https://github.com/elastic/eui/pull/7190)) - Updated `EuiTextTruncate` with significantly improved iteration performance. Removed `measurementRenderAPI` prop, as `EuiTextTruncation` now only uses more performant canvas render API ([#7210](https://github.com/elastic/eui/pull/7210)) - Updated `EuiPopover` with a new configurable `repositionToCrossAxis` prop ([#7211](https://github.com/elastic/eui/pull/7211)) - Updated `EuiDatePicker` to support `compressed` input styling ([#7218](https://github.com/elastic/eui/pull/7218)) - Added `gradient` and `palette` icon glyphs. ([#7220](https://github.com/elastic/eui/pull/7220)) **Bug fixes** - Fixed `EuiPopover`'s missing animations on popover close ([#7211](https://github.com/elastic/eui/pull/7211)) - Fixed `EuiInputPopover` anchoring to the wrong side and missing shadows on smaller screens ([#7211](https://github.com/elastic/eui/pull/7211)) - Fixed `EuiSuperDatePicker` icon spacing on the quick select button ([#7217](https://github.com/elastic/eui/pull/7217)) - Fixed a missing type in `EuiMarkdownEditor`'s default processing plugins ([#7221](https://github.com/elastic/eui/pull/7221)) ## [`88.4.1`](https://github.com/elastic/eui/tree/v88.4.1) **Bug fixes** - Fixed missing `className`s on `EuiTextTruncate` ([#7212](https://github.com/elastic/eui/pull/7212)) - Fixed `title`s on `EuiComboBox` dropdown options to always be present ([#7212](https://github.com/elastic/eui/pull/7212)) - Fixed `EuiComboBox` truncation issues when search is an empty space ([#7212](https://github.com/elastic/eui/pull/7212)) ## [`88.4.0`](https://github.com/elastic/eui/tree/v88.4.0) - Updated `EuiComboBox` to allow configuring text truncation behavior via `truncationProps`. These props can be set on the entire combobox as well as on on individual dropdown options. ([#7028](https://github.com/elastic/eui/pull/7028)) - Updated `EuiInMemoryTable` with a new `searchFormat` prop (defaults to `eql`). When setting this prop to `text`, the built-in search bar will ignore EQL syntax and allow searching for plain strings with special characters and symbols. ([#7175](https://github.com/elastic/eui/pull/7175)) **Bug fixes** - `EuiComboBox` now always shows the highlighted search text, even on truncated text ([#7028](https://github.com/elastic/eui/pull/7028)) - Fixed missing i18n in `EuiSearchBar`'s default placeholder and aria-label text ([#7175](https://github.com/elastic/eui/pull/7175)) - Fixed the inline compressed styles of `EuiDescriptionListTitle` to use a taller line-height for readability ([#7185](https://github.com/elastic/eui/pull/7185)) - Fixed `EuiComboBox` to correctly truncate selected items when displayed as pills and plain text ([#7193](https://github.com/elastic/eui/pull/7193)) **Accessibility** - Added `aria-current` attribute to `EuiTablePagination` ([#7186](https://github.com/elastic/eui/pull/7186)) **CSS-in-JS conversions** - Converted `EuiDroppable` and `EuiDraggable` to Emotion; Removed `$euiDragAndDropSpacing` Sass variables ([#7187](https://github.com/elastic/eui/pull/7187)) --------- Co-authored-by: Patryk Kopycinski Co-authored-by: Jan Monschke Co-authored-by: Thomas Watson --- package.json | 2 +- .../__snapshots__/status_table.test.tsx.snap | 1 + .../__snapshots__/i18n_service.test.tsx.snap | 4 ++ .../src/i18n_eui_mapping.tsx | 14 ++++++ .../__snapshots__/index.test.tsx.snap | 48 +++++++++++++++---- .../__snapshots__/header_menu.test.tsx.snap | 2 +- .../__snapshots__/list_header.test.tsx.snap | 2 +- .../__snapshots__/menu_items.test.tsx.snap | 4 +- .../src/user_profiles_popover.test.tsx | 1 + .../impl/user_profiles_popover.test.tsx | 1 + src/dev/license_checker/config.ts | 2 +- .../shard_failure_table.test.tsx.snap | 1 + .../__snapshots__/indices_list.test.tsx.snap | 6 +++ .../table/__snapshots__/table.test.tsx.snap | 1 + .../table/__snapshots__/table.test.tsx.snap | 1 + .../table/__snapshots__/table.test.tsx.snap | 1 + .../warning_call_out.test.tsx.snap | 5 +- .../not_found_errors.test.tsx.snap | 20 ++++++-- .../__snapshots__/flyout.test.tsx.snap | 1 + .../__snapshots__/relationships.test.tsx.snap | 6 +++ .../__snapshots__/table.test.tsx.snap | 2 + .../__snapshots__/settings.test.tsx.snap | 10 ++-- .../extend_index_management.test.tsx.snap | 5 +- .../upload_license.test.tsx.snap | 20 ++++++-- .../pipelines_table.test.js.snap | 1 + .../__snapshots__/icon_select.test.js.snap | 2 + .../add_tooltip_field_popover.test.tsx.snap | 2 + .../metrics_expression.test.tsx.snap | 2 + .../tooltip_popover.test.tsx.snap | 2 + .../toc_entry_actions_popover.test.tsx.snap | 6 +++ .../__snapshots__/tools_control.test.tsx.snap | 2 + .../condition_expression.test.js.snap | 4 ++ .../scope_expression.test.js.snap | 3 ++ .../__snapshots__/events_table.test.js.snap | 2 + .../table/__snapshots__/table.test.js.snap | 1 + .../add_item_popover.test.js.snap | 3 ++ .../edit_description_popover.test.js.snap | 3 ++ .../filter_list_usage_popover.test.js.snap | 3 ++ .../list/__snapshots__/table.test.js.snap | 2 + .../ccr/__snapshots__/ccr.test.js.snap | 1 + .../__snapshots__/checker_errors.test.js.snap | 5 +- .../cypress/e2e/all/alerts_liked_apps.cy.ts | 2 +- .../all/alerts_response_actions_form.cy.ts | 4 +- ...screen_capture_panel_content.test.tsx.snap | 15 ++++-- .../__snapshots__/index.test.tsx.snap | 5 +- .../action_connectors_warning.test.tsx.snap | 30 +++++++++--- .../markdown_editor/plugins/index.ts | 6 +-- .../__snapshots__/anomaly_score.test.tsx.snap | 1 + .../groups_filter_popover.test.tsx.snap | 1 + .../__snapshots__/index.test.tsx.snap | 1 + .../scripts/run_cypress/parallel.ts | 2 +- .../components/resolve_all_conflicts.test.tsx | 1 + .../__snapshots__/expanded_row.test.tsx.snap | 2 +- .../add_filter_btn.test.tsx | 3 ++ .../functional/page_objects/security_page.ts | 6 +-- .../test/functional/services/rules/common.ts | 6 +-- .../alert_create_flyout.ts | 7 +-- .../stack_alerting/es_query_rule.ts | 7 +-- .../stack_alerting/index_threshold_rule.ts | 6 +-- .../alerts/changing_alert_status.cy.ts | 4 +- .../investigations/timelines/creation.cy.ts | 2 +- .../timelines/discover/discover_state.cy.ts | 2 +- .../timelines/search_or_filter.cy.ts | 2 +- yarn.lock | 8 ++-- 64 files changed, 243 insertions(+), 84 deletions(-) diff --git a/package.json b/package.json index 39ca8426fd0e6..1394e14a8373e 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "@elastic/datemath": "5.0.3", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.9.1-canary.1", "@elastic/ems-client": "8.4.0", - "@elastic/eui": "88.3.0", + "@elastic/eui": "88.5.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/packages/core/apps/core-apps-browser-internal/src/status/components/__snapshots__/status_table.test.tsx.snap b/packages/core/apps/core-apps-browser-internal/src/status/components/__snapshots__/status_table.test.tsx.snap index 1966b609894a0..cb10255eb9998 100644 --- a/packages/core/apps/core-apps-browser-internal/src/status/components/__snapshots__/status_table.test.tsx.snap +++ b/packages/core/apps/core-apps-browser-internal/src/status/components/__snapshots__/status_table.test.tsx.snap @@ -60,6 +60,7 @@ exports[`StatusTable renders when statuses is provided 1`] = ` } responsive={true} rowProps={[Function]} + searchFormat="eql" sorting={ Object { "sort": Object { diff --git a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap index 2351704688777..49797f086e998 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap +++ b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap @@ -25,6 +25,7 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiBreadcrumb.collapsedBadge.ariaLabel": "See collapsed breadcrumbs", "euiBreadcrumb.popoverAriaLabel": "Clicking this button will toggle a popover dialog.", "euiBreadcrumbs.nav.ariaLabel": "Breadcrumbs", + "euiCallOut.dismissAriaLabel": "Dismiss this callout", "euiCardSelect.select": "Select", "euiCardSelect.selected": "Selected", "euiCardSelect.unavailable": "Unavailable", @@ -298,6 +299,9 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiResizablePanel.toggleButtonAriaLabel": "Press to toggle this panel", "euiSaturation.ariaLabel": "HSV color mode saturation and value 2-axis slider", "euiSaturation.screenReaderInstructions": "Arrow keys to navigate the square color gradient. Coordinates will be used to calculate HSV color mode \\"saturation\\" and \\"value\\" numbers, in the range of 0 to 1. Left and right to change the saturation. Up and down change the value.", + "euiSearchBox.ariaLabel": "This is a search bar. After typing your query, hit enter to filter the results lower in the page.", + "euiSearchBox.incrementalAriaLabel": "This is a search bar. As you type, the results lower in the page will automatically filter.", + "euiSearchBox.placeholder": "Search...", "euiSelectable.loadingOptions": "Loading options", "euiSelectable.noAvailableOptions": "No options available", "euiSelectable.noMatchingOptions": [Function], diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx index 68c3db6e42660..e90889ceef612 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx +++ b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx @@ -119,6 +119,9 @@ export const getEuiContextMapping = (): EuiTokensObject => { defaultMessage: 'Breadcrumbs', description: 'Label on the breadcrumbs nav element', }), + 'euiCallOut.dismissAriaLabel': i18n.translate('core.euiCallOut.dismissAriaLabel', { + defaultMessage: 'Dismiss this callout', + }), 'euiCardSelect.select': i18n.translate('core.euiCardSelect.select', { defaultMessage: 'Select', description: 'Displayed button text when a card option can be selected.', @@ -1509,6 +1512,17 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'euiSaturation.ariaLabel': i18n.translate('core.euiSaturation.ariaLabel', { defaultMessage: 'HSV color mode saturation and value 2-axis slider', }), + 'euiSearchBox.ariaLabel': i18n.translate('core.euiSearchBox.ariaLabel', { + defaultMessage: + 'This is a search bar. After typing your query, hit enter to filter the results lower in the page.', + }), + 'euiSearchBox.incrementalAriaLabel': i18n.translate('core.euiSearchBox.incrementalAriaLabel', { + defaultMessage: + 'This is a search bar. As you type, the results lower in the page will automatically filter.', + }), + 'euiSearchBox.placeholder': i18n.translate('core.euiSearchBox.placeholder', { + defaultMessage: 'Search...', + }), 'euiSelectable.loadingOptions': i18n.translate('core.euiSelectable.loadingOptions', { defaultMessage: 'Loading options', description: 'Placeholder message while data is asynchronously loaded', diff --git a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap index 19cbc17bac8fd..5225cbc31debf 100644 --- a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap @@ -24,7 +24,11 @@ Object { class="euiComboBoxPill euiComboBoxPill--plainText" data-test-subj="euiComboBoxPill" > - machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +
- machine.os.raw + + machine.os.raw +