@elastic/eui 60.1.1 → 60.3.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/dist/eui_theme_dark.css +0 -5
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -5
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +1 -1
- package/es/components/accordion/accordion.js +10 -5
- 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 +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.js +2 -2
- 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/card/card_select.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/comment_list/comment.js +1 -1
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +37 -28
- package/es/components/datagrid/body/data_grid_cell.js +130 -56
- package/es/components/datagrid/body/header/data_grid_header_cell.js +100 -31
- package/es/components/datagrid/body/header/data_grid_header_row.js +27 -24
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +29 -24
- package/es/components/datagrid/utils/focus.js +19 -10
- package/es/components/datagrid/utils/in_memory.js +26 -23
- package/es/components/datagrid/utils/ref.js +24 -3
- 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/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 +9 -1
- package/es/components/header/header_logo.js +1 -1
- package/es/components/icon/assets/cluster.js +41 -0
- package/es/components/icon/assets/container.js +39 -0
- package/es/components/icon/assets/kubernetesNode.js +41 -0
- package/es/components/icon/assets/kubernetesPod.js +41 -0
- package/es/components/icon/assets/namespace.js +41 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +5 -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/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 +1 -1
- 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.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/page/page_template.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/popover/popover.js +14 -4
- package/es/components/selectable/selectable.js +2 -0
- package/es/components/selectable/selectable_list/selectable_list.js +3 -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/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.js +2 -0
- 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/token/token.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tour/tour.js +8 -0
- package/es/components/tour/tour_step.js +8 -0
- package/eui.d.ts +112 -21
- package/i18ntokens.json +49 -33
- package/lib/components/accessibility/skip_link/skip_link.js +1 -1
- package/lib/components/accordion/accordion.js +10 -5
- 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 +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.js +2 -2
- 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/card/card_select.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/comment_list/comment.js +1 -1
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +37 -28
- package/lib/components/datagrid/body/data_grid_cell.js +129 -55
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +105 -31
- package/lib/components/datagrid/body/header/data_grid_header_row.js +27 -24
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +29 -24
- package/lib/components/datagrid/utils/focus.js +19 -10
- package/lib/components/datagrid/utils/in_memory.js +26 -23
- package/lib/components/datagrid/utils/ref.js +24 -3
- 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/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 +9 -1
- package/lib/components/header/header_logo.js +1 -1
- package/lib/components/icon/assets/cluster.js +48 -0
- package/lib/components/icon/assets/container.js +46 -0
- package/lib/components/icon/assets/kubernetesNode.js +48 -0
- package/lib/components/icon/assets/kubernetesPod.js +48 -0
- package/lib/components/icon/assets/namespace.js +48 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +5 -0
- package/lib/components/icon/svgs/cluster.svg +3 -0
- package/lib/components/icon/svgs/container.svg +3 -0
- package/lib/components/icon/svgs/kubernetesNode.svg +3 -0
- package/lib/components/icon/svgs/kubernetesPod.svg +3 -0
- package/lib/components/icon/svgs/namespace.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/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 +1 -1
- 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.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/page/page_template.js +1 -1
- package/lib/components/popover/popover.js +14 -4
- package/lib/components/selectable/selectable.js +2 -0
- package/lib/components/selectable/selectable_list/selectable_list.js +3 -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/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.js +2 -0
- 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/token/token.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/optimize/es/components/accordion/accordion.js +10 -5
- package/optimize/es/components/datagrid/body/data_grid_body.js +10 -4
- package/optimize/es/components/datagrid/body/data_grid_cell.js +18 -9
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +74 -8
- package/optimize/es/components/datagrid/data_grid.js +2 -0
- package/optimize/es/components/datagrid/utils/focus.js +19 -10
- package/optimize/es/components/datagrid/utils/ref.js +24 -3
- package/optimize/es/components/icon/assets/cluster.js +37 -0
- package/optimize/es/components/icon/assets/container.js +35 -0
- package/optimize/es/components/icon/assets/kubernetesNode.js +37 -0
- package/optimize/es/components/icon/assets/kubernetesPod.js +37 -0
- package/optimize/es/components/icon/assets/namespace.js +37 -0
- package/optimize/es/components/icon/icon_map.js +5 -0
- package/optimize/es/components/popover/popover.js +6 -4
- package/optimize/es/components/selectable/selectable.js +2 -0
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +2 -0
- package/optimize/es/components/text/text.js +2 -0
- package/optimize/lib/components/accordion/accordion.js +8 -5
- package/optimize/lib/components/datagrid/body/data_grid_body.js +10 -4
- package/optimize/lib/components/datagrid/body/data_grid_cell.js +17 -8
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +79 -8
- package/optimize/lib/components/datagrid/data_grid.js +2 -0
- package/optimize/lib/components/datagrid/utils/focus.js +19 -10
- package/optimize/lib/components/datagrid/utils/ref.js +24 -3
- package/optimize/lib/components/icon/assets/cluster.js +47 -0
- package/optimize/lib/components/icon/assets/container.js +45 -0
- package/optimize/lib/components/icon/assets/kubernetesNode.js +47 -0
- package/optimize/lib/components/icon/assets/kubernetesPod.js +47 -0
- package/optimize/lib/components/icon/assets/namespace.js +47 -0
- package/optimize/lib/components/icon/icon_map.js +5 -0
- package/optimize/lib/components/icon/svgs/cluster.svg +3 -0
- package/optimize/lib/components/icon/svgs/container.svg +3 -0
- package/optimize/lib/components/icon/svgs/kubernetesNode.svg +3 -0
- package/optimize/lib/components/icon/svgs/kubernetesPod.svg +3 -0
- package/optimize/lib/components/icon/svgs/namespace.svg +3 -0
- package/optimize/lib/components/popover/popover.js +6 -4
- package/optimize/lib/components/selectable/selectable.js +2 -0
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +2 -0
- package/optimize/lib/components/text/text.js +2 -0
- package/package.json +3 -3
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +0 -9
- package/test-env/components/accessibility/skip_link/skip_link.js +1 -1
- package/test-env/components/accordion/accordion.js +8 -5
- 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 +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.js +2 -2
- 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/card/card_select.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 +1 -1
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +37 -28
- package/test-env/components/datagrid/body/data_grid_cell.js +129 -55
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +105 -31
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +27 -24
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +29 -24
- package/test-env/components/datagrid/utils/focus.js +19 -10
- package/test-env/components/datagrid/utils/in_memory.js +26 -23
- package/test-env/components/datagrid/utils/ref.js +24 -3
- 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/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 +9 -1
- package/test-env/components/header/header_logo.js +1 -1
- package/test-env/components/icon/assets/cluster.js +47 -0
- package/test-env/components/icon/assets/container.js +45 -0
- package/test-env/components/icon/assets/kubernetesNode.js +47 -0
- package/test-env/components/icon/assets/kubernetesPod.js +47 -0
- package/test-env/components/icon/assets/namespace.js +47 -0
- 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/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 +1 -1
- 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.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/page/page_template.js +1 -1
- package/test-env/components/popover/popover.js +14 -4
- package/test-env/components/selectable/selectable.js +2 -0
- package/test-env/components/selectable/selectable_list/selectable_list.js +3 -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/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.js +2 -0
- 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/token/token.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
|
@@ -41,6 +41,7 @@ export var EuiText = function EuiText(_ref) {
|
|
|
41
41
|
if (color) {
|
|
42
42
|
text = ___EmotionJSX(EuiTextColor, {
|
|
43
43
|
color: color,
|
|
44
|
+
className: classes,
|
|
44
45
|
cloneElement: true
|
|
45
46
|
}, text);
|
|
46
47
|
}
|
|
@@ -48,6 +49,7 @@ export var EuiText = function EuiText(_ref) {
|
|
|
48
49
|
if (textAlign) {
|
|
49
50
|
text = ___EmotionJSX(EuiTextAlign, {
|
|
50
51
|
textAlign: textAlign,
|
|
52
|
+
className: classes,
|
|
51
53
|
cloneElement: true
|
|
52
54
|
}, text);
|
|
53
55
|
}
|
|
@@ -120,6 +120,12 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
120
120
|
_this.childContent = node;
|
|
121
121
|
});
|
|
122
122
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "generatedId", (0, _services.htmlIdGenerator)()());
|
|
123
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "resizeRef", function () {});
|
|
124
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "observerRef", function (ref) {
|
|
125
|
+
_this.setChildContentRef(ref);
|
|
126
|
+
|
|
127
|
+
_this.resizeRef(ref);
|
|
128
|
+
});
|
|
123
129
|
return _this;
|
|
124
130
|
}
|
|
125
131
|
|
|
@@ -269,12 +275,9 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
269
275
|
}, (0, _react2.jsx)(_resize_observer.EuiResizeObserver, {
|
|
270
276
|
onResize: this.setChildContentHeight
|
|
271
277
|
}, function (resizeRef) {
|
|
278
|
+
_this2.resizeRef = resizeRef;
|
|
272
279
|
return (0, _react2.jsx)("div", {
|
|
273
|
-
ref:
|
|
274
|
-
_this2.setChildContentRef(_ref);
|
|
275
|
-
|
|
276
|
-
resizeRef(_ref);
|
|
277
|
-
}
|
|
280
|
+
ref: _this2.observerRef
|
|
278
281
|
}, (0, _react2.jsx)("div", {
|
|
279
282
|
className: childrenClasses,
|
|
280
283
|
css: cssChildrenStyles
|
|
@@ -82,7 +82,8 @@ var Cell = function Cell(_ref) {
|
|
|
82
82
|
schemaDetectors = data.schemaDetectors,
|
|
83
83
|
rowHeightsOptions = data.rowHeightsOptions,
|
|
84
84
|
rowHeightUtils = data.rowHeightUtils,
|
|
85
|
-
rowManager = data.rowManager
|
|
85
|
+
rowManager = data.rowManager,
|
|
86
|
+
pagination = data.pagination;
|
|
86
87
|
var popoverContext = (0, _react.useContext)(_data_grid_cell_popover.DataGridCellPopoverContext);
|
|
87
88
|
|
|
88
89
|
var _useContext = (0, _react.useContext)(DataGridWrapperRowsContext),
|
|
@@ -121,7 +122,8 @@ var Cell = function Cell(_ref) {
|
|
|
121
122
|
rowHeightUtils: rowHeightUtils,
|
|
122
123
|
setRowHeight: isFirstColumn ? setRowHeight : undefined,
|
|
123
124
|
rowManager: rowManager,
|
|
124
|
-
popoverContext: popoverContext
|
|
125
|
+
popoverContext: popoverContext,
|
|
126
|
+
pagination: pagination
|
|
125
127
|
};
|
|
126
128
|
|
|
127
129
|
if (isLeadingControlColumn) {
|
|
@@ -419,13 +421,16 @@ var EuiDataGridBody = function EuiDataGridBody(props) {
|
|
|
419
421
|
}
|
|
420
422
|
}, (0, _react2.jsx)(_reactWindow.VariableSizeGrid, (0, _extends2.default)({}, virtualizationOptions ? virtualizationOptions : {}, {
|
|
421
423
|
ref: gridRef,
|
|
424
|
+
className: (0, _classnames.default)('euiDataGrid__virtualized', virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : virtualizationOptions.className),
|
|
422
425
|
onItemsRendered: function onItemsRendered(itemsRendered) {
|
|
426
|
+
var _virtualizationOption;
|
|
427
|
+
|
|
423
428
|
gridItemsRendered.current = itemsRendered;
|
|
429
|
+
virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : (_virtualizationOption = virtualizationOptions.onItemsRendered) === null || _virtualizationOption === void 0 ? void 0 : _virtualizationOption.call(virtualizationOptions, itemsRendered);
|
|
424
430
|
},
|
|
425
431
|
innerElementType: InnerElement,
|
|
426
432
|
outerRef: outerGridRef,
|
|
427
433
|
innerRef: innerGridRef,
|
|
428
|
-
className: "euiDataGrid__virtualized",
|
|
429
434
|
columnCount: visibleColCount,
|
|
430
435
|
width: finalWidth,
|
|
431
436
|
columnWidth: getColumnWidth,
|
|
@@ -446,7 +451,8 @@ var EuiDataGridBody = function EuiDataGridBody(props) {
|
|
|
446
451
|
interactiveCellId: interactiveCellId,
|
|
447
452
|
rowHeightsOptions: rowHeightsOptions,
|
|
448
453
|
rowHeightUtils: rowHeightUtils,
|
|
449
|
-
rowManager: rowManager
|
|
454
|
+
rowManager: rowManager,
|
|
455
|
+
pagination: pagination
|
|
450
456
|
},
|
|
451
457
|
rowCount: _utils.IS_JEST_ENVIRONMENT || headerRowHeight > 0 ? visibleRowCount : 0
|
|
452
458
|
}), Cell), scrollBorderOverlay) : null;
|
|
@@ -55,8 +55,8 @@ var _utils = require("../../../utils");
|
|
|
55
55
|
|
|
56
56
|
var _react2 = require("@emotion/react");
|
|
57
57
|
|
|
58
|
-
var _excluded = ["renderCellValue", "column", "setCellContentsRef", "rowHeightsOptions", "rowIndex", "colIndex", "rowHeightUtils", "isDefinedHeight"],
|
|
59
|
-
_excluded2 = ["width", "popoverContext", "interactiveCellId", "columnType", "className", "column", "style", "rowHeightUtils", "rowHeightsOptions", "rowManager"],
|
|
58
|
+
var _excluded = ["renderCellValue", "column", "setCellContentsRef", "rowHeightsOptions", "rowIndex", "colIndex", "ariaRowIndex", "rowHeightUtils", "isDefinedHeight"],
|
|
59
|
+
_excluded2 = ["width", "popoverContext", "interactiveCellId", "columnType", "className", "column", "style", "rowHeightUtils", "rowHeightsOptions", "rowManager", "pagination"],
|
|
60
60
|
_excluded3 = ["isExpandable", "style", "className", "data-test-subj"];
|
|
61
61
|
|
|
62
62
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -78,15 +78,12 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
78
78
|
rowHeightsOptions = _ref.rowHeightsOptions,
|
|
79
79
|
rowIndex = _ref.rowIndex,
|
|
80
80
|
colIndex = _ref.colIndex,
|
|
81
|
+
ariaRowIndex = _ref.ariaRowIndex,
|
|
81
82
|
rowHeightUtils = _ref.rowHeightUtils,
|
|
82
83
|
isDefinedHeight = _ref.isDefinedHeight,
|
|
83
84
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
84
85
|
// React is more permissible than the TS types indicate
|
|
85
86
|
var CellElement = renderCellValue;
|
|
86
|
-
var positionText = (0, _i18n.useEuiI18n)('euiDataGridCell.position', 'Row: {row}; Column: {col}', {
|
|
87
|
-
row: rowIndex + 1,
|
|
88
|
-
col: colIndex + 1
|
|
89
|
-
});
|
|
90
87
|
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("div", {
|
|
91
88
|
ref: setCellContentsRef,
|
|
92
89
|
"data-datagrid-cellcontent": true,
|
|
@@ -98,7 +95,15 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
98
95
|
rowIndex: rowIndex,
|
|
99
96
|
colIndex: colIndex,
|
|
100
97
|
schema: (column === null || column === void 0 ? void 0 : column.schema) || rest.columnType
|
|
101
|
-
}, rest))), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", null,
|
|
98
|
+
}, rest))), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", null, '- ', (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
99
|
+
token: "euiDataGridCell.position",
|
|
100
|
+
default: "{columnId}, column {col}, row {row}",
|
|
101
|
+
values: {
|
|
102
|
+
columnId: (column === null || column === void 0 ? void 0 : column.displayAsText) || rest.columnId,
|
|
103
|
+
col: colIndex + 1,
|
|
104
|
+
row: ariaRowIndex
|
|
105
|
+
}
|
|
106
|
+
}))));
|
|
102
107
|
});
|
|
103
108
|
|
|
104
109
|
var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
@@ -478,6 +483,7 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
478
483
|
rowHeightUtils = _this$props8.rowHeightUtils,
|
|
479
484
|
rowHeightsOptions = _this$props8.rowHeightsOptions,
|
|
480
485
|
rowManager = _this$props8.rowManager,
|
|
486
|
+
pagination = _this$props8.pagination,
|
|
481
487
|
rest = (0, _objectWithoutProperties2.default)(_this$props8, _excluded2);
|
|
482
488
|
var rowIndex = rest.rowIndex,
|
|
483
489
|
visibleRowIndex = rest.visibleRowIndex,
|
|
@@ -486,6 +492,7 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
486
492
|
var popoverIsOpen = this.isPopoverOpen();
|
|
487
493
|
var showCellActions = this.state.isFocused || this.state.isEntered || this.state.enableInteractions || popoverIsOpen;
|
|
488
494
|
var cellClasses = (0, _classnames.default)('euiDataGridRowCell', (_classNames = {}, (0, _defineProperty2.default)(_classNames, "euiDataGridRowCell--".concat(columnType), columnType), (0, _defineProperty2.default)(_classNames, 'euiDataGridRowCell--open', popoverIsOpen), _classNames), className);
|
|
495
|
+
var ariaRowIndex = pagination ? visibleRowIndex + 1 + pagination.pageSize * pagination.pageIndex : visibleRowIndex + 1;
|
|
489
496
|
var _this$state$cellProps2 = this.state.cellProps,
|
|
490
497
|
_ = _this$state$cellProps2.isExpandable,
|
|
491
498
|
cellPropsStyle = _this$state$cellProps2.style,
|
|
@@ -593,7 +600,8 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
593
600
|
setCellContentsRef: this.setCellContentsRef,
|
|
594
601
|
rowHeightsOptions: rowHeightsOptions,
|
|
595
602
|
rowHeightUtils: rowHeightUtils,
|
|
596
|
-
isDefinedHeight: isDefinedHeight
|
|
603
|
+
isDefinedHeight: isDefinedHeight,
|
|
604
|
+
ariaRowIndex: ariaRowIndex
|
|
597
605
|
});
|
|
598
606
|
|
|
599
607
|
var anchorClass = 'euiDataGridRowCell__expandFlex';
|
|
@@ -639,6 +647,7 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
639
647
|
|
|
640
648
|
var content = (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
641
649
|
role: "gridcell",
|
|
650
|
+
"aria-rowindex": ariaRowIndex,
|
|
642
651
|
tabIndex: this.state.isFocused && !this.state.disableCellTabIndex ? 0 : -1,
|
|
643
652
|
ref: this.cellRef
|
|
644
653
|
}, cellProps, {
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.EuiDataGridHeaderCell = void 0;
|
|
10
|
+
exports.usePopoverArrowNavigation = exports.EuiDataGridHeaderCell = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -19,6 +19,10 @@ var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
21
|
|
|
22
|
+
var _tabbable = require("tabbable");
|
|
23
|
+
|
|
24
|
+
var _services = require("../../../../services");
|
|
25
|
+
|
|
22
26
|
var _accessibility = require("../../../../services/accessibility");
|
|
23
27
|
|
|
24
28
|
var _accessibility2 = require("../../../accessibility");
|
|
@@ -119,6 +123,7 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
119
123
|
isPopoverOpen = _useState2[0],
|
|
120
124
|
setIsPopoverOpen = _useState2[1];
|
|
121
125
|
|
|
126
|
+
var popoverArrowNavigationProps = usePopoverArrowNavigation();
|
|
122
127
|
var columnActions = (0, _column_actions.getColumnActions)({
|
|
123
128
|
column: column,
|
|
124
129
|
columns: columns,
|
|
@@ -154,9 +159,11 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
154
159
|
}) : null, sortString && (0, _react2.jsx)(_accessibility2.EuiScreenReaderOnly, null, (0, _react2.jsx)("div", {
|
|
155
160
|
id: screenReaderId
|
|
156
161
|
}, sortString)), !showColumnActions ? (0, _react2.jsx)(_react.default.Fragment, null, sortingArrow, (0, _react2.jsx)("div", {
|
|
157
|
-
className: "euiDataGridHeaderCell__content"
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
className: "euiDataGridHeaderCell__content",
|
|
163
|
+
title: displayAsText || id
|
|
164
|
+
}, display || displayAsText || id)) : (0, _react2.jsx)(_popover.EuiPopover, (0, _extends2.default)({
|
|
165
|
+
className: "eui-fullWidth",
|
|
166
|
+
anchorClassName: "eui-fullWidth",
|
|
160
167
|
panelPaddingSize: "none",
|
|
161
168
|
offset: 7,
|
|
162
169
|
button: (0, _react2.jsx)("button", {
|
|
@@ -168,7 +175,8 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
168
175
|
});
|
|
169
176
|
}
|
|
170
177
|
}, sortingArrow, (0, _react2.jsx)("div", {
|
|
171
|
-
className: "euiDataGridHeaderCell__content"
|
|
178
|
+
className: "euiDataGridHeaderCell__content",
|
|
179
|
+
title: displayAsText || id
|
|
172
180
|
}, display || displayAsText || id), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
173
181
|
className: "euiDataGridHeaderCell__icon",
|
|
174
182
|
type: "arrowDown",
|
|
@@ -181,11 +189,74 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
|
|
|
181
189
|
closePopover: function closePopover() {
|
|
182
190
|
return setIsPopoverOpen(false);
|
|
183
191
|
}
|
|
184
|
-
},
|
|
192
|
+
}, popoverArrowNavigationProps), (0, _react2.jsx)(_list_group.EuiListGroup, {
|
|
185
193
|
listItems: columnActions,
|
|
186
194
|
gutterSize: "none",
|
|
187
195
|
"data-test-subj": "dataGridHeaderCellActionGroup-".concat(id)
|
|
188
|
-
})))
|
|
196
|
+
})));
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Add keyboard arrow navigation to the cell actions popover
|
|
200
|
+
* to match the UX of the rest of EuiDataGrid
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
exports.EuiDataGridHeaderCell = EuiDataGridHeaderCell;
|
|
205
|
+
|
|
206
|
+
var usePopoverArrowNavigation = function usePopoverArrowNavigation() {
|
|
207
|
+
var popoverPanelRef = (0, _react.useRef)(null);
|
|
208
|
+
var actionsRef = (0, _react.useRef)(undefined);
|
|
209
|
+
var panelRef = (0, _react.useCallback)(function (ref) {
|
|
210
|
+
popoverPanelRef.current = ref;
|
|
211
|
+
actionsRef.current = ref ? (0, _tabbable.tabbable)(ref) : undefined;
|
|
212
|
+
}, []);
|
|
213
|
+
var onKeyDown = (0, _react.useCallback)(function (e) {
|
|
214
|
+
var _actionsRef$current;
|
|
215
|
+
|
|
216
|
+
if (e.key !== _services.keys.ARROW_DOWN && e.key !== _services.keys.ARROW_UP) return;
|
|
217
|
+
if (!((_actionsRef$current = actionsRef.current) !== null && _actionsRef$current !== void 0 && _actionsRef$current.length)) return;
|
|
218
|
+
e.preventDefault();
|
|
219
|
+
var initialState = document.activeElement === popoverPanelRef.current;
|
|
220
|
+
var currentIndex = !initialState ? actionsRef.current.findIndex(function (el) {
|
|
221
|
+
return document.activeElement === el;
|
|
222
|
+
}) : -1;
|
|
223
|
+
var lastIndex = actionsRef.current.length - 1;
|
|
224
|
+
var indexToFocus;
|
|
225
|
+
|
|
226
|
+
if (initialState) {
|
|
227
|
+
if (e.key === _services.keys.ARROW_DOWN) {
|
|
228
|
+
indexToFocus = 0;
|
|
229
|
+
} else if (e.key === _services.keys.ARROW_UP) {
|
|
230
|
+
indexToFocus = lastIndex;
|
|
231
|
+
}
|
|
232
|
+
} else {
|
|
233
|
+
if (e.key === _services.keys.ARROW_DOWN) {
|
|
234
|
+
indexToFocus = currentIndex + 1;
|
|
235
|
+
|
|
236
|
+
if (indexToFocus > lastIndex) {
|
|
237
|
+
indexToFocus = 0;
|
|
238
|
+
}
|
|
239
|
+
} else if (e.key === _services.keys.ARROW_UP) {
|
|
240
|
+
indexToFocus = currentIndex - 1;
|
|
241
|
+
|
|
242
|
+
if (indexToFocus < 0) {
|
|
243
|
+
indexToFocus = lastIndex;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
actionsRef.current[indexToFocus].focus();
|
|
249
|
+
}, []);
|
|
250
|
+
return {
|
|
251
|
+
panelRef: panelRef,
|
|
252
|
+
panelProps: {
|
|
253
|
+
onKeyDown: onKeyDown
|
|
254
|
+
},
|
|
255
|
+
popoverScreenReaderText: (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
256
|
+
token: "euiDataGridHeaderCell.actionsPopoverScreenReaderText",
|
|
257
|
+
default: "To navigate through the list of column actions, press the Tab or Up and Down arrow keys."
|
|
258
|
+
})
|
|
259
|
+
};
|
|
189
260
|
};
|
|
190
261
|
|
|
191
|
-
exports.
|
|
262
|
+
exports.usePopoverArrowNavigation = usePopoverArrowNavigation;
|
|
@@ -264,6 +264,7 @@ var EuiDataGrid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
264
264
|
|
|
265
265
|
(0, _ref.useImperativeGridRef)({
|
|
266
266
|
ref: ref,
|
|
267
|
+
gridRef: gridRef,
|
|
267
268
|
setIsFullScreen: setIsFullScreen,
|
|
268
269
|
focusContext: focusContext,
|
|
269
270
|
cellPopoverContext: cellPopoverContext,
|
|
@@ -367,6 +368,7 @@ var EuiDataGrid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
367
368
|
"data-test-subj": "euiDataGridBody",
|
|
368
369
|
className: "euiDataGrid__content",
|
|
369
370
|
role: "grid",
|
|
371
|
+
"aria-rowcount": rowCount,
|
|
370
372
|
id: gridId
|
|
371
373
|
}, wrappingDivFocusProps, gridAriaProps), (0, _react2.jsx)(_body.EuiDataGridBody, {
|
|
372
374
|
columns: orderedVisibleColumns,
|
|
@@ -59,11 +59,17 @@ var useFocus = function useFocus(_ref) {
|
|
|
59
59
|
focusedCell = _useState4[0],
|
|
60
60
|
_setFocusedCell = _useState4[1];
|
|
61
61
|
|
|
62
|
-
var setFocusedCell = (0, _react.useCallback)(function (
|
|
63
|
-
|
|
62
|
+
var setFocusedCell = (0, _react.useCallback)(function (nextFocusedCell) {
|
|
63
|
+
// If the x/y coordinates remained the same, don't update. This keeps the focusedCell
|
|
64
|
+
// reference stable, and allows it to be used in places that need reference equality.
|
|
65
|
+
if (nextFocusedCell[0] === (focusedCell === null || focusedCell === void 0 ? void 0 : focusedCell[0]) && nextFocusedCell[1] === (focusedCell === null || focusedCell === void 0 ? void 0 : focusedCell[1])) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
_setFocusedCell(nextFocusedCell);
|
|
64
70
|
|
|
65
71
|
setIsFocusedCellInView(true); // scrolling.ts ensures focused cells are fully in view
|
|
66
|
-
}, []);
|
|
72
|
+
}, [focusedCell]);
|
|
67
73
|
var previousCell = (0, _react.useRef)(undefined);
|
|
68
74
|
(0, _react.useEffect)(function () {
|
|
69
75
|
if (previousCell.current) {
|
|
@@ -95,13 +101,16 @@ var useFocus = function useFocus(_ref) {
|
|
|
95
101
|
tabIndex: -1
|
|
96
102
|
} : {
|
|
97
103
|
tabIndex: 0,
|
|
98
|
-
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
onKeyUp: function onKeyUp(e) {
|
|
105
|
+
// Ensure we only manually focus into the grid via keyboard tab -
|
|
106
|
+
// mouse users can accidentally trigger focus by clicking on scrollbars
|
|
107
|
+
if (e.key === _services.keys.TAB) {
|
|
108
|
+
// if e.target (the source element of the `focus event`) matches
|
|
109
|
+
// e.currentTarget (always the div with this onKeyUp listener)
|
|
110
|
+
// then the user has focused directly on the data grid wrapper
|
|
111
|
+
if (e.target === e.currentTarget) {
|
|
112
|
+
focusFirstVisibleInteractiveCell();
|
|
113
|
+
}
|
|
105
114
|
}
|
|
106
115
|
}
|
|
107
116
|
};
|
|
@@ -16,6 +16,7 @@ var _react = require("react");
|
|
|
16
16
|
*/
|
|
17
17
|
var useImperativeGridRef = function useImperativeGridRef(_ref) {
|
|
18
18
|
var ref = _ref.ref,
|
|
19
|
+
gridRef = _ref.gridRef,
|
|
19
20
|
setIsFullScreen = _ref.setIsFullScreen,
|
|
20
21
|
focusContext = _ref.focusContext,
|
|
21
22
|
cellPopoverContext = _ref.cellPopoverContext,
|
|
@@ -70,16 +71,36 @@ var useImperativeGridRef = function useImperativeGridRef(_ref) {
|
|
|
70
71
|
rowIndex: visibleRowIndex,
|
|
71
72
|
colIndex: colIndex
|
|
72
73
|
});
|
|
73
|
-
}, [_openCellPopover, checkCellExists, findVisibleRowIndex]);
|
|
74
|
+
}, [_openCellPopover, checkCellExists, findVisibleRowIndex]);
|
|
75
|
+
var scrollTo = (0, _react.useCallback)(function () {
|
|
76
|
+
var _gridRef$current;
|
|
77
|
+
|
|
78
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
79
|
+
args[_key] = arguments[_key];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return (_gridRef$current = gridRef.current) === null || _gridRef$current === void 0 ? void 0 : _gridRef$current.scrollTo.apply(_gridRef$current, args);
|
|
83
|
+
}, [gridRef]);
|
|
84
|
+
var scrollToItem = (0, _react.useCallback)(function () {
|
|
85
|
+
var _gridRef$current2;
|
|
86
|
+
|
|
87
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
88
|
+
args[_key2] = arguments[_key2];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return (_gridRef$current2 = gridRef.current) === null || _gridRef$current2 === void 0 ? void 0 : _gridRef$current2.scrollToItem.apply(_gridRef$current2, args);
|
|
92
|
+
}, [gridRef]); // Set the ref APIs
|
|
74
93
|
|
|
75
94
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
76
95
|
return {
|
|
77
96
|
setIsFullScreen: setIsFullScreen,
|
|
78
97
|
setFocusedCell: setFocusedCell,
|
|
79
98
|
openCellPopover: openCellPopover,
|
|
80
|
-
closeCellPopover: closeCellPopover
|
|
99
|
+
closeCellPopover: closeCellPopover,
|
|
100
|
+
scrollTo: scrollTo,
|
|
101
|
+
scrollToItem: scrollToItem
|
|
81
102
|
};
|
|
82
|
-
}, [setIsFullScreen, setFocusedCell, openCellPopover, closeCellPopover]);
|
|
103
|
+
}, [setIsFullScreen, setFocusedCell, openCellPopover, closeCellPopover, scrollTo, scrollToItem]);
|
|
83
104
|
};
|
|
84
105
|
/**
|
|
85
106
|
* Throw a digestible error if the consumer attempts to focus into an invalid
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.icon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["title", "titleId"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var EuiIconCluster = function EuiIconCluster(_ref) {
|
|
27
|
+
var title = _ref.title,
|
|
28
|
+
titleId = _ref.titleId,
|
|
29
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
31
|
+
width: 16,
|
|
32
|
+
height: 16,
|
|
33
|
+
viewBox: "0 0 16 16",
|
|
34
|
+
fill: "none",
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
38
|
+
id: titleId
|
|
39
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
40
|
+
fillRule: "evenodd",
|
|
41
|
+
clipRule: "evenodd",
|
|
42
|
+
d: "M4.5 7a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm0-6a3.5 3.5 0 013.465 3h3.12a1.5 1.5 0 110 1h-3.12a3.482 3.482 0 01-.662 1.596l2.1 2.1A3.5 3.5 0 118.036 12h-3.12a1.5 1.5 0 110-.999h3.12a3.482 3.482 0 01.662-1.596l-2.1-2.1A3.5 3.5 0 114.5 1zM12 4.5a.5.5 0 101 0 .5.5 0 00-1 0zm-.5 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5zM4 11.5a.5.5 0 11-1 0 .5.5 0 011 0z"
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var icon = EuiIconCluster;
|
|
47
|
+
exports.icon = icon;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.icon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["title", "titleId"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var EuiIconContainer = function EuiIconContainer(_ref) {
|
|
27
|
+
var title = _ref.title,
|
|
28
|
+
titleId = _ref.titleId,
|
|
29
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
31
|
+
fill: "none",
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
viewBox: "0 0 16 16",
|
|
34
|
+
"aria-labelledby": titleId
|
|
35
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
36
|
+
id: titleId
|
|
37
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
|
+
d: "M0 2.5A.5.5 0 01.5 2h15a.5.5 0 010 1H15v10h.5a.5.5 0 010 1H.5a.5.5 0 010-1H1V3H.5a.5.5 0 01-.5-.5zM2 3h12v10H2V3zm3 2a.5.5 0 00-.5.5v5a.5.5 0 001 0v-5A.5.5 0 005 5zm5.5.5a.5.5 0 011 0v5a.5.5 0 01-1 0v-5zM8 5a.5.5 0 00-.5.5v5a.5.5 0 001 0v-5A.5.5 0 008 5z"
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var icon = EuiIconContainer;
|
|
45
|
+
exports.icon = icon;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.icon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["title", "titleId"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var EuiIconKubernetesNode = function EuiIconKubernetesNode(_ref) {
|
|
27
|
+
var title = _ref.title,
|
|
28
|
+
titleId = _ref.titleId,
|
|
29
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
31
|
+
width: 16,
|
|
32
|
+
height: 16,
|
|
33
|
+
viewBox: "0 0 16 16",
|
|
34
|
+
fill: "none",
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
38
|
+
id: titleId
|
|
39
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
40
|
+
fillRule: "evenodd",
|
|
41
|
+
clipRule: "evenodd",
|
|
42
|
+
d: "M14 11.42V4.58L8 1.152 2 4.58v6.84l6 3.428 6-3.428zM8 16l7-4V4L8 0 1 4v8l7 4zM8 4.607l3 1.714V9.68l-3 1.714-3-1.714V6.32l3-1.714zm4 1.134v4.518l-4 2.286-4-2.286V5.741l4-2.286 4 2.286z"
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var icon = EuiIconKubernetesNode;
|
|
47
|
+
exports.icon = icon;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.icon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["title", "titleId"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var EuiIconKubernetesPod = function EuiIconKubernetesPod(_ref) {
|
|
27
|
+
var title = _ref.title,
|
|
28
|
+
titleId = _ref.titleId,
|
|
29
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
31
|
+
width: 16,
|
|
32
|
+
height: 16,
|
|
33
|
+
viewBox: "0 0 16 16",
|
|
34
|
+
fill: "none",
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
38
|
+
id: titleId
|
|
39
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
40
|
+
fillRule: "evenodd",
|
|
41
|
+
clipRule: "evenodd",
|
|
42
|
+
d: "M14 5.151v6.269l-5.5 3.142V8.29L14 5.151zm-.508-.861L8 1.152 2.508 4.29 8 7.424l5.492-3.134zM2 5.151l5.5 3.14v6.272L2 11.42V5.15zM15 12l-7 4-7-4V4l7-4 7 4v8z"
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var icon = EuiIconKubernetesPod;
|
|
47
|
+
exports.icon = icon;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.icon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["title", "titleId"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var EuiIconNamespace = function EuiIconNamespace(_ref) {
|
|
27
|
+
var title = _ref.title,
|
|
28
|
+
titleId = _ref.titleId,
|
|
29
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
31
|
+
width: 16,
|
|
32
|
+
height: 16,
|
|
33
|
+
viewBox: "0 0 16 16",
|
|
34
|
+
fill: "none",
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
38
|
+
id: titleId
|
|
39
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
40
|
+
fillRule: "evenodd",
|
|
41
|
+
clipRule: "evenodd",
|
|
42
|
+
d: "M1 1h14v14H1V1zm13 12v1H2V2h12v11zM6 6h4v4H6V6zm-1 5V5h6v6H5z"
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var icon = EuiIconNamespace;
|
|
47
|
+
exports.icon = icon;
|