diff --git a/package.json b/package.json index c9d8a75da2cc04..72309e07bde772 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "@elastic/datemath": "link:bazel-bin/packages/elastic-datemath", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.1.0-canary.2", "@elastic/ems-client": "8.0.0", - "@elastic/eui": "46.1.0", + "@elastic/eui": "48.1.1", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", @@ -336,7 +336,7 @@ "re2": "^1.16.0", "react": "^16.12.0", "react-ace": "^7.0.5", - "react-beautiful-dnd": "^13.0.0", + "react-beautiful-dnd": "^13.1.0", "react-color": "^2.13.8", "react-dom": "^16.12.0", "react-dropzone": "^4.2.9", 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 d4a3bd3a7ea742..df924685f09015 100644 --- a/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap +++ b/src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap @@ -83,7 +83,7 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiDataGrid.ariaLabelledBy": [Function], "euiDataGrid.screenReaderNotice": "Cell contains interactive content.", "euiDataGridCell.position": [Function], - "euiDataGridCellButtons.expandButtonTitle": "Click or hit enter to interact with cell content", + "euiDataGridCellActions.expandButtonTitle": "Click or hit enter to interact with cell content", "euiDataGridHeaderCell.headerActions": "Header actions", "euiDataGridPagination.detailedPaginationLabel": [Function], "euiDataGridPagination.paginationLabel": "Pagination for preceding grid", @@ -206,10 +206,15 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiSelectable.noAvailableOptions": "No options available", "euiSelectable.noMatchingOptions": [Function], "euiSelectable.placeholderName": "Filter options", + "euiSelectable.screenReaderInstructions": "Use up and down arrows to move focus over options. Enter to select. Escape to collapse options.", + "euiSelectable.searchResults": [Function], + "euiSelectableListItem.checkedOption": "Checked option.", + "euiSelectableListItem.checkedOptionInstructions": "To uncheck this option, press enter.", "euiSelectableListItem.excludedOption": "Excluded option.", - "euiSelectableListItem.excludedOptionInstructions": "To deselect this option, press enter.", - "euiSelectableListItem.includedOption": "Included option.", + "euiSelectableListItem.excludedOptionInstructions": "To uncheck this option, press enter.", + "euiSelectableListItem.includedOption": "Selected option.", "euiSelectableListItem.includedOptionInstructions": "To exclude this option, press enter.", + "euiSelectableListItem.unckeckedOptionInstructions": "To select this option, press enter.", "euiSelectableTemplateSitewide.loadingResults": "Loading results", "euiSelectableTemplateSitewide.noResults": "No results available", "euiSelectableTemplateSitewide.onFocusBadgeGoTo": "Go to", @@ -231,6 +236,12 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiStepStrings.simpleWarning": [Function], "euiStepStrings.step": [Function], "euiStepStrings.warning": [Function], + "euiSuggest.stateLoading": "State: loading.", + "euiSuggest.stateSaved": "State: saved.", + "euiSuggest.stateSavedTooltip": "Saved.", + "euiSuggest.stateUnchanged": "State: unchanged.", + "euiSuggest.stateUnsaved": "State: unsaved.", + "euiSuggest.stateUnsavedTooltip": "Changes have not been saved.", "euiSuperSelect.screenReaderAnnouncement": "You are in a form selector and must select a single option. Use the up and down keys to navigate or escape to close.", "euiSuperSelectControl.selectAnOption": [Function], "euiSuperUpdateButton.cannotUpdateTooltip": "Cannot update", diff --git a/src/core/public/i18n/i18n_eui_mapping.test.ts b/src/core/public/i18n/i18n_eui_mapping.test.ts index d8d48a8e5f1d5a..2b29fa4d0d66c9 100644 --- a/src/core/public/i18n/i18n_eui_mapping.test.ts +++ b/src/core/public/i18n/i18n_eui_mapping.test.ts @@ -76,7 +76,7 @@ describe('@elastic/eui i18n tokens', () => { test('defaultMessage is in sync with defString', () => { // Certain complex tokens (e.g. ones that have a function as a defaultMessage) // need custom i18n handling, and can't be checked for basic defString equality - const tokensToSkip = ['euiColumnSorting.buttonActive']; + const tokensToSkip = ['euiColumnSorting.buttonActive', 'euiSelectable.searchResults']; if (tokensToSkip.includes(token)) return; // Clean up typical errors from the `@elastic/eui` extraction token tool diff --git a/src/core/public/i18n/i18n_eui_mapping.tsx b/src/core/public/i18n/i18n_eui_mapping.tsx index 4603a2074c4d9f..135a515e1e22db 100644 --- a/src/core/public/i18n/i18n_eui_mapping.tsx +++ b/src/core/public/i18n/i18n_eui_mapping.tsx @@ -397,8 +397,8 @@ export const getEuiContextMapping = (): EuiTokensObject => { defaultMessage: 'Row: {row}; Column: {col}', values: { row, col }, }), - 'euiDataGridCellButtons.expandButtonTitle': i18n.translate( - 'core.euiDataGridCellButtons.expandButtonTitle', + 'euiDataGridCellActions.expandButtonTitle': i18n.translate( + 'core.euiDataGridCellActions.expandButtonTitle', { defaultMessage: 'Click or hit enter to interact with cell content', } @@ -954,13 +954,37 @@ export const getEuiContextMapping = (): EuiTokensObject => { values={{ searchValue }} /> ), + 'euiSelectable.screenReaderInstructions': i18n.translate( + 'core.euiSelectable.screenReaderInstructions', + { + defaultMessage: + 'Use up and down arrows to move focus over options. Enter to select. Escape to collapse options.', + } + ), + 'euiSelectable.searchResults': ({ resultsLength }: EuiValues) => + i18n.translate('core.euiSelectable.searchResults', { + defaultMessage: '{resultsLength, plural, one {# result} other {# results}}', + values: { resultsLength }, + }), 'euiSelectable.placeholderName': i18n.translate('core.euiSelectable.placeholderName', { defaultMessage: 'Filter options', }), + 'euiSelectableListItem.checkedOption': i18n.translate( + 'core.euiSelectableListItem.checkedOption', + { + defaultMessage: 'Checked option.', + } + ), + 'euiSelectableListItem.checkedOptionInstructions': i18n.translate( + 'core.euiSelectableListItem.checkedOptionInstructions', + { + defaultMessage: 'To uncheck this option, press enter.', + } + ), 'euiSelectableListItem.includedOption': i18n.translate( 'core.euiSelectableListItem.includedOption', { - defaultMessage: 'Included option.', + defaultMessage: 'Selected option.', } ), 'euiSelectableListItem.includedOptionInstructions': i18n.translate( @@ -978,7 +1002,13 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'euiSelectableListItem.excludedOptionInstructions': i18n.translate( 'core.euiSelectableListItem.excludedOptionInstructions', { - defaultMessage: 'To deselect this option, press enter.', + defaultMessage: 'To uncheck this option, press enter.', + } + ), + 'euiSelectableListItem.unckeckedOptionInstructions': i18n.translate( + 'core.euiSelectableListItem.unckeckedOptionInstructions', + { + defaultMessage: 'To select this option, press enter.', } ), 'euiSelectableTemplateSitewide.loadingResults': i18n.translate( @@ -1088,6 +1118,28 @@ export const getEuiContextMapping = (): EuiTokensObject => { defaultMessage: 'Step {number} is loading', values: { number }, }), + 'euiSuggest.stateSavedTooltip': i18n.translate('core.euiSuggest.stateSavedTooltip', { + defaultMessage: 'Saved.', + }), + + 'euiSuggest.stateUnsavedTooltip': i18n.translate('core.euiSuggest.stateUnsavedTooltip', { + defaultMessage: 'Changes have not been saved.', + }), + + 'euiSuggest.stateLoading': i18n.translate('core.euiSuggest.stateLoading', { + defaultMessage: 'State: loading.', + }), + + 'euiSuggest.stateSaved': i18n.translate('core.euiSuggest.stateSaved', { + defaultMessage: 'State: saved.', + }), + + 'euiSuggest.stateUnsaved': i18n.translate('core.euiSuggest.stateUnsaved', { + defaultMessage: 'State: unsaved.', + }), + 'euiSuggest.stateUnchanged': i18n.translate('core.euiSuggest.stateUnchanged', { + defaultMessage: 'State: unchanged.', + }), 'euiSuperSelect.screenReaderAnnouncement': i18n.translate( 'core.euiSuperSelect.screenReaderAnnouncement', { diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index 6e05cf6d3f6b03..38cc61387e92c4 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -77,6 +77,6 @@ export const LICENSE_OVERRIDES = { 'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts '@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint '@elastic/ems-client@8.0.0': ['Elastic License 2.0'], - '@elastic/eui@46.1.0': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@48.1.1': ['SSPL-1.0 OR Elastic License 2.0'], 'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry }; diff --git a/src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap b/src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap index 4db3f780fdebe5..dcaba4c3f8e199 100644 --- a/src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap +++ b/src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap @@ -1292,11 +1292,13 @@ exports[`Inspector Data View component should render single table without select >
Type @@ -75,6 +76,7 @@ exports[`UrlFormatEditor should render normally 1`] = `