@elastic/eui 75.1.2 → 76.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/accessibility/skip_link/skip_link.js +11 -42
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/badge_group/badge_group.styles.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/button/_button_content_deprecated.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/control_bar/control_bar.a11y.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +89 -94
- package/es/components/datagrid/body/data_grid_cell.js +34 -24
- package/es/components/datagrid/body/{data_grid_footer_row.js → footer/data_grid_footer_row.js} +22 -15
- package/es/components/datagrid/body/footer/index.js +9 -0
- package/es/components/datagrid/body/footer/use_data_grid_footer.js +60 -0
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +24 -5
- package/es/components/datagrid/body/header/data_grid_header_cell.js +23 -17
- package/es/components/datagrid/body/header/data_grid_header_row.js +52 -17
- package/es/components/datagrid/body/header/index.js +2 -1
- package/es/components/datagrid/body/header/use_data_grid_header.js +66 -0
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +52 -17
- package/es/components/datagrid/utils/in_memory.js +17 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +2 -2
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/expression/expression.js +3 -3
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/form/field_number/field_number.js +1 -1
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo.js +1 -1
- package/es/components/icon/assets/pivot.js +41 -0
- package/es/components/icon/assets/{crossInACircleFilled.js → warning.js} +5 -3
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/es/components/icon/icon_map.js +2 -2
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +2 -2
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/steps/step_number.js +1 -1
- package/es/components/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/text/text.styles.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/eui.d.ts +98 -36
- package/i18ntokens.json +16 -16
- package/lib/components/accessibility/skip_link/skip_link.js +10 -41
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/badge_group/badge_group.styles.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/button/_button_content_deprecated.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/control_bar/control_bar.a11y.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +88 -95
- package/lib/components/datagrid/body/data_grid_cell.js +34 -24
- package/lib/components/datagrid/body/{data_grid_footer_row.js → footer/data_grid_footer_row.js} +21 -15
- package/lib/components/datagrid/body/footer/index.js +21 -0
- package/lib/components/datagrid/body/footer/use_data_grid_footer.js +71 -0
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +25 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +23 -17
- package/lib/components/datagrid/body/header/data_grid_header_row.js +52 -17
- package/lib/components/datagrid/body/header/index.js +9 -1
- package/lib/components/datagrid/body/header/use_data_grid_header.js +79 -0
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +52 -17
- package/lib/components/datagrid/utils/in_memory.js +17 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +2 -2
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/expression/expression.js +3 -3
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/form/field_number/field_number.js +1 -1
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo.js +1 -1
- package/lib/components/icon/assets/pivot.js +48 -0
- package/lib/components/icon/assets/{crossInACircleFilled.js → warning.js} +5 -3
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/lib/components/icon/icon_map.js +2 -2
- package/lib/components/icon/svgs/pivot.svg +3 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +2 -2
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/steps/step_number.js +1 -1
- package/lib/components/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +11 -31
- package/optimize/es/components/badge/badge_group/badge_group.styles.js +1 -1
- package/optimize/es/components/control_bar/control_bar.a11y.js +1 -1
- package/optimize/es/components/datagrid/body/data_grid_body.js +37 -66
- package/optimize/es/components/datagrid/body/{data_grid_footer_row.js → footer/data_grid_footer_row.js} +22 -15
- package/optimize/es/components/datagrid/body/footer/index.js +9 -0
- package/optimize/es/components/datagrid/body/footer/use_data_grid_footer.js +45 -0
- package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +7 -3
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +6 -5
- package/optimize/es/components/datagrid/body/header/index.js +2 -1
- package/optimize/es/components/datagrid/body/header/use_data_grid_header.js +51 -0
- package/optimize/es/components/date_picker/date_picker_range.js +1 -1
- package/optimize/es/components/expression/expression.js +1 -1
- package/optimize/es/components/icon/assets/pivot.js +37 -0
- package/optimize/es/components/icon/assets/{crossInACircleFilled.js → warning.js} +5 -3
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +2 -2
- package/optimize/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/optimize/es/components/steps/step_number.js +1 -1
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +10 -31
- package/optimize/lib/components/badge/badge_group/badge_group.styles.js +1 -1
- package/optimize/lib/components/control_bar/control_bar.a11y.js +1 -1
- package/optimize/lib/components/datagrid/body/data_grid_body.js +36 -68
- package/{test-env/components/datagrid/body → optimize/lib/components/datagrid/body/footer}/data_grid_footer_row.js +21 -15
- package/optimize/lib/components/datagrid/body/footer/index.js +21 -0
- package/optimize/lib/components/datagrid/body/footer/use_data_grid_footer.js +60 -0
- package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +8 -3
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -5
- package/optimize/lib/components/datagrid/body/header/index.js +9 -1
- package/optimize/lib/components/datagrid/body/header/use_data_grid_header.js +69 -0
- package/optimize/lib/components/date_picker/date_picker_range.js +1 -1
- package/optimize/lib/components/expression/expression.js +1 -1
- package/optimize/lib/components/icon/assets/pivot.js +47 -0
- package/optimize/lib/components/icon/assets/{crossInACircleFilled.js → warning.js} +5 -3
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +2 -2
- package/optimize/lib/components/icon/svgs/pivot.svg +3 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/optimize/lib/components/steps/step_number.js +1 -1
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/package.json +1 -1
- package/src/components/datagrid/_index.scss +1 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +10 -31
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/badge_group/badge_group.styles.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/button/_button_content_deprecated.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/control_bar/control_bar.a11y.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +88 -85
- package/test-env/components/datagrid/body/data_grid_cell.js +34 -24
- package/{optimize/lib/components/datagrid/body → test-env/components/datagrid/body/footer}/data_grid_footer_row.js +21 -15
- package/test-env/components/datagrid/body/footer/index.js +21 -0
- package/test-env/components/datagrid/body/footer/use_data_grid_footer.js +60 -0
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +25 -5
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +23 -17
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +52 -17
- package/test-env/components/datagrid/body/header/index.js +9 -1
- package/test-env/components/datagrid/body/header/use_data_grid_header.js +69 -0
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +52 -17
- package/test-env/components/datagrid/utils/in_memory.js +17 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +2 -2
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/expression/expression.js +3 -3
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/form/field_number/field_number.js +1 -1
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo.js +1 -1
- package/test-env/components/icon/assets/pivot.js +47 -0
- package/test-env/components/icon/assets/{crossInACircleFilled.js → warning.js} +5 -3
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +2 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +2 -2
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/steps/step_number.js +1 -1
- package/test-env/components/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/icon/svgs/crossInACircleFilled.svg +0 -3
- package/optimize/lib/components/icon/svgs/crossInACircleFilled.svg +0 -3
- /package/lib/components/icon/svgs/{alert.svg → warning.svg} +0 -0
- /package/optimize/lib/components/icon/svgs/{alert.svg → warning.svg} +0 -0
- /package/src/components/datagrid/body/{_data_grid_footer_row.scss → footer/_data_grid_footer_row.scss} +0 -0
|
@@ -11,9 +11,14 @@ var _excluded = ["leadingControlColumns", "trailingControlColumns", "columns", "
|
|
|
11
11
|
*/
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import React, { forwardRef, memo, useContext } from 'react';
|
|
14
|
-
import { EuiDataGridCell } from '
|
|
15
|
-
import { DataGridCellPopoverContext } from '
|
|
14
|
+
import { EuiDataGridCell } from '../data_grid_cell';
|
|
15
|
+
import { DataGridCellPopoverContext } from '../data_grid_cell_popover';
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
|
|
18
|
+
var renderEmpty = function renderEmpty() {
|
|
19
|
+
return null;
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
var EuiDataGridFooterRow = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
18
23
|
var leadingControlColumns = _ref.leadingControlColumns,
|
|
19
24
|
trailingControlColumns = _ref.trailingControlColumns,
|
|
@@ -40,7 +45,6 @@ var EuiDataGridFooterRow = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (
|
|
|
40
45
|
rowIndex: rowIndex,
|
|
41
46
|
visibleRowIndex: visibleRowIndex,
|
|
42
47
|
interactiveCellId: interactiveCellId,
|
|
43
|
-
isExpandable: true,
|
|
44
48
|
popoverContext: popoverContext
|
|
45
49
|
};
|
|
46
50
|
return ___EmotionJSX("div", _extends({
|
|
@@ -50,16 +54,17 @@ var EuiDataGridFooterRow = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (
|
|
|
50
54
|
"data-test-subj": dataTestSubj
|
|
51
55
|
}, rest), leadingControlColumns.map(function (_ref2, i) {
|
|
52
56
|
var id = _ref2.id,
|
|
53
|
-
width = _ref2.width
|
|
54
|
-
|
|
57
|
+
width = _ref2.width,
|
|
58
|
+
footerCellRender = _ref2.footerCellRender,
|
|
59
|
+
footerCellProps = _ref2.footerCellProps;
|
|
60
|
+
return ___EmotionJSX(EuiDataGridCell, _extends({}, footerCellProps, sharedCellProps, {
|
|
55
61
|
key: "".concat(id, "-").concat(rowIndex),
|
|
56
62
|
colIndex: i,
|
|
57
63
|
columnId: id,
|
|
58
64
|
width: width,
|
|
59
|
-
renderCellValue:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
className: "euiDataGridFooterCell euiDataGridRowCell--controlColumn"
|
|
65
|
+
renderCellValue: footerCellRender !== null && footerCellRender !== void 0 ? footerCellRender : renderEmpty,
|
|
66
|
+
isExpandable: false,
|
|
67
|
+
className: classnames('euiDataGridFooterCell', 'euiDataGridRowCell--controlColumn', footerCellProps === null || footerCellProps === void 0 ? void 0 : footerCellProps.className)
|
|
63
68
|
}));
|
|
64
69
|
}), columns.map(function (_ref3, i) {
|
|
65
70
|
var id = _ref3.id;
|
|
@@ -75,21 +80,23 @@ var EuiDataGridFooterRow = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (
|
|
|
75
80
|
width: width || undefined,
|
|
76
81
|
renderCellValue: renderCellValue,
|
|
77
82
|
renderCellPopover: renderCellPopover,
|
|
83
|
+
isExpandable: true,
|
|
78
84
|
className: "euiDataGridFooterCell"
|
|
79
85
|
}));
|
|
80
86
|
}), trailingControlColumns.map(function (_ref4, i) {
|
|
81
87
|
var id = _ref4.id,
|
|
82
|
-
width = _ref4.width
|
|
88
|
+
width = _ref4.width,
|
|
89
|
+
footerCellRender = _ref4.footerCellRender,
|
|
90
|
+
footerCellProps = _ref4.footerCellProps;
|
|
83
91
|
var colIndex = i + columns.length + leadingControlColumns.length;
|
|
84
|
-
return ___EmotionJSX(EuiDataGridCell, _extends({}, sharedCellProps, {
|
|
92
|
+
return ___EmotionJSX(EuiDataGridCell, _extends({}, footerCellProps, sharedCellProps, {
|
|
85
93
|
key: "".concat(id, "-").concat(rowIndex),
|
|
86
94
|
colIndex: colIndex,
|
|
87
95
|
columnId: id,
|
|
88
96
|
width: width,
|
|
89
|
-
renderCellValue:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
className: "euiDataGridFooterCell euiDataGridRowCell--controlColumn"
|
|
97
|
+
renderCellValue: footerCellRender !== null && footerCellRender !== void 0 ? footerCellRender : renderEmpty,
|
|
98
|
+
isExpandable: false,
|
|
99
|
+
className: classnames('euiDataGridFooterCell', 'euiDataGridRowCell--controlColumn', footerCellProps === null || footerCellProps === void 0 ? void 0 : footerCellProps.className)
|
|
93
100
|
}));
|
|
94
101
|
}));
|
|
95
102
|
}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export { EuiDataGridFooterRow } from './data_grid_footer_row';
|
|
9
|
+
export { useDataGridFooter } from './use_data_grid_footer';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
var _excluded = ["renderFooterCellValue"];
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
8
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
9
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
10
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
11
|
+
* Side Public License, v 1.
|
|
12
|
+
*/
|
|
13
|
+
import React, { useState, useMemo } from 'react';
|
|
14
|
+
import { useResizeObserver } from '../../../observer/resize_observer';
|
|
15
|
+
import { EuiDataGridFooterRow } from './data_grid_footer_row';
|
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* DRY out setting up the grid footer and its refs & observers
|
|
20
|
+
*/
|
|
21
|
+
export var useDataGridFooter = function useDataGridFooter(props) {
|
|
22
|
+
var _useState = useState(null),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
footerRowRef = _useState2[0],
|
|
25
|
+
setFooterRowRef = _useState2[1];
|
|
26
|
+
|
|
27
|
+
var _useResizeObserver = useResizeObserver(footerRowRef, 'height'),
|
|
28
|
+
footerRowHeight = _useResizeObserver.height;
|
|
29
|
+
|
|
30
|
+
var footerRow = useMemo(function () {
|
|
31
|
+
var renderFooterCellValue = props.renderFooterCellValue,
|
|
32
|
+
footerProps = _objectWithoutProperties(props, _excluded);
|
|
33
|
+
|
|
34
|
+
if (renderFooterCellValue == null) return null;
|
|
35
|
+
return ___EmotionJSX(EuiDataGridFooterRow, _extends({
|
|
36
|
+
ref: setFooterRowRef,
|
|
37
|
+
renderCellValue: renderFooterCellValue
|
|
38
|
+
}, footerProps));
|
|
39
|
+
}, Object.values(props)); // eslint-disable-line react-hooks/exhaustive-deps
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
footerRow: footerRow,
|
|
43
|
+
footerRowHeight: footerRowHeight
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
|
|
1
3
|
/*
|
|
2
4
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
5
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -6,6 +8,7 @@
|
|
|
6
8
|
* Side Public License, v 1.
|
|
7
9
|
*/
|
|
8
10
|
import React from 'react';
|
|
11
|
+
import classNames from 'classnames';
|
|
9
12
|
import { EuiDataGridHeaderCellWrapper } from './data_grid_header_cell_wrapper';
|
|
10
13
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
14
|
export var EuiDataGridControlHeaderCell = function EuiDataGridControlHeaderCell(_ref) {
|
|
@@ -13,15 +16,16 @@ export var EuiDataGridControlHeaderCell = function EuiDataGridControlHeaderCell(
|
|
|
13
16
|
index = _ref.index,
|
|
14
17
|
headerIsInteractive = _ref.headerIsInteractive;
|
|
15
18
|
var HeaderCellRender = controlColumn.headerCellRender,
|
|
19
|
+
headerCellProps = controlColumn.headerCellProps,
|
|
16
20
|
width = controlColumn.width,
|
|
17
21
|
id = controlColumn.id;
|
|
18
|
-
return ___EmotionJSX(EuiDataGridHeaderCellWrapper, {
|
|
19
|
-
className:
|
|
22
|
+
return ___EmotionJSX(EuiDataGridHeaderCellWrapper, _extends({}, headerCellProps, {
|
|
23
|
+
className: classNames('euiDataGridHeaderCell--controlColumn', headerCellProps === null || headerCellProps === void 0 ? void 0 : headerCellProps.className),
|
|
20
24
|
id: id,
|
|
21
25
|
index: index,
|
|
22
26
|
width: width,
|
|
23
27
|
headerIsInteractive: headerIsInteractive
|
|
24
|
-
}, ___EmotionJSX("div", {
|
|
28
|
+
}), ___EmotionJSX("div", {
|
|
25
29
|
className: "euiDataGridHeaderCell__content"
|
|
26
30
|
}, ___EmotionJSX(HeaderCellRender, null)));
|
|
27
31
|
};
|
|
@@ -39,10 +39,11 @@ export var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
39
39
|
headerIsInteractive = _ref.headerIsInteractive;
|
|
40
40
|
var id = column.id,
|
|
41
41
|
display = column.display,
|
|
42
|
-
displayAsText = column.displayAsText
|
|
42
|
+
displayAsText = column.displayAsText,
|
|
43
|
+
displayHeaderCellProps = column.displayHeaderCellProps;
|
|
43
44
|
var width = columnWidths[id] || defaultColumnWidth;
|
|
44
45
|
var columnType = schema[id] ? schema[id].columnType : null;
|
|
45
|
-
var classes = classnames(_defineProperty({}, "euiDataGridHeaderCell--".concat(columnType), columnType));
|
|
46
|
+
var classes = classnames(_defineProperty({}, "euiDataGridHeaderCell--".concat(columnType), columnType), displayHeaderCellProps === null || displayHeaderCellProps === void 0 ? void 0 : displayHeaderCellProps.className);
|
|
46
47
|
|
|
47
48
|
var _useContext = useContext(DataGridFocusContext),
|
|
48
49
|
setFocusedCell = _useContext.setFocusedCell,
|
|
@@ -88,14 +89,14 @@ export var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
88
89
|
prefix: 'euiDataGridCellHeader',
|
|
89
90
|
suffix: 'actions'
|
|
90
91
|
});
|
|
91
|
-
return ___EmotionJSX(EuiDataGridHeaderCellWrapper, {
|
|
92
|
+
return ___EmotionJSX(EuiDataGridHeaderCellWrapper, _extends({}, displayHeaderCellProps, {
|
|
93
|
+
className: classes,
|
|
92
94
|
id: id,
|
|
93
95
|
index: index,
|
|
94
96
|
width: width,
|
|
95
97
|
headerIsInteractive: headerIsInteractive,
|
|
96
|
-
className: classes,
|
|
97
98
|
"aria-sort": ariaSort
|
|
98
|
-
}, column.isResizable !== false && width != null ? ___EmotionJSX(EuiDataGridColumnResizer, {
|
|
99
|
+
}), column.isResizable !== false && width != null ? ___EmotionJSX(EuiDataGridColumnResizer, {
|
|
99
100
|
columnId: id,
|
|
100
101
|
columnWidth: width,
|
|
101
102
|
setColumnWidth: setColumnWidth
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
|
-
export { EuiDataGridHeaderRow } from './data_grid_header_row';
|
|
8
|
+
export { EuiDataGridHeaderRow } from './data_grid_header_row';
|
|
9
|
+
export { useDataGridHeader } from './use_data_grid_header';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["handleHeaderMutation"];
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
8
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
9
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
10
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
11
|
+
* Side Public License, v 1.
|
|
12
|
+
*/
|
|
13
|
+
import React, { useState, useMemo } from 'react';
|
|
14
|
+
import { useMutationObserver } from '../../../observer/mutation_observer';
|
|
15
|
+
import { useResizeObserver } from '../../../observer/resize_observer';
|
|
16
|
+
import { useHeaderFocusWorkaround } from '../../utils/focus';
|
|
17
|
+
import { EuiDataGridHeaderRow } from './data_grid_header_row';
|
|
18
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* DRY out setting up the grid header and its refs & observers
|
|
22
|
+
*/
|
|
23
|
+
export var useDataGridHeader = function useDataGridHeader(_ref) {
|
|
24
|
+
var handleHeaderMutation = _ref.handleHeaderMutation,
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
|
|
27
|
+
var _useState = useState(null),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
headerRowRef = _useState2[0],
|
|
30
|
+
setHeaderRowRef = _useState2[1];
|
|
31
|
+
|
|
32
|
+
useMutationObserver(headerRowRef, handleHeaderMutation, {
|
|
33
|
+
subtree: true,
|
|
34
|
+
childList: true
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var _useResizeObserver = useResizeObserver(headerRowRef, 'height'),
|
|
38
|
+
headerRowHeight = _useResizeObserver.height;
|
|
39
|
+
|
|
40
|
+
var headerRow = useMemo(function () {
|
|
41
|
+
return ___EmotionJSX(EuiDataGridHeaderRow, _extends({
|
|
42
|
+
ref: setHeaderRowRef
|
|
43
|
+
}, props));
|
|
44
|
+
}, Object.values(props)); // eslint-disable-line react-hooks/exhaustive-deps
|
|
45
|
+
|
|
46
|
+
useHeaderFocusWorkaround(props.headerIsInteractive);
|
|
47
|
+
return {
|
|
48
|
+
headerRow: headerRow,
|
|
49
|
+
headerRowHeight: headerRowHeight
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -87,7 +87,7 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
87
87
|
className: "euiDatePickerRange__delimeter"
|
|
88
88
|
}, ___EmotionJSX(EuiIcon, {
|
|
89
89
|
color: isInvalid ? 'danger' : 'subdued',
|
|
90
|
-
type: isInvalid ? '
|
|
90
|
+
type: isInvalid ? 'warning' : 'sortRight'
|
|
91
91
|
}));
|
|
92
92
|
|
|
93
93
|
return ___EmotionJSX("div", _extends({
|
|
@@ -62,7 +62,7 @@ export var EuiExpression = function EuiExpression(_ref) {
|
|
|
62
62
|
}, descriptionStyle) : undefined;
|
|
63
63
|
var invalidIcon = isInvalid ? ___EmotionJSX(EuiIcon, {
|
|
64
64
|
className: "euiExpression__icon",
|
|
65
|
-
type: "
|
|
65
|
+
type: "warning",
|
|
66
66
|
css: cssIconStyles,
|
|
67
67
|
color: calculatedColor
|
|
68
68
|
}) : undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
+
|
|
16
|
+
var EuiIconPivot = function EuiIconPivot(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
fill: "none",
|
|
26
|
+
viewBox: "0 0 16 16",
|
|
27
|
+
"aria-labelledby": titleId
|
|
28
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
29
|
+
id: titleId
|
|
30
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M2.89 13.847L11.239 5.5a.522.522 0 00-.737-.737L2.154 13.11a.522.522 0 00.738.738zM14 6.696a.522.522 0 11-1.043 0v-3.13a.522.522 0 00-.522-.523h-3.13a.522.522 0 110-1.043h3.13C13.299 2 14 2.7 14 3.565v3.13z",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export var icon = EuiIconPivot;
|
|
@@ -13,7 +13,7 @@ var _excluded = ["title", "titleId"];
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var EuiIconWarning = function EuiIconWarning(_ref) {
|
|
17
17
|
var title = _ref.title,
|
|
18
18
|
titleId = _ref.titleId,
|
|
19
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -27,8 +27,10 @@ var EuiIconCrossInACircleFilled = function EuiIconCrossInACircleFilled(_ref) {
|
|
|
27
27
|
}, props), title ? ___EmotionJSX("title", {
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
-
d: "M8.
|
|
30
|
+
d: "M8.55 9.502l.35-3.507a.905.905 0 10-1.8 0l.35 3.507a.552.552 0 001.1 0zM9 12a1 1 0 11-2 0 1 1 0 012 0z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
d: "M8.864 1.496a1 1 0 00-1.728 0l-7 12A1 1 0 001 15h14a1 1 0 00.864-1.504l-7-12zM1 14L8 2l7 12H1z"
|
|
31
33
|
}));
|
|
32
34
|
};
|
|
33
35
|
|
|
34
|
-
export var icon =
|
|
36
|
+
export var icon = EuiIconWarning;
|
|
@@ -11,7 +11,7 @@ import { EuiIcon } from './icon';
|
|
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
12
12
|
describe('EuiIcons', function () {
|
|
13
13
|
describe('Automated accessibility check for glyph icons', function () {
|
|
14
|
-
var GlyphIcons = ['accessibility', 'aggregate', '
|
|
14
|
+
var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
|
|
15
15
|
|
|
16
16
|
var GlyphGrid = function GlyphGrid() {
|
|
17
17
|
return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
|
|
@@ -11,7 +11,6 @@ export var typeToPathMap = {
|
|
|
11
11
|
advancedSettingsApp: 'app_advanced_settings',
|
|
12
12
|
agentApp: 'app_fleet',
|
|
13
13
|
aggregate: 'aggregate',
|
|
14
|
-
alert: 'alert',
|
|
15
14
|
analyzeEvent: 'analyzeEvent',
|
|
16
15
|
annotation: 'annotation',
|
|
17
16
|
apmApp: 'app_apm',
|
|
@@ -72,7 +71,6 @@ export var typeToPathMap = {
|
|
|
72
71
|
createSingleMetricJob: 'ml_create_single_metric_job',
|
|
73
72
|
cross: 'cross',
|
|
74
73
|
crossClusterReplicationApp: 'app_cross_cluster_replication',
|
|
75
|
-
crossInACircleFilled: 'crossInACircleFilled',
|
|
76
74
|
crosshairs: 'crosshairs',
|
|
77
75
|
currency: 'currency',
|
|
78
76
|
cut: 'cut',
|
|
@@ -314,6 +312,7 @@ export var typeToPathMap = {
|
|
|
314
312
|
pin: 'pin',
|
|
315
313
|
pinFilled: 'pin_filled',
|
|
316
314
|
pipelineApp: 'app_pipeline',
|
|
315
|
+
pivot: 'pivot',
|
|
317
316
|
play: 'play',
|
|
318
317
|
playFilled: 'playFilled',
|
|
319
318
|
plus: 'plus',
|
|
@@ -415,6 +414,7 @@ export var typeToPathMap = {
|
|
|
415
414
|
visVega: 'vis_vega',
|
|
416
415
|
visVisualBuilder: 'vis_visual_builder',
|
|
417
416
|
visualizeApp: 'app_visualize',
|
|
417
|
+
warning: 'warning',
|
|
418
418
|
watchesApp: 'app_watches',
|
|
419
419
|
wordWrap: 'wordWrap',
|
|
420
420
|
wordWrapDisabled: 'wordWrapDisabled',
|
|
@@ -114,7 +114,7 @@ export var EuiMarkdownEditorFooter = /*#__PURE__*/forwardRef(function (props, re
|
|
|
114
114
|
if (errors && errors.length) {
|
|
115
115
|
errorsButton = ___EmotionJSX(EuiPopover, {
|
|
116
116
|
button: ___EmotionJSX(EuiButtonEmpty, {
|
|
117
|
-
iconType: "
|
|
117
|
+
iconType: "error",
|
|
118
118
|
size: "s",
|
|
119
119
|
color: "danger",
|
|
120
120
|
"aria-label": ariaLabels.showSyntaxErrors,
|
|
@@ -78,7 +78,7 @@ export var EuiStepNumber = function EuiStepNumber(_ref) {
|
|
|
78
78
|
var cssIconStyles = [contentStyles.euiStepNumber__icon, contentStyles[status]];
|
|
79
79
|
var iconTypeMap = {
|
|
80
80
|
danger: 'cross',
|
|
81
|
-
warning: '
|
|
81
|
+
warning: 'warning',
|
|
82
82
|
complete: 'check'
|
|
83
83
|
};
|
|
84
84
|
content = ___EmotionJSX(EuiIcon, {
|
|
@@ -53,7 +53,7 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
|
|
|
53
53
|
var blockQuoteBorderWidth = mathWithUnits(fontSize, function (x) {
|
|
54
54
|
return x / 4;
|
|
55
55
|
});
|
|
56
|
-
return "\n font-size: ".concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n\n h1 {\n font-size: ").concat(headings.h1.fontSize, ";\n line-height: ").concat(headings.h1.lineHeight, ";\n }\n h1:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n\n h2 {\n font-size: ").concat(headings.h2.fontSize, ";\n line-height: ").concat(headings.h2.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h3 {\n font-size: ").concat(headings.h3.fontSize, ";\n line-height: ").concat(headings.h3.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h4 {\n font-size: ").concat(headings.h4.fontSize, ";\n line-height: ").concat(headings.h4.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h5 {\n font-size: ").concat(headings.h5.fontSize, ";\n line-height: ").concat(headings.h5.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h6 {\n font-size: ").concat(headings.h6.fontSize, ";\n line-height: ").concat(headings.h6.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n p,\n
|
|
56
|
+
return "\n font-size: ".concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n\n h1 {\n font-size: ").concat(headings.h1.fontSize, ";\n line-height: ").concat(headings.h1.lineHeight, ";\n }\n h1:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n\n h2 {\n font-size: ").concat(headings.h2.fontSize, ";\n line-height: ").concat(headings.h2.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h3 {\n font-size: ").concat(headings.h3.fontSize, ";\n line-height: ").concat(headings.h3.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h4 {\n font-size: ").concat(headings.h4.fontSize, ";\n line-height: ").concat(headings.h4.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h5 {\n font-size: ").concat(headings.h5.fontSize, ";\n line-height: ").concat(headings.h5.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n h6 {\n font-size: ").concat(headings.h6.fontSize, ";\n line-height: ").concat(headings.h6.lineHeight, ";\n\n &:not(:first-child) {\n ").concat(logicalCSS('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat(logicalCSS('margin-bottom', headingMarginBottom), "\n }\n }\n\n p,\n dl,\n blockquote,\n img,\n pre,\n > ul,\n > ol {\n ").concat(logicalCSS('margin-bottom', lineHeightSize), "\n }\n\n ul,\n ol {\n ").concat(logicalCSS('margin-left', lineHeightSize), "\n }\n\n // The styles of the nested ordered lists follow the style of GitHub\n // which is commonly used in Markdown or MDX formatting.\n\n ol ol,\n ul ol {\n list-style-type: lower-roman;\n }\n\n ul ul ol,\n ul ol ol,\n ol ul ol,\n ol ol ol {\n list-style-type: lower-alpha;\n }\n \n blockquote {\n font-size: ").concat(fontSize, ";\n ").concat(logicalShorthandCSS('padding', "0 ".concat(fontSize)), "\n ").concat(logicalCSS('border-left-width', blockQuoteBorderWidth), "\n ").concat(logicalCSS('margin-bottom', fontSize), "\n }\n\n dd + dt {\n ").concat(logicalCSS('margin-top', fontSize), "\n }\n\n dt,\n .eui-definitionListReverse dd {\n font-size: ").concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n }\n\n .eui-definitionListReverse dt {\n font-size: ").concat(euiFontSize(euiThemeContext, 'xs', options).fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n }\n\n small {\n font-size: ").concat(euiFontSize(euiThemeContext, 's', options).fontSize, ";\n }\n\n pre:not(.euiCodeBlock__pre) {\n padding: ").concat(lineHeightSize, ";\n }\n\n code:not(.euiCode):not(.euiCodeBlock__code) {\n font-size: .9em; // 90% of parent font size\n }\n ").concat( // when textSize is 'm', the 'kbd' element gets a line between the text and the border-bottom
|
|
57
57
|
_customScale === 'm' ? "\n kbd {\n ".concat(logicalCSS('padding-bottom', euiTheme.size.xs), "\n // ensures when only one character the shape looks like a square\n ").concat(logicalCSS('min-width', euiTheme.size.l), "\n ").concat(logicalTextAlignCSS('center'), "\n }\n \n kbd::after {\n content: '';\n ").concat(logicalCSS('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.text)), "\n position: absolute;\n ").concat(logicalCSS('bottom', euiTheme.size.xxs), "\n ").concat(logicalCSS('left', 0), "\n ").concat(logicalCSS('width', '100%'), "\n }") : '', "\n ");
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
@@ -11,8 +11,6 @@ exports.POSITIONS = exports.EuiSkipLink = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
|
|
16
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -56,37 +54,16 @@ var EuiSkipLink = function EuiSkipLink(_ref) {
|
|
|
56
54
|
var styles = (0, _skip_link.euiSkipLinkStyles)(euiTheme);
|
|
57
55
|
var classes = (0, _classnames.default)('euiSkipLink', className);
|
|
58
56
|
var cssStyles = [styles.euiSkipLink, position !== 'static' ? styles[position] : undefined];
|
|
57
|
+
var onClick = (0, _react.useCallback)(function (e) {
|
|
58
|
+
var destinationEl = null; // Check if the destination ID is valid
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
destinationEl = _useState2[0],
|
|
63
|
-
setDestinationEl = _useState2[1];
|
|
64
|
-
|
|
65
|
-
var _useState3 = (0, _react.useState)(true),
|
|
66
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
67
|
-
hasValidId = _useState4[0],
|
|
68
|
-
setHasValidId = _useState4[1];
|
|
69
|
-
|
|
70
|
-
(0, _react.useEffect)(function () {
|
|
71
|
-
var idEl = document.getElementById(destinationId);
|
|
60
|
+
destinationEl = document.getElementById(destinationId);
|
|
61
|
+
var hasValidId = !!destinationEl; // Check the fallback destination if not
|
|
72
62
|
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
setDestinationEl(idEl);
|
|
76
|
-
return;
|
|
63
|
+
if (!destinationEl && fallbackDestination) {
|
|
64
|
+
destinationEl = document.querySelector(fallbackDestination);
|
|
77
65
|
}
|
|
78
66
|
|
|
79
|
-
setHasValidId(false); // If no valid element via ID is available, use the fallback query selectors
|
|
80
|
-
|
|
81
|
-
if (fallbackDestination) {
|
|
82
|
-
var fallbackEl = document.querySelector(fallbackDestination);
|
|
83
|
-
|
|
84
|
-
if (fallbackEl) {
|
|
85
|
-
setDestinationEl(fallbackEl);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}, [destinationId, fallbackDestination]);
|
|
89
|
-
var onClick = (0, _react.useCallback)(function (e) {
|
|
90
67
|
if ((overrideLinkBehavior || !hasValidId) && destinationEl) {
|
|
91
68
|
e.preventDefault(); // Scroll to the top of the destination content only if it's ~mostly out of view
|
|
92
69
|
|
|
@@ -101,7 +78,9 @@ var EuiSkipLink = function EuiSkipLink(_ref) {
|
|
|
101
78
|
if (!(0, _tabbable.isTabbable)(destinationEl)) {
|
|
102
79
|
destinationEl.tabIndex = -1;
|
|
103
80
|
destinationEl.addEventListener('blur', function () {
|
|
104
|
-
|
|
81
|
+
var _destinationEl;
|
|
82
|
+
|
|
83
|
+
return (_destinationEl = destinationEl) === null || _destinationEl === void 0 ? void 0 : _destinationEl.removeAttribute('tabindex');
|
|
105
84
|
}, {
|
|
106
85
|
once: true
|
|
107
86
|
});
|
|
@@ -113,7 +92,7 @@ var EuiSkipLink = function EuiSkipLink(_ref) {
|
|
|
113
92
|
}
|
|
114
93
|
|
|
115
94
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(e);
|
|
116
|
-
}, [overrideLinkBehavior,
|
|
95
|
+
}, [overrideLinkBehavior, destinationId, fallbackDestination, _onClick]);
|
|
117
96
|
return (0, _react2.jsx)(_screen_reader_only.EuiScreenReaderOnly, {
|
|
118
97
|
showOnFocus: true
|
|
119
98
|
}, (0, _react2.jsx)(_button.EuiButton, (0, _extends2.default)({
|
|
@@ -19,7 +19,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
19
19
|
var euiBadgeGroupStyles = function euiBadgeGroupStyles(_ref) {
|
|
20
20
|
var euiTheme = _ref.euiTheme;
|
|
21
21
|
return {
|
|
22
|
-
euiBadgeGroup: /*#__PURE__*/(0, _react.css)("display:inline-flex;flex-wrap:wrap;", (0, _global_styling.logicalCSS)('max-width', '100%'), ".euiBadge{", (0, _global_styling.logicalCSS)('margin-left', 0), ";};label:euiBadgeGroup;"),
|
|
22
|
+
euiBadgeGroup: /*#__PURE__*/(0, _react.css)("display:inline-flex;flex-wrap:wrap;", (0, _global_styling.logicalCSS)('max-width', '100%'), ".euiBadge+.euiBadge{", (0, _global_styling.logicalCSS)('margin-left', 0), ";};label:euiBadgeGroup;"),
|
|
23
23
|
// Gutter sizes
|
|
24
24
|
none: /*#__PURE__*/(0, _react.css)(";label:none;"),
|
|
25
25
|
s: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.s, ";;label:s;"),
|