From 631304bf53a5e83f541dde115484a31d03e79d70 Mon Sep 17 00:00:00 2001 From: Marco Liberati Date: Thu, 29 Aug 2024 13:11:54 +0200 Subject: [PATCH] [Lens] Make title align left correctly after removing icon in Metric chart (#191057) ## Summary Fixes #190765 ![metric_title_fix](https://github.com/user-attachments/assets/9cd88722-7d12-4473-a216-10718a2dc7a6) --- .../kbn-visualization-ui-components/index.ts | 4 +- .../kbn-visualization-ui-components/types.ts | 15 +++ .../kbn-visualization-ui-components/util.ts | 86 +++++++++++++ .../public/shared_components/icon_set.tsx | 70 +++++++++++ .../metric/dimension_editor.tsx | 4 +- .../public/visualizations/metric/icon_set.ts | 118 ------------------ .../visualizations/metric/to_expression.ts | 3 +- .../metric/visualization.test.ts | 6 - .../visualizations/xy/visualization.tsx | 4 +- .../annotations_config_panel/index.tsx | 8 -- .../reference_line_config_panel/icon_set.ts | 67 ---------- .../reference_line_config_panel/index.tsx | 8 -- .../reference_line_panel.tsx | 2 +- .../translations/translations/fr-FR.json | 27 ++-- .../translations/translations/ja-JP.json | 27 ++-- .../translations/translations/zh-CN.json | 27 ++-- 16 files changed, 207 insertions(+), 269 deletions(-) create mode 100644 x-pack/plugins/lens/public/shared_components/icon_set.tsx delete mode 100644 x-pack/plugins/lens/public/visualizations/metric/icon_set.ts delete mode 100644 x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/index.tsx delete mode 100644 x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/icon_set.ts delete mode 100644 x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/index.tsx diff --git a/packages/kbn-visualization-ui-components/index.ts b/packages/kbn-visualization-ui-components/index.ts index c6d4d7a8c545c..44fcc3448aee2 100644 --- a/packages/kbn-visualization-ui-components/index.ts +++ b/packages/kbn-visualization-ui-components/index.ts @@ -31,7 +31,7 @@ export { ChartSwitchTrigger, } from './components'; -export { isFieldLensCompatible } from './util'; +export { isFieldLensCompatible, sharedSetOfIcons, hasIcon, iconSortCriteria } from './util'; export type { DataType, @@ -43,4 +43,4 @@ export type { ColorPickerProps, } from './components'; -export type { FormatFactory, LineStyle } from './types'; +export type { FormatFactory, LineStyle, SharedSetOfIcons } from './types'; diff --git a/packages/kbn-visualization-ui-components/types.ts b/packages/kbn-visualization-ui-components/types.ts index 2e72eb9a305cf..eb06837db4562 100644 --- a/packages/kbn-visualization-ui-components/types.ts +++ b/packages/kbn-visualization-ui-components/types.ts @@ -11,3 +11,18 @@ import type { IFieldFormat, SerializedFieldFormat } from '@kbn/field-formats-plu export type FormatFactory = (mapping?: SerializedFieldFormat) => IFieldFormat; export type LineStyle = 'solid' | 'dashed' | 'dotted'; + +// This is a line of shared icon names used by Reference Lines, Annotations and Metric chart +export type SharedSetOfIcons = + | 'empty' + | 'asterisk' + | 'alert' + | 'bell' + | 'bolt' + | 'bug' + | 'editorComment' + | 'flag' + | 'heart' + | 'mapMarker' + | 'starEmpty' + | 'tag'; diff --git a/packages/kbn-visualization-ui-components/util.ts b/packages/kbn-visualization-ui-components/util.ts index 2eb71ee858759..070d82ddf1ba3 100644 --- a/packages/kbn-visualization-ui-components/util.ts +++ b/packages/kbn-visualization-ui-components/util.ts @@ -7,6 +7,92 @@ */ import { DataViewField, isNestedField } from '@kbn/data-views-plugin/common'; +import { i18n } from '@kbn/i18n'; +import type { IconSet } from './components'; +import type { SharedSetOfIcons } from './types'; export const isFieldLensCompatible = (field: DataViewField) => !isNestedField(field) && (!!field.aggregatable || !!field.scripted); + +/** + * Icon checking logic. It makes sure an icon has actual content. + */ +export function hasIcon(icon: string | undefined): icon is string { + return icon != null && icon !== 'empty'; +} + +/** + * Sorting criteria for icons sets. It makes sure empty icon is always on top. + */ +export function iconSortCriteria(a: IconSet[number], b: IconSet[number]) { + if (a.value === 'empty') { + return -1; + } + if (b.value === 'empty') { + return 1; + } + return a.value.localeCompare(b.value); +} + +/** + * This is the minimal icons set. + * So far it is computed from Reference line and Metric chart icons. + * Needs to consider annotation icons set too in the future. + */ + +export const sharedSetOfIcons: IconSet = [ + { + value: 'empty', + label: i18n.translate('visualizationUiComponents.iconSelect.noIconLabel', { + defaultMessage: 'None', + }), + }, + { + value: 'asterisk', + label: i18n.translate('visualizationUiComponents.iconSelect.asteriskIconLabel', { + defaultMessage: 'Asterisk', + }), + }, + { + value: 'bell', + label: i18n.translate('visualizationUiComponents.iconSelect.bellIconLabel', { + defaultMessage: 'Bell', + }), + }, + { + value: 'bolt', + label: i18n.translate('visualizationUiComponents.iconSelect.boltIconLabel', { + defaultMessage: 'Bolt', + }), + }, + { + value: 'bug', + label: i18n.translate('visualizationUiComponents.iconSelect.bugIconLabel', { + defaultMessage: 'Bug', + }), + }, + { + value: 'editorComment', + label: i18n.translate('visualizationUiComponents.iconSelect.commentIconLabel', { + defaultMessage: 'Comment', + }), + }, + { + value: 'alert', + label: i18n.translate('visualizationUiComponents.iconSelect.alertIconLabel', { + defaultMessage: 'Alert', + }), + }, + { + value: 'flag', + label: i18n.translate('visualizationUiComponents.iconSelect.flagIconLabel', { + defaultMessage: 'Flag', + }), + }, + { + value: 'tag', + label: i18n.translate('visualizationUiComponents.iconSelect.tagIconLabel', { + defaultMessage: 'Tag', + }), + }, +]; diff --git a/x-pack/plugins/lens/public/shared_components/icon_set.tsx b/x-pack/plugins/lens/public/shared_components/icon_set.tsx new file mode 100644 index 0000000000000..44e1a104822b1 --- /dev/null +++ b/x-pack/plugins/lens/public/shared_components/icon_set.tsx @@ -0,0 +1,70 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { i18n } from '@kbn/i18n'; +import type { AvailableReferenceLineIcon } from '@kbn/expression-xy-plugin/common'; +import type { AvailableMetricIcon } from '@kbn/expression-metric-vis-plugin/common'; +import { iconSortCriteria, type IconSet, sharedSetOfIcons } from '@kbn/visualization-ui-components'; + +export const referenceLineIconsSet: IconSet = sharedSetOfIcons; + +export const metricIconsSet: IconSet = [ + ...sharedSetOfIcons, + // use spread here to avoid to cast single entries + ...([ + { + value: 'sortUp', + label: i18n.translate('xpack.lens.metric.iconSelect.sortUpLabel', { + defaultMessage: 'Sort up', + }), + }, + { + value: 'sortDown', + label: i18n.translate('xpack.lens.metric.iconSelect.sortDownLabel', { + defaultMessage: 'Sort down', + }), + }, + { + value: 'compute', + label: i18n.translate('xpack.lens.metric.iconSelect.computeLabel', { + defaultMessage: 'Compute', + }), + }, + { + value: 'globe', + label: i18n.translate('xpack.lens.metric.iconSelect.globeLabel', { + defaultMessage: 'Globe', + }), + }, + { + value: 'temperature', + label: i18n.translate('xpack.lens.metric.iconSelect.temperatureLabel', { + defaultMessage: 'Temperature', + }), + }, + { + value: 'heart', + label: i18n.translate('xpack.lens.metric.iconSelect.heartLabel', { defaultMessage: 'Heart' }), + }, + { + value: 'mapMarker', + label: i18n.translate('xpack.lens.metric.iconSelect.mapMarkerLabel', { + defaultMessage: 'Map Marker', + }), + }, + { + value: 'pin', + label: i18n.translate('xpack.lens.metric.iconSelect.mapPinLabel', { + defaultMessage: 'Map Pin', + }), + }, + { + value: 'starEmpty', + label: i18n.translate('xpack.lens.metric.iconSelect.starLabel', { defaultMessage: 'Star' }), + }, + ] as const), +].sort(iconSortCriteria); diff --git a/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx b/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx index 2b6c1f4476006..78fcd67f36431 100644 --- a/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx +++ b/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx @@ -36,8 +36,8 @@ import type { VisualizationDimensionEditorProps } from '../../types'; import { defaultNumberPaletteParams, defaultPercentagePaletteParams } from './palette_config'; import { DEFAULT_MAX_COLUMNS, getDefaultColor, showingBar } from './visualization'; import { CollapseSetting } from '../../shared_components/collapse_setting'; -import { iconsSet } from './icon_set'; import { MetricVisualizationState } from './types'; +import { metricIconsSet } from '../../shared_components/icon_set'; export type SupportingVisType = 'none' | 'bar' | 'trendline'; @@ -350,7 +350,7 @@ function PrimaryMetricEditor(props: SubProps) { })} > { setState({ diff --git a/x-pack/plugins/lens/public/visualizations/metric/icon_set.ts b/x-pack/plugins/lens/public/visualizations/metric/icon_set.ts deleted file mode 100644 index 704c802f4826d..0000000000000 --- a/x-pack/plugins/lens/public/visualizations/metric/icon_set.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { i18n } from '@kbn/i18n'; -import { AvailableMetricIcon } from '@kbn/expression-metric-vis-plugin/common'; -import { type IconSet } from '@kbn/visualization-ui-components'; - -export const iconsSet: IconSet = [ - { - value: 'empty', - label: i18n.translate('xpack.lens.metric.iconSelect.noIconLabel', { - defaultMessage: 'None', - }), - }, - { - value: 'sortUp', - label: i18n.translate('xpack.lens.metric.iconSelect.sortUpLabel', { - defaultMessage: 'Sort up', - }), - }, - { - value: 'sortDown', - label: i18n.translate('xpack.lens.metric.iconSelect.sortDownLabel', { - defaultMessage: 'Sort down', - }), - }, - { - value: 'compute', - label: i18n.translate('xpack.lens.metric.iconSelect.computeLabel', { - defaultMessage: 'Compute', - }), - }, - { - value: 'globe', - label: i18n.translate('xpack.lens.metric.iconSelect.globeLabel', { - defaultMessage: 'Globe', - }), - }, - { - value: 'temperature', - label: i18n.translate('xpack.lens.metric.iconSelect.temperatureLabel', { - defaultMessage: 'Temperature', - }), - }, - { - value: 'asterisk', - label: i18n.translate('xpack.lens.metric.iconSelect.asteriskIconLabel', { - defaultMessage: 'Asterisk', - }), - }, - { - value: 'alert', - label: i18n.translate('xpack.lens.metric.iconSelect.alertIconLabel', { - defaultMessage: 'Alert', - }), - }, - { - value: 'bell', - label: i18n.translate('xpack.lens.metric.iconSelect.bellIconLabel', { - defaultMessage: 'Bell', - }), - }, - { - value: 'bolt', - label: i18n.translate('xpack.lens.metric.iconSelect.boltIconLabel', { - defaultMessage: 'Bolt', - }), - }, - { - value: 'bug', - label: i18n.translate('xpack.lens.metric.iconSelect.bugIconLabel', { - defaultMessage: 'Bug', - }), - }, - - { - value: 'editorComment', - label: i18n.translate('xpack.lens.metric.iconSelect.commentIconLabel', { - defaultMessage: 'Comment', - }), - }, - { - value: 'flag', - label: i18n.translate('xpack.lens.metric.iconSelect.flagIconLabel', { - defaultMessage: 'Flag', - }), - }, - { - value: 'heart', - label: i18n.translate('xpack.lens.metric.iconSelect.heartLabel', { defaultMessage: 'Heart' }), - }, - { - value: 'mapMarker', - label: i18n.translate('xpack.lens.metric.iconSelect.mapMarkerLabel', { - defaultMessage: 'Map Marker', - }), - }, - { - value: 'pin', - label: i18n.translate('xpack.lens.metric.iconSelect.mapPinLabel', { - defaultMessage: 'Map Pin', - }), - }, - { - value: 'starEmpty', - label: i18n.translate('xpack.lens.metric.iconSelect.starLabel', { defaultMessage: 'Star' }), - }, - { - value: 'tag', - label: i18n.translate('xpack.lens.metric.iconSelect.tagIconLabel', { - defaultMessage: 'Tag', - }), - }, -]; diff --git a/x-pack/plugins/lens/public/visualizations/metric/to_expression.ts b/x-pack/plugins/lens/public/visualizations/metric/to_expression.ts index d0ff261653e1f..02292a4ddce0a 100644 --- a/x-pack/plugins/lens/public/visualizations/metric/to_expression.ts +++ b/x-pack/plugins/lens/public/visualizations/metric/to_expression.ts @@ -13,6 +13,7 @@ import type { import { buildExpression, buildExpressionFunction } from '@kbn/expressions-plugin/common'; import { Ast } from '@kbn/interpreter'; import { LayoutDirection } from '@elastic/charts'; +import { hasIcon } from '@kbn/visualization-ui-components'; import { CollapseArgs, CollapseFunction } from '../../../common/expressions'; import { CollapseExpressionFunction } from '../../../common/expressions/collapse/types'; import { DatasourceLayers } from '../../types'; @@ -155,7 +156,7 @@ export const toExpression = ( iconAlign: state.iconAlign ?? metricStateDefaults.iconAlign, valueFontSize: state.valueFontMode ?? metricStateDefaults.valueFontMode, color: state.color || getDefaultColor(state, isMetricNumeric), - icon: state.icon, + icon: hasIcon(state.icon) ? state.icon : undefined, palette: isMetricNumeric && state.palette?.params ? [ diff --git a/x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts b/x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts index ac32e125fc57d..e4011ca8431a3 100644 --- a/x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts +++ b/x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts @@ -318,9 +318,6 @@ describe('metric visualization', () => { "color": Array [ "static-color", ], - "icon": Array [ - "empty", - ], "iconAlign": Array [ "left", ], @@ -394,9 +391,6 @@ describe('metric visualization', () => { "color": Array [ "static-color", ], - "icon": Array [ - "empty", - ], "iconAlign": Array [ "left", ], diff --git a/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx b/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx index 758c0c8ca9035..81eebf770485f 100644 --- a/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx @@ -109,8 +109,6 @@ import { } from './visualization_helpers'; import { getAxesConfiguration, groupAxesByType } from './axes_configuration'; import type { XYByValueAnnotationLayerConfig, XYState } from './types'; -import { ReferenceLinePanel } from './xy_config_panel/reference_line_config_panel'; -import { AnnotationsPanel } from './xy_config_panel/annotations_config_panel'; import { defaultAnnotationLabel } from './annotations/helpers'; import { onDropForVisualization } from '../../editor_frame_service/editor_frame/config_panel/buttons/drop_targets_utils'; import { createAnnotationActions } from './annotations/actions'; @@ -130,6 +128,8 @@ import { XY_X_WRONG_DATA_TYPE, XY_Y_WRONG_DATA_TYPE, } from '../../user_messages_ids'; +import { AnnotationsPanel } from './xy_config_panel/annotations_config_panel/annotations_panel'; +import { ReferenceLinePanel } from './xy_config_panel/reference_line_config_panel/reference_line_panel'; const XY_ID = 'lnsXY'; diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/index.tsx b/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/index.tsx deleted file mode 100644 index bd63354936703..0000000000000 --- a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/index.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -export { AnnotationsPanel } from './annotations_panel'; diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/icon_set.ts b/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/icon_set.ts deleted file mode 100644 index 623e474d0d10b..0000000000000 --- a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/icon_set.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { i18n } from '@kbn/i18n'; -import { AvailableReferenceLineIcon } from '@kbn/expression-xy-plugin/common'; -import { type IconSet } from '@kbn/visualization-ui-components'; - -export const referenceLineIconsSet: IconSet = [ - { - value: 'empty', - label: i18n.translate('xpack.lens.xyChart.iconSelect.noIconLabel', { - defaultMessage: 'None', - }), - }, - { - value: 'asterisk', - label: i18n.translate('xpack.lens.xyChart.iconSelect.asteriskIconLabel', { - defaultMessage: 'Asterisk', - }), - }, - { - value: 'bell', - label: i18n.translate('xpack.lens.xyChart.iconSelect.bellIconLabel', { - defaultMessage: 'Bell', - }), - }, - { - value: 'bolt', - label: i18n.translate('xpack.lens.xyChart.iconSelect.boltIconLabel', { - defaultMessage: 'Bolt', - }), - }, - { - value: 'bug', - label: i18n.translate('xpack.lens.xyChart.iconSelect.bugIconLabel', { - defaultMessage: 'Bug', - }), - }, - { - value: 'editorComment', - label: i18n.translate('xpack.lens.xyChart.iconSelect.commentIconLabel', { - defaultMessage: 'Comment', - }), - }, - { - value: 'alert', - label: i18n.translate('xpack.lens.xyChart.iconSelect.alertIconLabel', { - defaultMessage: 'Alert', - }), - }, - { - value: 'flag', - label: i18n.translate('xpack.lens.xyChart.iconSelect.flagIconLabel', { - defaultMessage: 'Flag', - }), - }, - { - value: 'tag', - label: i18n.translate('xpack.lens.xyChart.iconSelect.tagIconLabel', { - defaultMessage: 'Tag', - }), - }, -]; diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/index.tsx b/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/index.tsx deleted file mode 100644 index 4297f7d35cd6c..0000000000000 --- a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/index.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -export { ReferenceLinePanel } from './reference_line_panel'; diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx b/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx index fa75cc530864c..cd9bb66443998 100644 --- a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx +++ b/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx @@ -17,6 +17,7 @@ import { TextDecorationSetting, } from '@kbn/visualization-ui-components'; import { useDebouncedValue } from '@kbn/visualization-utils'; +import { referenceLineIconsSet } from '../../../../shared_components/icon_set'; import type { VisualizationDimensionEditorProps } from '../../../../types'; import { State, XYState, XYReferenceLineLayerConfig, YConfig } from '../../types'; import { FormatFactory } from '../../../../../common/types'; @@ -25,7 +26,6 @@ import { updateLayer } from '..'; import { idPrefix } from '../dimension_editor'; import { isHorizontalChart } from '../../state_helpers'; import { MarkerDecorationPosition } from '../shared/marker_decoration_settings'; -import { referenceLineIconsSet } from './icon_set'; import { defaultReferenceLineColor } from '../../color_assignment'; export const ReferenceLinePanel = ( diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index ae1cd3466a70a..009909eccb1a0 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -25723,23 +25723,14 @@ "xpack.lens.metric.groupLabel": "Valeur d’objectif et unique", "xpack.lens.metric.headingLabel": "Valeur", "xpack.lens.metric.icon": "Décoration de l’icône", - "xpack.lens.metric.iconSelect.alertIconLabel": "Alerte", - "xpack.lens.metric.iconSelect.asteriskIconLabel": "Astérisque", - "xpack.lens.metric.iconSelect.bellIconLabel": "Cloche", - "xpack.lens.metric.iconSelect.boltIconLabel": "Éclair", - "xpack.lens.metric.iconSelect.bugIconLabel": "Bug", - "xpack.lens.metric.iconSelect.commentIconLabel": "Commentaire", "xpack.lens.metric.iconSelect.computeLabel": "Calcul", - "xpack.lens.metric.iconSelect.flagIconLabel": "Drapeau", "xpack.lens.metric.iconSelect.globeLabel": "Globe", "xpack.lens.metric.iconSelect.heartLabel": "Cœur", "xpack.lens.metric.iconSelect.mapMarkerLabel": "Repère", "xpack.lens.metric.iconSelect.mapPinLabel": "Punaise", - "xpack.lens.metric.iconSelect.noIconLabel": "Aucun", "xpack.lens.metric.iconSelect.sortDownLabel": "Tri décroissant", "xpack.lens.metric.iconSelect.sortUpLabel": "Tri croissant", "xpack.lens.metric.iconSelect.starLabel": "Étoile", - "xpack.lens.metric.iconSelect.tagIconLabel": "Balise", "xpack.lens.metric.iconSelect.temperatureLabel": "Température", "xpack.lens.metric.label": "Indicateur", "xpack.lens.metric.layerType.trendLine": "Courbe de tendance", @@ -26039,15 +26030,15 @@ "xpack.lens.xyChart.horizontalAxisLabel": "Axe horizontal", "xpack.lens.xyChart.horizontalLeftAxisLabel": "Axe supérieur horizontal", "xpack.lens.xyChart.horizontalRightAxisLabel": "Axe inférieur horizontal", - "xpack.lens.xyChart.iconSelect.alertIconLabel": "Alerte", - "xpack.lens.xyChart.iconSelect.asteriskIconLabel": "Astérisque", - "xpack.lens.xyChart.iconSelect.bellIconLabel": "Cloche", - "xpack.lens.xyChart.iconSelect.boltIconLabel": "Éclair", - "xpack.lens.xyChart.iconSelect.bugIconLabel": "Bug", - "xpack.lens.xyChart.iconSelect.commentIconLabel": "Commentaire", - "xpack.lens.xyChart.iconSelect.flagIconLabel": "Drapeau", - "xpack.lens.xyChart.iconSelect.noIconLabel": "Aucun", - "xpack.lens.xyChart.iconSelect.tagIconLabel": "Balise", + "visualizationUiComponents.iconSelect.alertIconLabel": "Alerte", + "visualizationUiComponents.iconSelect.asteriskIconLabel": "Astérisque", + "visualizationUiComponents.iconSelect.bellIconLabel": "Cloche", + "visualizationUiComponents.iconSelect.boltIconLabel": "Éclair", + "visualizationUiComponents.iconSelect.bugIconLabel": "Bug", + "visualizationUiComponents.iconSelect.commentIconLabel": "Commentaire", + "visualizationUiComponents.iconSelect.flagIconLabel": "Drapeau", + "visualizationUiComponents.iconSelect.noIconLabel": "Aucun", + "visualizationUiComponents.iconSelect.tagIconLabel": "Balise", "xpack.lens.xyChart.layerAnnotation": "Annotation", "xpack.lens.xyChart.layerAnnotationsIgnoreTitle": "Calques ignorant les filtres globaux", "xpack.lens.xyChart.layerAnnotationsLabel": "Annotations", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index ae562a1a8e79a..5ce966fe9cc31 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -25711,23 +25711,14 @@ "xpack.lens.metric.groupLabel": "目標値と単一の値", "xpack.lens.metric.headingLabel": "値", "xpack.lens.metric.icon": "アイコン装飾", - "xpack.lens.metric.iconSelect.alertIconLabel": "アラート", - "xpack.lens.metric.iconSelect.asteriskIconLabel": "アスタリスク", - "xpack.lens.metric.iconSelect.bellIconLabel": "ベル", - "xpack.lens.metric.iconSelect.boltIconLabel": "ボルト", - "xpack.lens.metric.iconSelect.bugIconLabel": "バグ", - "xpack.lens.metric.iconSelect.commentIconLabel": "コメント", "xpack.lens.metric.iconSelect.computeLabel": "演算", - "xpack.lens.metric.iconSelect.flagIconLabel": "旗", "xpack.lens.metric.iconSelect.globeLabel": "球", "xpack.lens.metric.iconSelect.heartLabel": "ハート", "xpack.lens.metric.iconSelect.mapMarkerLabel": "マップマーカー", "xpack.lens.metric.iconSelect.mapPinLabel": "マップピン", - "xpack.lens.metric.iconSelect.noIconLabel": "なし", "xpack.lens.metric.iconSelect.sortDownLabel": "降順で並べ替え", "xpack.lens.metric.iconSelect.sortUpLabel": "昇順で並べ替え", "xpack.lens.metric.iconSelect.starLabel": "星", - "xpack.lens.metric.iconSelect.tagIconLabel": "タグ", "xpack.lens.metric.iconSelect.temperatureLabel": "温度", "xpack.lens.metric.label": "メトリック", "xpack.lens.metric.layerType.trendLine": "トレンドライン", @@ -26028,15 +26019,15 @@ "xpack.lens.xyChart.horizontalAxisLabel": "横軸", "xpack.lens.xyChart.horizontalLeftAxisLabel": "横上軸", "xpack.lens.xyChart.horizontalRightAxisLabel": "横下軸", - "xpack.lens.xyChart.iconSelect.alertIconLabel": "アラート", - "xpack.lens.xyChart.iconSelect.asteriskIconLabel": "アスタリスク", - "xpack.lens.xyChart.iconSelect.bellIconLabel": "ベル", - "xpack.lens.xyChart.iconSelect.boltIconLabel": "ボルト", - "xpack.lens.xyChart.iconSelect.bugIconLabel": "バグ", - "xpack.lens.xyChart.iconSelect.commentIconLabel": "コメント", - "xpack.lens.xyChart.iconSelect.flagIconLabel": "旗", - "xpack.lens.xyChart.iconSelect.noIconLabel": "なし", - "xpack.lens.xyChart.iconSelect.tagIconLabel": "タグ", + "visualizationUiComponents.iconSelect.alertIconLabel": "アラート", + "visualizationUiComponents.iconSelect.asteriskIconLabel": "アスタリスク", + "visualizationUiComponents.iconSelect.bellIconLabel": "ベル", + "visualizationUiComponents.iconSelect.boltIconLabel": "ボルト", + "visualizationUiComponents.iconSelect.bugIconLabel": "バグ", + "visualizationUiComponents.iconSelect.commentIconLabel": "コメント", + "visualizationUiComponents.iconSelect.flagIconLabel": "旗", + "visualizationUiComponents.iconSelect.noIconLabel": "なし", + "visualizationUiComponents.iconSelect.tagIconLabel": "タグ", "xpack.lens.xyChart.layerAnnotation": "注釈", "xpack.lens.xyChart.layerAnnotationsIgnoreTitle": "グローバルフィルターを無視するレイヤー", "xpack.lens.xyChart.layerAnnotationsLabel": "注釈", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index aee5456710144..8c04a4c2a3f15 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -25743,23 +25743,14 @@ "xpack.lens.metric.groupLabel": "目标值和单值", "xpack.lens.metric.headingLabel": "值", "xpack.lens.metric.icon": "图标装饰", - "xpack.lens.metric.iconSelect.alertIconLabel": "告警", - "xpack.lens.metric.iconSelect.asteriskIconLabel": "星号", - "xpack.lens.metric.iconSelect.bellIconLabel": "钟铃", - "xpack.lens.metric.iconSelect.boltIconLabel": "闪电", - "xpack.lens.metric.iconSelect.bugIconLabel": "昆虫", - "xpack.lens.metric.iconSelect.commentIconLabel": "注释", "xpack.lens.metric.iconSelect.computeLabel": "计算", - "xpack.lens.metric.iconSelect.flagIconLabel": "旗帜", "xpack.lens.metric.iconSelect.globeLabel": "地球", "xpack.lens.metric.iconSelect.heartLabel": "心形", "xpack.lens.metric.iconSelect.mapMarkerLabel": "地图标记", "xpack.lens.metric.iconSelect.mapPinLabel": "地图图钉", - "xpack.lens.metric.iconSelect.noIconLabel": "无", "xpack.lens.metric.iconSelect.sortDownLabel": "向下排序", "xpack.lens.metric.iconSelect.sortUpLabel": "向上排序", "xpack.lens.metric.iconSelect.starLabel": "五角星", - "xpack.lens.metric.iconSelect.tagIconLabel": "标签", "xpack.lens.metric.iconSelect.temperatureLabel": "温度", "xpack.lens.metric.label": "指标", "xpack.lens.metric.layerType.trendLine": "趋势线", @@ -26060,15 +26051,15 @@ "xpack.lens.xyChart.horizontalAxisLabel": "水平轴", "xpack.lens.xyChart.horizontalLeftAxisLabel": "水平顶轴", "xpack.lens.xyChart.horizontalRightAxisLabel": "水平底轴", - "xpack.lens.xyChart.iconSelect.alertIconLabel": "告警", - "xpack.lens.xyChart.iconSelect.asteriskIconLabel": "星号", - "xpack.lens.xyChart.iconSelect.bellIconLabel": "钟铃", - "xpack.lens.xyChart.iconSelect.boltIconLabel": "闪电", - "xpack.lens.xyChart.iconSelect.bugIconLabel": "昆虫", - "xpack.lens.xyChart.iconSelect.commentIconLabel": "注释", - "xpack.lens.xyChart.iconSelect.flagIconLabel": "旗帜", - "xpack.lens.xyChart.iconSelect.noIconLabel": "无", - "xpack.lens.xyChart.iconSelect.tagIconLabel": "标签", + "visualizationUiComponents.iconSelect.alertIconLabel": "告警", + "visualizationUiComponents.iconSelect.asteriskIconLabel": "星号", + "visualizationUiComponents.iconSelect.bellIconLabel": "钟铃", + "visualizationUiComponents.iconSelect.boltIconLabel": "闪电", + "visualizationUiComponents.iconSelect.bugIconLabel": "昆虫", + "visualizationUiComponents.iconSelect.commentIconLabel": "注释", + "visualizationUiComponents.iconSelect.flagIconLabel": "旗帜", + "visualizationUiComponents.iconSelect.noIconLabel": "无", + "visualizationUiComponents.iconSelect.tagIconLabel": "标签", "xpack.lens.xyChart.layerAnnotation": "标注", "xpack.lens.xyChart.layerAnnotationsIgnoreTitle": "忽略全局筛选的图层", "xpack.lens.xyChart.layerAnnotationsLabel": "标注",