@elastic/eui 116.1.0-snapshot.1779110362015 → 116.2.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/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +9 -6
- package/es/components/basic_table/in_memory_table.js +4 -4
- 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_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/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- 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/context_menu/context_menu_item.js +1 -1
- package/es/components/context_menu/context_menu_panel_title.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +2 -2
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/flyout/flyout_menu.js +2 -2
- package/es/components/flyout/manager/flyout_child.js +1 -1
- package/es/components/flyout/manager/flyout_managed.js +1 -1
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_button/form_control_button.js +1 -1
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.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/form/text_area/text_area.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/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/significant_events.js +39 -0
- 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 +3 -0
- 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/list_item_layout/_list_item_layout.styles.js +1 -1
- 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 +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/outside_click_detector/outside_click_detector.js +71 -108
- 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/table/sticky_scrollbar/index.js +9 -0
- package/es/components/table/sticky_scrollbar/sticky_scrollbar.js +141 -0
- package/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +27 -0
- package/es/components/table/table.js +22 -5
- package/es/components/table/table_header_cell.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 +47 -15
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +9 -6
- package/lib/components/basic_table/in_memory_table.js +4 -4
- 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_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/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- 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/context_menu/context_menu_item.js +1 -1
- package/lib/components/context_menu/context_menu_panel_title.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/flyout/flyout_menu.js +2 -2
- package/lib/components/flyout/manager/flyout_child.js +1 -1
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_button/form_control_button.js +1 -1
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.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/form/text_area/text_area.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/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/significant_events.js +46 -0
- 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 +5 -0
- package/lib/components/icon/svgs/significant_events.svg +11 -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/list_item_layout/_list_item_layout.styles.js +1 -1
- 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 +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/outside_click_detector/outside_click_detector.js +69 -106
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.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/table/sticky_scrollbar/index.js +12 -0
- package/lib/components/table/sticky_scrollbar/sticky_scrollbar.js +148 -0
- package/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/lib/components/table/table.js +25 -5
- package/lib/components/table/table_header_cell.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/basic_table/basic_table.js +5 -2
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +2 -2
- package/optimize/es/components/icon/assets/significant_events.js +38 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +3 -0
- package/optimize/es/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/optimize/es/components/outside_click_detector/outside_click_detector.js +70 -104
- package/optimize/es/components/table/sticky_scrollbar/index.js +9 -0
- package/optimize/es/components/table/sticky_scrollbar/sticky_scrollbar.js +136 -0
- package/optimize/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +27 -0
- package/optimize/es/components/table/table.js +12 -5
- package/optimize/lib/components/basic_table/basic_table.js +5 -2
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/lib/components/icon/assets/significant_events.js +46 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +5 -0
- package/optimize/lib/components/icon/svgs/significant_events.svg +11 -0
- package/optimize/lib/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/optimize/lib/components/outside_click_detector/outside_click_detector.js +69 -103
- package/optimize/lib/components/table/sticky_scrollbar/index.js +12 -0
- package/optimize/lib/components/table/sticky_scrollbar/sticky_scrollbar.js +146 -0
- package/optimize/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/optimize/lib/components/table/table.js +15 -5
- package/package.json +4 -6
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +9 -6
- package/test-env/components/basic_table/in_memory_table.js +4 -4
- 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_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/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- 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/context_menu/context_menu_item.js +1 -1
- package/test-env/components/context_menu/context_menu_panel_title.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/flyout/flyout_menu.js +2 -2
- package/test-env/components/flyout/manager/flyout_child.js +1 -1
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_button/form_control_button.js +1 -1
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.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/form/text_area/text_area.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/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/significant_events.js +46 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +5 -0
- 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/list_item_layout/_list_item_layout.styles.js +1 -1
- 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 +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/outside_click_detector/outside_click_detector.js +70 -104
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.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/table/sticky_scrollbar/index.js +12 -0
- package/test-env/components/table/sticky_scrollbar/sticky_scrollbar.js +146 -0
- package/test-env/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/test-env/components/table/table.js +25 -5
- package/test-env/components/table/table_header_cell.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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconSignificantEvents = function EuiIconSignificantEvents(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M8.5 15h-1v-3h1v3ZM4.354 12.354l-1.5 1.5-.708-.707 1.5-1.5.708.707ZM13.854 13.146l-.707.707-1.5-1.5.707-.707 1.5 1.5Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
d: "M10 5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h4Zm-4 5h4V6H6v4Z",
|
|
41
|
+
clipRule: "evenodd"
|
|
42
|
+
}), (0, _react2.jsx)("path", {
|
|
43
|
+
d: "M4.005 8.495h-3v-1h3v1ZM15.005 8.495h-3v-1h3v1ZM4.354 3.646l-.708.708-1.5-1.5.708-.708 1.5 1.5ZM13.854 2.854l-1.5 1.5-.707-.708 1.5-1.5.707.708ZM8.5 4h-1V1h1v3Z"
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
var icon = exports.icon = EuiIconSignificantEvents;
|
|
@@ -18,7 +18,7 @@ var _react2 = require("@emotion/react");
|
|
|
18
18
|
|
|
19
19
|
describe('EuiIcons', function () {
|
|
20
20
|
describe('Automated accessibility check for glyph icons', function () {
|
|
21
|
-
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', 'info', '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', 'question', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'sparkles', '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', 'timelineWithArrow', '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'];
|
|
21
|
+
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', 'info', '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', 'question', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'significantEvents', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'sparkles', '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', 'timelineWithArrow', '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'];
|
|
22
22
|
var GlyphGrid = function GlyphGrid() {
|
|
23
23
|
return (0, _react2.jsx)("div", null, GlyphIcons.map(function (glyph) {
|
|
24
24
|
return (0, _react2.jsx)(_icon.EuiIcon, {
|
|
@@ -2685,6 +2685,11 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
2685
2685
|
return _interopRequireWildcard(require('./assets/share'));
|
|
2686
2686
|
});
|
|
2687
2687
|
},
|
|
2688
|
+
significantEvents: function significantEvents() {
|
|
2689
|
+
return Promise.resolve().then(function () {
|
|
2690
|
+
return _interopRequireWildcard(require('./assets/significant_events'));
|
|
2691
|
+
});
|
|
2692
|
+
},
|
|
2688
2693
|
singleMetricViewer: function singleMetricViewer() {
|
|
2689
2694
|
return Promise.resolve().then(function () {
|
|
2690
2695
|
return _interopRequireWildcard(require('./assets/single_metric_viewer'));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.5 15H7.5V12H8.5V15Z"/>
|
|
3
|
+
<path d="M4.35352 12.3535L2.85352 13.8535L2.14648 13.1465L3.64648 11.6465L4.35352 12.3535Z"/>
|
|
4
|
+
<path d="M13.8535 13.1465L13.1465 13.8535L11.6465 12.3535L12.3535 11.6465L13.8535 13.1465Z"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 5C10.5523 5 11 5.44772 11 6V10C11 10.5523 10.5523 11 10 11H6C5.44772 11 5 10.5523 5 10V6C5 5.44772 5.44772 5 6 5H10ZM6 10H10V6H6V10Z"/>
|
|
6
|
+
<path d="M4.00488 8.49512H1.00488V7.49512H4.00488V8.49512Z"/>
|
|
7
|
+
<path d="M15.0049 8.49512H12.0049V7.49512H15.0049V8.49512Z"/>
|
|
8
|
+
<path d="M4.35352 3.64648L3.64648 4.35352L2.14648 2.85352L2.85352 2.14648L4.35352 3.64648Z"/>
|
|
9
|
+
<path d="M13.8535 2.85352L12.3535 4.35352L11.6465 3.64648L13.1465 2.14648L13.8535 2.85352Z"/>
|
|
10
|
+
<path d="M8.5 4H7.5V1H8.5V4Z"/>
|
|
11
|
+
</svg>
|
|
@@ -67,7 +67,7 @@ var euiListItemLayoutStyles = exports.euiListItemLayoutStyles = function euiList
|
|
|
67
67
|
euiListItemLayout: /*#__PURE__*/(0, _react.css)(listItemCommonStyles(euiThemeContext), " ", (0, _global_styling.logicalCSS)('padding-horizontal', spacing.horizontal), ";;label:euiListItemLayout;"),
|
|
68
68
|
euiListItemLayout__action: /*#__PURE__*/(0, _react.css)("display:flex;flex-grow:1;", (0, _global_styling.logicalCSS)('width', '100%'), " color:inherit;overflow:hidden;;label:euiListItemLayout__action;"),
|
|
69
69
|
euiListItemLayout__content: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " display:flex;align-items:center;gap:", spacing.horizontal, ";;label:euiListItemLayout__content;"),
|
|
70
|
-
euiListItemLayout__text: /*#__PURE__*/(0, _react.css)("flex-grow:1;", (0, _global_styling.logicalCSS)('padding-vertical', textPadding.vertical), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " text-align:start
|
|
70
|
+
euiListItemLayout__text: /*#__PURE__*/(0, _react.css)("flex-grow:1;", (0, _global_styling.logicalCSS)('padding-vertical', textPadding.vertical), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " text-align:start;.euiHealth{vertical-align:middle;}>*+*{", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.xxs), ";};label:euiListItemLayout__text;"),
|
|
71
71
|
textWrap: {
|
|
72
72
|
truncate: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), ";label:truncate;"),
|
|
73
73
|
wrap: /*#__PURE__*/(0, _react.css)(";label:wrap;")
|
|
@@ -5,126 +5,92 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiOutsideClickDetector = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
9
|
var _react = require("react");
|
|
15
10
|
var _accessibility = require("../../services/accessibility");
|
|
16
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
|
|
20
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
21
14
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
22
15
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
23
16
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
24
17
|
* Side Public License, v 1.
|
|
25
18
|
*/
|
|
26
|
-
var EuiOutsideClickDetector = exports.EuiOutsideClickDetector = /*#__PURE__*/function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// equivalent to a sequential, compound press and release of
|
|
50
|
-
// the pointing device (mouse, finger, stylus, etc.).
|
|
51
|
-
// A click event's target can be imprecise, as the value will be
|
|
52
|
-
// the closest common ancestor of the press (mousedown, touchstart)
|
|
53
|
-
// and release (mouseup, touchend) events (often <body />) if
|
|
54
|
-
// the the target of each event differs.
|
|
55
|
-
// We need the actual event targets to make the correct decisions
|
|
56
|
-
// about user intention. So, consider the down/start and up/end
|
|
57
|
-
// items below as the deconstruction of a click event.
|
|
58
|
-
(0, _defineProperty2.default)(_this, "id", void 0);
|
|
59
|
-
(0, _defineProperty2.default)(_this, "capturedDownIds", void 0);
|
|
60
|
-
(0, _defineProperty2.default)(_this, "onClickOutside", function (e) {
|
|
61
|
-
var _this$props = _this.props,
|
|
62
|
-
isDisabled = _this$props.isDisabled,
|
|
63
|
-
onOutsideClick = _this$props.onOutsideClick;
|
|
19
|
+
var EuiOutsideClickDetector = exports.EuiOutsideClickDetector = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
20
|
+
// the id is used to identify which EuiOutsideClickDetector
|
|
21
|
+
// is the source of a click event; as the click event bubbles
|
|
22
|
+
// up and reaches the click detector's child component the
|
|
23
|
+
// id value is stamped on the event. This id is inspected
|
|
24
|
+
// in the document's click handler, and if the id doesn't
|
|
25
|
+
// exist or doesn't match this detector's id, then trigger
|
|
26
|
+
// the outsideClick callback.
|
|
27
|
+
//
|
|
28
|
+
// Taking this approach instead of checking if the event's
|
|
29
|
+
// target element exists in this component's DOM sub-tree is
|
|
30
|
+
// necessary for handling clicks originating from children
|
|
31
|
+
// rendered through React's portals (EuiPortal). The id tracking
|
|
32
|
+
// works because React guarantees the event bubbles through the
|
|
33
|
+
// virtual DOM and executes EuiClickDetector's onClick handler,
|
|
34
|
+
// stamping the id even though the event originates outside
|
|
35
|
+
// this component's reified DOM tree.
|
|
36
|
+
var id = (0, _accessibility.useGeneratedHtmlId)();
|
|
37
|
+
var capturedDownIds = (0, _react.useRef)([]);
|
|
38
|
+
(0, _react.useEffect)(function () {
|
|
39
|
+
function onClickOutside(e) {
|
|
40
|
+
var isDisabled = props.isDisabled,
|
|
41
|
+
onOutsideClick = props.onOutsideClick;
|
|
64
42
|
if (isDisabled) {
|
|
65
|
-
|
|
43
|
+
capturedDownIds.current = [];
|
|
66
44
|
return;
|
|
67
45
|
}
|
|
68
46
|
var event = e;
|
|
69
|
-
if (event.euiGeneratedBy && event.euiGeneratedBy.includes(
|
|
70
|
-
|
|
47
|
+
if (event.euiGeneratedBy && event.euiGeneratedBy.includes(id) || capturedDownIds.current.includes(id)) {
|
|
48
|
+
capturedDownIds.current = [];
|
|
71
49
|
return;
|
|
72
50
|
}
|
|
73
|
-
|
|
51
|
+
capturedDownIds.current = [];
|
|
74
52
|
return onOutsideClick(event);
|
|
53
|
+
}
|
|
54
|
+
document.addEventListener('mouseup', onClickOutside);
|
|
55
|
+
document.addEventListener('touchend', onClickOutside);
|
|
56
|
+
return function () {
|
|
57
|
+
document.removeEventListener('mouseup', onClickOutside);
|
|
58
|
+
document.removeEventListener('touchend', onClickOutside);
|
|
59
|
+
};
|
|
60
|
+
}, [props.isDisabled, props.onOutsideClick]);
|
|
61
|
+
function onChildClick(event, cb) {
|
|
62
|
+
// to support nested click detectors, build an array
|
|
63
|
+
// of detector ids that have been encountered;
|
|
64
|
+
if (event.nativeEvent.hasOwnProperty('euiGeneratedBy')) {
|
|
65
|
+
event.nativeEvent.euiGeneratedBy.push(id);
|
|
66
|
+
} else {
|
|
67
|
+
event.nativeEvent.euiGeneratedBy = [id];
|
|
68
|
+
}
|
|
69
|
+
if (cb) cb(event);
|
|
70
|
+
}
|
|
71
|
+
function onChildMouseDown(event) {
|
|
72
|
+
onChildClick(event, function (e) {
|
|
73
|
+
var nativeEvent = e.nativeEvent;
|
|
74
|
+
capturedDownIds.current = nativeEvent.euiGeneratedBy;
|
|
75
|
+
if (props.onMouseDown) props.onMouseDown(e);
|
|
76
|
+
if (props.onTouchStart) props.onTouchStart(e);
|
|
75
77
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
} else {
|
|
82
|
-
event.nativeEvent.euiGeneratedBy = [_this.id];
|
|
83
|
-
}
|
|
84
|
-
if (cb) cb(event);
|
|
85
|
-
});
|
|
86
|
-
(0, _defineProperty2.default)(_this, "onChildMouseDown", function (event) {
|
|
87
|
-
_this.onChildClick(event, function (e) {
|
|
88
|
-
var nativeEvent = e.nativeEvent;
|
|
89
|
-
_this.capturedDownIds = nativeEvent.euiGeneratedBy;
|
|
90
|
-
if (_this.props.onMouseDown) _this.props.onMouseDown(e);
|
|
91
|
-
if (_this.props.onTouchStart) _this.props.onTouchStart(e);
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
(0, _defineProperty2.default)(_this, "onChildMouseUp", function (event) {
|
|
95
|
-
_this.onChildClick(event, function (e) {
|
|
96
|
-
if (_this.props.onMouseUp) _this.props.onMouseUp(e);
|
|
97
|
-
if (_this.props.onTouchEnd) _this.props.onTouchEnd(e);
|
|
98
|
-
});
|
|
78
|
+
}
|
|
79
|
+
function onChildMouseUp(event) {
|
|
80
|
+
onChildClick(event, function (e) {
|
|
81
|
+
if (props.onMouseUp) props.onMouseUp(e);
|
|
82
|
+
if (props.onTouchEnd) props.onTouchEnd(e);
|
|
99
83
|
});
|
|
100
|
-
_this.id = (0, _accessibility.htmlIdGenerator)()();
|
|
101
|
-
_this.capturedDownIds = [];
|
|
102
|
-
return _this;
|
|
103
84
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
key: "render",
|
|
119
|
-
value: function render() {
|
|
120
|
-
var props = _objectSpread(_objectSpread({}, this.props.children.props), {
|
|
121
|
-
onMouseDown: this.onChildMouseDown,
|
|
122
|
-
onTouchStart: this.onChildMouseDown,
|
|
123
|
-
onMouseUp: this.onChildMouseUp,
|
|
124
|
-
onTouchEnd: this.onChildMouseUp
|
|
125
|
-
});
|
|
126
|
-
var child = _react.Children.only(this.props.children);
|
|
127
|
-
return /*#__PURE__*/(0, _react.cloneElement)(child, props);
|
|
128
|
-
}
|
|
129
|
-
}]);
|
|
130
|
-
}(_react.Component);
|
|
85
|
+
var child = _react.Children.only(props.children);
|
|
86
|
+
var childProps = _objectSpread(_objectSpread({}, props.children.props), {}, {
|
|
87
|
+
onMouseDown: onChildMouseDown,
|
|
88
|
+
onTouchStart: onChildMouseDown,
|
|
89
|
+
onMouseUp: onChildMouseUp,
|
|
90
|
+
onTouchEnd: onChildMouseUp
|
|
91
|
+
}, ref ? {
|
|
92
|
+
ref: ref
|
|
93
|
+
} : {});
|
|
94
|
+
return /*#__PURE__*/(0, _react.cloneElement)(child, childProps);
|
|
95
|
+
});
|
|
96
|
+
EuiOutsideClickDetector.displayName = 'EuiOutsideClickDetector';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EuiTableStickyScrollbar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _sticky_scrollbar.EuiTableStickyScrollbar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _sticky_scrollbar = require("./sticky_scrollbar");
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.EuiTableStickyScrollbar = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _services = require("../../../services");
|
|
12
|
+
var _sticky_scrollbar = require("./sticky_scrollbar.styles");
|
|
13
|
+
var _react2 = require("@emotion/react");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
/*
|
|
17
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
18
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
19
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
20
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
|
+
* Side Public License, v 1.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var EuiTableStickyScrollbar = exports.EuiTableStickyScrollbar = function EuiTableStickyScrollbar(_ref) {
|
|
25
|
+
var tableWrapperRef = _ref.tableWrapperRef;
|
|
26
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_sticky_scrollbar.euiTableStickyScrollbarStyles);
|
|
27
|
+
var trackElementRef = (0, _react.useRef)(null);
|
|
28
|
+
var dragStartRef = (0, _react.useRef)(null);
|
|
29
|
+
var requestAnimationFramePendingRef = (0, _react.useRef)(false);
|
|
30
|
+
var _useState = (0, _react.useState)(false),
|
|
31
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
32
|
+
isActive = _useState2[0],
|
|
33
|
+
setIsActive = _useState2[1];
|
|
34
|
+
var _useState3 = (0, _react.useState)(false),
|
|
35
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
36
|
+
isHidden = _useState4[0],
|
|
37
|
+
setIsHidden = _useState4[1];
|
|
38
|
+
var updateTrack = (0, _react.useCallback)(function (element) {
|
|
39
|
+
var clientWidth = element.clientWidth,
|
|
40
|
+
scrollWidth = element.scrollWidth,
|
|
41
|
+
scrollLeft = element.scrollLeft;
|
|
42
|
+
if (!requestAnimationFramePendingRef.current) {
|
|
43
|
+
requestAnimationFramePendingRef.current = true;
|
|
44
|
+
requestAnimationFrame(function () {
|
|
45
|
+
var el = trackElementRef.current;
|
|
46
|
+
if (el) {
|
|
47
|
+
el.style.inlineSize = "".concat(clientWidth / scrollWidth * 100, "%");
|
|
48
|
+
el.style.marginInlineStart = "".concat(scrollLeft / scrollWidth * 100, "%");
|
|
49
|
+
}
|
|
50
|
+
requestAnimationFramePendingRef.current = false;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}, []);
|
|
54
|
+
var handleScroll = (0, _react.useCallback)(function (event) {
|
|
55
|
+
if (event.target) {
|
|
56
|
+
updateTrack(event.target);
|
|
57
|
+
}
|
|
58
|
+
}, [updateTrack]);
|
|
59
|
+
var handleResize = (0, _react.useCallback)(function (entries) {
|
|
60
|
+
var element = entries[0].target;
|
|
61
|
+
if (!element) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
updateTrack(element);
|
|
65
|
+
setIsActive(element.clientWidth < element.scrollWidth);
|
|
66
|
+
}, [updateTrack]);
|
|
67
|
+
var handleBottomCornerIntersection = (0, _react.useCallback)(function (entries) {
|
|
68
|
+
var entry = entries[0];
|
|
69
|
+
var element = entry.target;
|
|
70
|
+
if (!element) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
setIsHidden(!entry.isIntersecting);
|
|
74
|
+
}, []);
|
|
75
|
+
var handlePointerDown = (0, _react.useCallback)(function (event) {
|
|
76
|
+
var _el$scrollLeft;
|
|
77
|
+
var el = tableWrapperRef.current;
|
|
78
|
+
dragStartRef.current = {
|
|
79
|
+
x: event.clientX,
|
|
80
|
+
scrollLeft: (_el$scrollLeft = el === null || el === void 0 ? void 0 : el.scrollLeft) !== null && _el$scrollLeft !== void 0 ? _el$scrollLeft : 0
|
|
81
|
+
};
|
|
82
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
83
|
+
}, [tableWrapperRef]);
|
|
84
|
+
var handlePointerUp = (0, _react.useCallback)(function () {
|
|
85
|
+
dragStartRef.current = null;
|
|
86
|
+
}, [dragStartRef]);
|
|
87
|
+
var handlePointerMove = (0, _react.useCallback)(function (event) {
|
|
88
|
+
var el = tableWrapperRef.current;
|
|
89
|
+
if (!dragStartRef.current || !el) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
var diff = event.clientX - dragStartRef.current.x;
|
|
93
|
+
var ratio = el.scrollWidth / el.clientWidth;
|
|
94
|
+
el.scrollLeft = dragStartRef.current.scrollLeft + diff * ratio;
|
|
95
|
+
}, [tableWrapperRef]);
|
|
96
|
+
(0, _react.useEffect)(function () {
|
|
97
|
+
var element = tableWrapperRef.current;
|
|
98
|
+
if (!element) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
updateTrack(element);
|
|
102
|
+
element.addEventListener('scroll', handleScroll, {
|
|
103
|
+
passive: true
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// ResizeObserver is available in all supported browsers,
|
|
107
|
+
// but jsdom and jest don't provide a polyfill for it.
|
|
108
|
+
var resizeObserver;
|
|
109
|
+
if (typeof window.ResizeObserver !== 'undefined') {
|
|
110
|
+
resizeObserver = new ResizeObserver(handleResize);
|
|
111
|
+
resizeObserver.observe(element);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// IntersectionOserver is available in all supported browsers,
|
|
115
|
+
// but jsdom and jest don't provide a polyfill for it.
|
|
116
|
+
var intersectionObserver;
|
|
117
|
+
if (typeof window.IntersectionObserver !== 'undefined') {
|
|
118
|
+
intersectionObserver = new IntersectionObserver(handleBottomCornerIntersection, {
|
|
119
|
+
threshold: 0,
|
|
120
|
+
rootMargin: '-100% 0px 0px 0px'
|
|
121
|
+
});
|
|
122
|
+
intersectionObserver.observe(element);
|
|
123
|
+
}
|
|
124
|
+
return function () {
|
|
125
|
+
var _resizeObserver, _intersectionObserver;
|
|
126
|
+
element.removeEventListener('scroll', handleScroll);
|
|
127
|
+
(_resizeObserver = resizeObserver) === null || _resizeObserver === void 0 || _resizeObserver.disconnect();
|
|
128
|
+
(_intersectionObserver = intersectionObserver) === null || _intersectionObserver === void 0 || _intersectionObserver.disconnect();
|
|
129
|
+
};
|
|
130
|
+
}, [tableWrapperRef, updateTrack, handleResize, handleScroll, handleBottomCornerIntersection]);
|
|
131
|
+
if (!isActive) {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
return (0, _react2.jsx)("div", {
|
|
135
|
+
css: [styles.wrapper, isHidden && styles.wrapperHidden, ";label:EuiTableStickyScrollbar;"],
|
|
136
|
+
"data-test-subj": "euiTableStickyScrollbar",
|
|
137
|
+
"aria-hidden": true
|
|
138
|
+
}, (0, _react2.jsx)("div", {
|
|
139
|
+
css: styles.track,
|
|
140
|
+
ref: trackElementRef,
|
|
141
|
+
onPointerDown: handlePointerDown,
|
|
142
|
+
onPointerMove: handlePointerMove,
|
|
143
|
+
onPointerUp: handlePointerUp,
|
|
144
|
+
"data-test-subj": "euiTableStickyScrollbarTrack"
|
|
145
|
+
}));
|
|
146
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiTableStickyScrollbarStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _services = require("../../../services");
|
|
9
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "j6fg69-wrapperHidden",
|
|
18
|
+
styles: "display:none;label:wrapperHidden;"
|
|
19
|
+
} : {
|
|
20
|
+
name: "j6fg69-wrapperHidden",
|
|
21
|
+
styles: "display:none;label:wrapperHidden;",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
};
|
|
24
|
+
var euiTableStickyScrollbarStyles = exports.euiTableStickyScrollbarStyles = function euiTableStickyScrollbarStyles(_ref2) {
|
|
25
|
+
var euiTheme = _ref2.euiTheme;
|
|
26
|
+
return {
|
|
27
|
+
wrapper: /*#__PURE__*/(0, _react.css)("block-size:", euiTheme.size.base, ";padding:", euiTheme.size.xs, ";position:sticky;background:", euiTheme.components.scrollbarTrackColor, ";inset-block-end:var(--euiTableStickyScrollbarOffsetBottom, 0);z-index:var(--euiTableStickyScrollbarZIndex, 0);;label:wrapper;"),
|
|
28
|
+
wrapperHidden: _ref,
|
|
29
|
+
track: /*#__PURE__*/(0, _react.css)("block-size:100%;background:", (0, _services.transparentize)(euiTheme.colors.darkShade, 0.5), ";border-radius:", euiTheme.border.radius.small, ";;label:track;")
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.EuiTable = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
13
|
var _services = require("../../services");
|
|
13
14
|
var _responsive_context = require("./mobile/responsive_context");
|
|
@@ -16,8 +17,9 @@ var _table = require("./table.styles");
|
|
|
16
17
|
var _component_defaults = require("../provider/component_defaults");
|
|
17
18
|
var _global_styling = require("../../global_styling");
|
|
18
19
|
var _const = require("./const");
|
|
20
|
+
var _sticky_scrollbar = require("./sticky_scrollbar");
|
|
19
21
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _excluded = ["children", "className", "compressed", "tableLayout", "hasBackground", "responsiveBreakpoint", "scrollableInline"];
|
|
22
|
+
var _excluded = ["children", "className", "compressed", "tableLayout", "hasBackground", "responsiveBreakpoint", "scrollableInline", "stickyScrollbar"];
|
|
21
23
|
/*
|
|
22
24
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
23
25
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -25,6 +27,8 @@ var _excluded = ["children", "className", "compressed", "tableLayout", "hasBackg
|
|
|
25
27
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
26
28
|
* Side Public License, v 1.
|
|
27
29
|
*/
|
|
30
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
31
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
32
|
/**
|
|
29
33
|
* EuiTable is a low-level building block component used to render tabular data
|
|
30
34
|
* in a customized way.
|
|
@@ -47,14 +51,18 @@ var EuiTable = exports.EuiTable = function EuiTable(originalProps) {
|
|
|
47
51
|
responsiveBreakpoint = _usePropsWithComponen.responsiveBreakpoint,
|
|
48
52
|
_usePropsWithComponen4 = _usePropsWithComponen.scrollableInline,
|
|
49
53
|
scrollableInline = _usePropsWithComponen4 === void 0 ? false : _usePropsWithComponen4,
|
|
54
|
+
_usePropsWithComponen5 = _usePropsWithComponen.stickyScrollbar,
|
|
55
|
+
stickyScrollbar = _usePropsWithComponen5 === void 0 ? false : _usePropsWithComponen5,
|
|
50
56
|
rest = (0, _objectWithoutProperties2.default)(_usePropsWithComponen, _excluded);
|
|
57
|
+
var tableWrapperRef = (0, _react.useRef)(null);
|
|
51
58
|
var isResponsive = (0, _responsive_context.useIsEuiTableResponsive)(responsiveBreakpoint);
|
|
52
59
|
var classes = (0, _classnames.default)('euiTable', className);
|
|
53
60
|
var styles = (0, _services.useEuiMemoizedStyles)(_table.euiTableStyles);
|
|
54
61
|
var tableStyles = [styles.euiTable, scrollableInline && styles.euiTableScrollableInline, styles.layout[tableLayout], (!compressed || isResponsive) && styles.uncompressed, compressed && !isResponsive && styles.compressed, hasBackground && styles.hasBackground, isResponsive ? styles.mobile : styles.desktop];
|
|
55
62
|
var cssStyles = [(0, _global_styling.euiContainerCSS)('normal', _const.EUI_TABLE_CSS_CONTAINER_NAME, true), scrollableInline && styles.scrollableWrapper];
|
|
56
|
-
return (0, _react2.jsx)("div", {
|
|
57
|
-
css: cssStyles
|
|
63
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("div", {
|
|
64
|
+
css: cssStyles,
|
|
65
|
+
ref: tableWrapperRef
|
|
58
66
|
}, (0, _react2.jsx)("table", (0, _extends2.default)({
|
|
59
67
|
tabIndex: -1,
|
|
60
68
|
css: tableStyles,
|
|
@@ -65,5 +73,7 @@ var EuiTable = exports.EuiTable = function EuiTable(originalProps) {
|
|
|
65
73
|
value: {
|
|
66
74
|
hasBackground: hasBackground
|
|
67
75
|
}
|
|
68
|
-
}, children))))
|
|
76
|
+
}, children)))), scrollableInline && stickyScrollbar && (0, _react2.jsx)(_sticky_scrollbar.EuiTableStickyScrollbar, {
|
|
77
|
+
tableWrapperRef: tableWrapperRef
|
|
78
|
+
}));
|
|
69
79
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "116.
|
|
4
|
+
"version": "116.2.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"unist-util-visit": "^2.0.3",
|
|
88
88
|
"url-parse": "^1.5.10",
|
|
89
89
|
"use-sync-external-store": "^1.6.0",
|
|
90
|
-
"uuid": "^
|
|
90
|
+
"uuid": "^14.0.0",
|
|
91
91
|
"vfile": "^4.2.1"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
109
109
|
"@elastic/charts": "^64.1.0",
|
|
110
110
|
"@elastic/datemath": "^5.0.3",
|
|
111
|
-
"@elastic/eslint-plugin-eui": "2.13.0
|
|
111
|
+
"@elastic/eslint-plugin-eui": "2.13.0",
|
|
112
112
|
"@elastic/eui-theme-borealis": "8.0.0",
|
|
113
113
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
114
114
|
"@emotion/cache": "^11.11.0",
|
|
@@ -151,7 +151,6 @@
|
|
|
151
151
|
"@types/stylis": "^4.2.1",
|
|
152
152
|
"@types/testing-library__jest-dom": "^5.14.3",
|
|
153
153
|
"@types/url-parse": "^1.4.8",
|
|
154
|
-
"@types/uuid": "^8.3.0",
|
|
155
154
|
"@types/vfile-message": "^2.0.0",
|
|
156
155
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
157
156
|
"@typescript-eslint/parser": "^5.59.7",
|
|
@@ -273,6 +272,5 @@
|
|
|
273
272
|
],
|
|
274
273
|
"installConfig": {
|
|
275
274
|
"hoistingLimits": "workspaces"
|
|
276
|
-
}
|
|
277
|
-
"stableVersion": "116.1.0"
|
|
275
|
+
}
|
|
278
276
|
}
|