@elastic/eui 85.0.1 → 86.0.0-rc1.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_charts_theme.js +39 -18
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +47 -90
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +47 -90
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +202 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +296 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +58 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +93 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/es/components/collapsible_nav_beta/index.js +15 -0
- package/es/components/color_picker/saturation.js +2 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/es/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/es/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- 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/data_grid_cell.js +14 -13
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/es/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/es/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
- package/es/components/datagrid/controls/display_selector.js +2 -1
- package/es/components/datagrid/data_grid.js +7 -7
- package/es/components/datagrid/utils/in_memory.js +4 -4
- package/es/components/datagrid/utils/row_heights.js +4 -4
- package/es/components/date_picker/date_picker.js +1 -1
- package/es/components/drag_and_drop/drag_drop_context.js +1 -1
- package/es/components/drag_and_drop/draggable.js +2 -2
- package/es/components/drag_and_drop/droppable.js +1 -1
- package/es/components/drag_and_drop/index.js +3 -2
- package/es/components/error_boundary/error_boundary.js +1 -1
- package/es/components/filter_group/filter_select_item.js +31 -15
- package/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/es/components/form/range/range_highlight.js +1 -0
- package/es/components/header/header_section/header_section_item_button.js +94 -0
- package/es/components/highlight/highlight.js +6 -6
- package/es/components/index.js +1 -0
- package/es/components/inline_edit/inline_edit_form.js +2 -53
- package/es/components/inner_text/index.js +1 -2
- package/es/components/markdown_editor/markdown_actions.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +2 -2
- package/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/es/components/modal/confirm_modal.js +11 -29
- package/es/components/outside_click_detector/outside_click_detector.js +10 -11
- package/es/components/page/page_template.js +8 -8
- package/es/components/popover/wrapping_popover.js +1 -9
- package/es/components/portal/portal.js +33 -24
- package/es/components/tabs/tabs.js +25 -0
- package/es/components/timeline/timeline_item_icon.js +3 -3
- package/es/components/tour/tour_step.js +11 -13
- package/es/services/color/eui_palettes.js +7 -1
- package/es/services/color/index.js +1 -1
- package/es/services/index.js +1 -1
- package/es/services/theme/provider.js +7 -0
- package/es/services/time/timer.js +3 -5
- package/es/test/index.d.ts +36 -0
- package/es/test/index.js +2 -1
- package/es/test/react_version.js +71 -0
- package/es/test/rtl/component_helpers.js +1 -1
- package/es/test/rtl/index.js +2 -1
- package/es/test/rtl/render_hook.js +23 -0
- package/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/eui.d.ts +1631 -909
- package/i18ntokens.json +190 -190
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +30 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +211 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +304 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +63 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +100 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/lib/components/collapsible_nav_beta/index.js +19 -0
- package/lib/components/color_picker/saturation.js +2 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/lib/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/lib/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- 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/data_grid_cell.js +14 -13
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/lib/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/lib/components/datagrid/controls/data_grid_toolbar.js +41 -38
- package/lib/components/datagrid/controls/display_selector.js +2 -1
- package/lib/components/datagrid/data_grid.js +7 -7
- package/lib/components/datagrid/utils/in_memory.js +4 -4
- package/lib/components/datagrid/utils/row_heights.js +4 -4
- package/lib/components/date_picker/date_picker.js +1 -1
- package/lib/components/drag_and_drop/drag_drop_context.js +2 -2
- package/lib/components/drag_and_drop/draggable.js +3 -3
- package/lib/components/drag_and_drop/droppable.js +2 -2
- package/lib/components/error_boundary/error_boundary.js +1 -1
- package/lib/components/filter_group/filter_select_item.js +33 -17
- package/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/lib/components/form/range/range_highlight.js +1 -0
- package/lib/components/header/header_section/header_section_item_button.js +94 -0
- package/lib/components/highlight/highlight.js +6 -6
- package/lib/components/index.js +11 -0
- package/lib/components/inline_edit/inline_edit_form.js +2 -53
- package/lib/components/inner_text/index.js +1 -8
- package/lib/components/markdown_editor/markdown_actions.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/lib/components/modal/confirm_modal.js +10 -28
- package/lib/components/outside_click_detector/outside_click_detector.js +10 -11
- package/lib/components/page/page_template.js +8 -8
- package/lib/components/popover/wrapping_popover.js +1 -9
- package/lib/components/portal/portal.js +33 -24
- package/lib/components/tabs/tabs.js +25 -0
- package/lib/components/timeline/timeline_item_icon.js +6 -3
- package/lib/components/tour/tour_step.js +10 -12
- package/lib/services/color/eui_palettes.js +9 -2
- package/lib/services/color/index.js +7 -0
- package/lib/services/index.js +7 -0
- package/lib/services/theme/provider.js +10 -1
- package/lib/services/time/timer.js +3 -5
- package/lib/test/index.d.ts +36 -0
- package/lib/test/index.js +12 -0
- package/lib/test/react_version.js +84 -0
- package/lib/test/rtl/component_helpers.js +1 -1
- package/lib/test/rtl/index.js +13 -1
- package/lib/test/rtl/render_hook.js +29 -0
- package/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +113 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +117 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +55 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +59 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/optimize/es/components/collapsible_nav_beta/index.js +15 -0
- package/optimize/es/components/color_picker/saturation.js +2 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/es/components/datagrid/body/data_grid_cell.js +10 -9
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
- package/optimize/es/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/es/components/datagrid/utils/in_memory.js +2 -2
- package/optimize/es/components/datagrid/utils/row_heights.js +4 -4
- package/optimize/es/components/date_picker/date_picker.js +1 -1
- package/optimize/es/components/drag_and_drop/drag_drop_context.js +1 -1
- package/optimize/es/components/drag_and_drop/draggable.js +2 -2
- package/optimize/es/components/drag_and_drop/droppable.js +1 -1
- package/optimize/es/components/drag_and_drop/index.js +3 -2
- package/optimize/es/components/error_boundary/error_boundary.js +1 -1
- package/optimize/es/components/filter_group/filter_select_item.js +30 -14
- package/optimize/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/optimize/es/components/form/range/range_highlight.js +1 -0
- package/optimize/es/components/highlight/highlight.js +6 -6
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/es/components/inner_text/index.js +1 -2
- package/optimize/es/components/markdown_editor/markdown_actions.js +1 -1
- package/optimize/es/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/optimize/es/components/modal/confirm_modal.js +11 -24
- package/optimize/es/components/outside_click_detector/outside_click_detector.js +10 -11
- package/optimize/es/components/popover/wrapping_popover.js +1 -9
- package/optimize/es/components/portal/portal.js +33 -25
- package/optimize/es/components/timeline/timeline_item_icon.js +3 -3
- package/optimize/es/components/tour/tour_step.js +11 -13
- package/optimize/es/services/color/eui_palettes.js +7 -1
- package/optimize/es/services/color/index.js +1 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/theme/provider.js +7 -0
- package/optimize/es/services/time/timer.js +3 -5
- package/optimize/es/test/index.d.ts +36 -0
- package/optimize/es/test/index.js +2 -1
- package/optimize/es/test/react_version.js +71 -0
- package/optimize/es/test/rtl/component_helpers.js +1 -1
- package/optimize/es/test/rtl/index.js +2 -1
- package/optimize/es/test/rtl/render_hook.js +23 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +123 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +124 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +66 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/optimize/lib/components/collapsible_nav_beta/index.js +19 -0
- package/optimize/lib/components/color_picker/saturation.js +2 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/lib/components/datagrid/body/data_grid_cell.js +10 -9
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +36 -28
- package/optimize/lib/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/lib/components/datagrid/utils/in_memory.js +2 -2
- package/optimize/lib/components/datagrid/utils/row_heights.js +4 -4
- package/optimize/lib/components/date_picker/date_picker.js +1 -1
- package/optimize/lib/components/drag_and_drop/drag_drop_context.js +2 -2
- package/optimize/lib/components/drag_and_drop/draggable.js +3 -3
- package/optimize/lib/components/drag_and_drop/droppable.js +2 -2
- package/optimize/lib/components/error_boundary/error_boundary.js +1 -1
- package/optimize/lib/components/filter_group/filter_select_item.js +32 -16
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/optimize/lib/components/form/range/range_highlight.js +1 -0
- package/optimize/lib/components/highlight/highlight.js +6 -6
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/lib/components/inner_text/index.js +1 -8
- package/optimize/lib/components/markdown_editor/markdown_actions.js +1 -1
- package/optimize/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/optimize/lib/components/modal/confirm_modal.js +10 -23
- package/optimize/lib/components/outside_click_detector/outside_click_detector.js +10 -11
- package/optimize/lib/components/popover/wrapping_popover.js +1 -9
- package/optimize/lib/components/portal/portal.js +33 -25
- package/optimize/lib/components/timeline/timeline_item_icon.js +6 -4
- package/optimize/lib/components/tour/tour_step.js +10 -12
- package/optimize/lib/services/color/eui_palettes.js +9 -2
- package/optimize/lib/services/color/index.js +7 -0
- package/optimize/lib/services/index.js +7 -0
- package/optimize/lib/services/theme/provider.js +10 -1
- package/optimize/lib/services/time/timer.js +3 -5
- package/optimize/lib/test/index.d.ts +36 -0
- package/optimize/lib/test/index.js +12 -0
- package/optimize/lib/test/react_version.js +84 -0
- package/optimize/lib/test/rtl/component_helpers.js +1 -1
- package/optimize/lib/test/rtl/index.js +13 -1
- package/optimize/lib/test/rtl/render_hook.js +29 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/package.json +23 -16
- package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +24 -3
- package/src/components/combo_box/combo_box_options_list/_combo_box_option.scss +34 -14
- package/src/components/index.scss +0 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +208 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +303 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +96 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/test-env/components/collapsible_nav_beta/index.js +19 -0
- package/test-env/components/color_picker/saturation.js +2 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/test-env/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- 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/data_grid_cell.js +14 -13
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/test-env/components/datagrid/controls/data_grid_toolbar.js +36 -28
- package/test-env/components/datagrid/controls/display_selector.js +2 -1
- package/test-env/components/datagrid/data_grid.js +7 -7
- package/test-env/components/datagrid/utils/in_memory.js +4 -4
- package/test-env/components/datagrid/utils/row_heights.js +4 -4
- package/test-env/components/date_picker/date_picker.js +1 -1
- package/test-env/components/drag_and_drop/drag_drop_context.js +2 -2
- package/test-env/components/drag_and_drop/draggable.js +3 -3
- package/test-env/components/drag_and_drop/droppable.js +2 -2
- package/test-env/components/error_boundary/error_boundary.js +1 -1
- package/test-env/components/filter_group/filter_select_item.js +33 -17
- package/test-env/components/filter_group/filter_select_item.styles.js +26 -0
- package/test-env/components/form/range/range_highlight.js +1 -0
- package/test-env/components/header/header_section/header_section_item_button.js +94 -0
- package/test-env/components/highlight/highlight.js +6 -6
- package/test-env/components/index.js +11 -0
- package/test-env/components/inline_edit/inline_edit_form.js +2 -53
- package/test-env/components/inner_text/index.js +1 -8
- package/test-env/components/markdown_editor/markdown_actions.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +2 -2
- package/test-env/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/test-env/components/modal/confirm_modal.js +10 -23
- package/test-env/components/outside_click_detector/outside_click_detector.js +10 -11
- package/test-env/components/page/page_template.js +8 -8
- package/test-env/components/popover/wrapping_popover.js +1 -9
- package/test-env/components/portal/portal.js +33 -25
- package/test-env/components/tabs/tabs.js +25 -0
- package/test-env/components/timeline/timeline_item_icon.js +6 -3
- package/test-env/components/tour/tour_step.js +10 -12
- package/test-env/services/color/eui_palettes.js +9 -2
- package/test-env/services/color/index.js +7 -0
- package/test-env/services/index.js +7 -0
- package/test-env/services/theme/provider.js +10 -1
- package/test-env/services/time/timer.js +3 -5
- package/test-env/test/index.js +12 -0
- package/test-env/test/react_version.js +84 -0
- package/test-env/test/rtl/component_helpers.js +1 -1
- package/test-env/test/rtl/index.js +13 -1
- package/test-env/test/rtl/render_hook.js +29 -0
- package/test-env/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/es/components/inner_text/render_to_text.js +0 -47
- package/lib/components/inner_text/render_to_text.js +0 -54
- package/optimize/es/components/inner_text/render_to_text.js +0 -42
- package/optimize/lib/components/inner_text/render_to_text.js +0 -52
- package/src/components/filter_group/_filter_select_item.scss +0 -43
- package/src/components/filter_group/_index.scss +0 -1
- package/test-env/components/inner_text/render_to_text.js +0 -52
|
@@ -799,7 +799,7 @@ EuiDataGrid.propTypes = {
|
|
|
799
799
|
/**
|
|
800
800
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
801
801
|
*/
|
|
802
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
802
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
803
803
|
/**
|
|
804
804
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
805
805
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -831,11 +831,11 @@ EuiDataGrid.propTypes = {
|
|
|
831
831
|
/**
|
|
832
832
|
* Component to render for each row in the column
|
|
833
833
|
*/
|
|
834
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
834
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
835
835
|
/**
|
|
836
836
|
* Component to render in the optional column footer
|
|
837
837
|
*/
|
|
838
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
838
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
839
839
|
/**
|
|
840
840
|
* Optional props to pass to the column footer cell
|
|
841
841
|
*/
|
|
@@ -865,11 +865,11 @@ EuiDataGrid.propTypes = {
|
|
|
865
865
|
/**
|
|
866
866
|
* Component to render for each row in the column
|
|
867
867
|
*/
|
|
868
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
868
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
869
869
|
/**
|
|
870
870
|
* Component to render in the optional column footer
|
|
871
871
|
*/
|
|
872
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
872
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
873
873
|
/**
|
|
874
874
|
* Optional props to pass to the column footer cell
|
|
875
875
|
*/
|
|
@@ -944,7 +944,7 @@ EuiDataGrid.propTypes = {
|
|
|
944
944
|
* allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
|
|
945
945
|
* as its only argument.
|
|
946
946
|
*/
|
|
947
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
947
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
948
948
|
/**
|
|
949
949
|
* An optional function that can be used to completely customize the rendering of cell popovers.
|
|
950
950
|
*
|
|
@@ -963,7 +963,7 @@ EuiDataGrid.propTypes = {
|
|
|
963
963
|
* allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
|
|
964
964
|
* as its only argument.
|
|
965
965
|
*/
|
|
966
|
-
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
966
|
+
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
967
967
|
/**
|
|
968
968
|
* An optional function called to completely customize and control the rendering of
|
|
969
969
|
* EuiDataGrid's body and cell placement. This can be used to, e.g. remove EuiDataGrid's
|
|
@@ -161,9 +161,9 @@ var EuiDataGridInMemoryRenderer = function EuiDataGridInMemoryRenderer(_ref) {
|
|
|
161
161
|
var cellDivs = documentFragment.childNodes[0].childNodes;
|
|
162
162
|
for (var i = 0; i < cellDivs.length; i++) {
|
|
163
163
|
var cellDiv = cellDivs[i];
|
|
164
|
-
var
|
|
164
|
+
var rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
|
|
165
165
|
var column = cellDiv.getAttribute('data-dg-column');
|
|
166
|
-
onCellRender(
|
|
166
|
+
onCellRender(rowIndex, column, getElementText(cellDiv));
|
|
167
167
|
}
|
|
168
168
|
// changes to documentFragment.children is reflected by `cells`
|
|
169
169
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -598,7 +598,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
598
598
|
/**
|
|
599
599
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
600
600
|
*/
|
|
601
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
601
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
602
602
|
/**
|
|
603
603
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
604
604
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -607,7 +607,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
607
607
|
visibleCellActions: _propTypes.default.number
|
|
608
608
|
}).isRequired).isRequired,
|
|
609
609
|
rowCount: _propTypes.default.number.isRequired,
|
|
610
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
610
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
611
611
|
onCellRender: _propTypes.default.func.isRequired
|
|
612
612
|
};
|
|
613
613
|
function noop() {}
|
|
@@ -214,15 +214,15 @@ var RowHeightVirtualizationUtils = /*#__PURE__*/function (_RowHeightUtils) {
|
|
|
214
214
|
var _this2;
|
|
215
215
|
_classCallCheck(this, RowHeightVirtualizationUtils);
|
|
216
216
|
_this2 = _super.call(this);
|
|
217
|
-
_this2.gridRef = gridRef;
|
|
218
|
-
_this2.outerGridElementRef = outerGridElementRef;
|
|
219
|
-
_this2.gridItemsRenderedRef = gridItemsRenderedRef;
|
|
220
|
-
_this2.rerenderGridBodyRef = rerenderGridBodyRef;
|
|
221
217
|
/**
|
|
222
218
|
* Virtualization workarounds for auto height rows
|
|
223
219
|
*/
|
|
224
220
|
_defineProperty(_assertThisInitialized(_this2), "timerId", void 0);
|
|
225
221
|
_defineProperty(_assertThisInitialized(_this2), "lastUpdatedRow", Infinity);
|
|
222
|
+
_this2.gridRef = gridRef;
|
|
223
|
+
_this2.outerGridElementRef = outerGridElementRef;
|
|
224
|
+
_this2.gridItemsRenderedRef = gridItemsRenderedRef;
|
|
225
|
+
_this2.rerenderGridBodyRef = rerenderGridBodyRef;
|
|
226
226
|
return _this2;
|
|
227
227
|
}
|
|
228
228
|
_createClass(RowHeightVirtualizationUtils, [{
|
|
@@ -152,7 +152,7 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
152
152
|
inputValidityRef = _useState2[0],
|
|
153
153
|
_setInputValidityRef = _useState2[1];
|
|
154
154
|
var setInputValidityRef = (0, _react.useCallback)(function (ref) {
|
|
155
|
-
_setInputValidityRef(ref === null || ref === void 0 ? void 0 : ref.input);
|
|
155
|
+
_setInputValidityRef((ref === null || ref === void 0 ? void 0 : ref.input) || null);
|
|
156
156
|
}, []);
|
|
157
157
|
(0, _form.useEuiValidatableControl)({
|
|
158
158
|
isInvalid: isInvalid,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiDragDropContextContext = exports.EuiDragDropContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _excluded = ["onBeforeDragStart", "onDragStart", "onDragUpdate", "onDragEnd", "children"];
|
|
12
12
|
/*
|
|
@@ -55,7 +55,7 @@ var EuiDragDropContext = function EuiDragDropContext(_ref) {
|
|
|
55
55
|
onDragEnd(result, provided);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
return (0, _react2.jsx)(
|
|
58
|
+
return (0, _react2.jsx)(_dnd.DragDropContext, _extends({
|
|
59
59
|
onBeforeDragStart: onBeforeDragStart,
|
|
60
60
|
onDragStart: euiOnDragStart,
|
|
61
61
|
onDragUpdate: onDragUpdate,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EuiDraggable = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var
|
|
10
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _droppable = require("./droppable");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
@@ -57,7 +57,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
|
|
|
57
57
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
58
58
|
var _useContext = (0, _react.useContext)(_droppable.EuiDroppableContext),
|
|
59
59
|
cloneItems = _useContext.cloneItems;
|
|
60
|
-
return (0, _react2.jsx)(
|
|
60
|
+
return (0, _react2.jsx)(_dnd.Draggable, _extends({
|
|
61
61
|
draggableId: draggableId,
|
|
62
62
|
index: index,
|
|
63
63
|
isDragDisabled: isDragDisabled
|
|
@@ -75,7 +75,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
|
|
|
75
75
|
'euiDraggable__item--isDragging': snapshot.isDragging,
|
|
76
76
|
'euiDraggable__item--isDropAnimating': snapshot.isDropAnimating
|
|
77
77
|
});
|
|
78
|
-
var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
|
|
78
|
+
var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
|
|
79
79
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", _extends({}, provided.draggableProps, !customDragHandle ? provided.dragHandleProps : {}, {
|
|
80
80
|
ref: provided.innerRef,
|
|
81
81
|
"data-test-subj": dataTestSubj,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EuiDroppableContext = exports.EuiDroppable = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var
|
|
10
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _drag_drop_context = require("./drag_drop_context");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
@@ -59,7 +59,7 @@ var EuiDroppable = function EuiDroppable(_ref) {
|
|
|
59
59
|
var _useContext = (0, _react.useContext)(_drag_drop_context.EuiDragDropContextContext),
|
|
60
60
|
isDraggingType = _useContext.isDraggingType;
|
|
61
61
|
var dropIsDisabled = cloneDraggables ? true : isDropDisabled;
|
|
62
|
-
return (0, _react2.jsx)(
|
|
62
|
+
return (0, _react2.jsx)(_dnd.Droppable, _extends({
|
|
63
63
|
isDropDisabled: dropIsDisabled,
|
|
64
64
|
droppableId: droppableId,
|
|
65
65
|
direction: direction,
|
|
@@ -64,7 +64,7 @@ var EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
64
64
|
var message = error.message,
|
|
65
65
|
stack = error.stack;
|
|
66
66
|
var idx = (stack === null || stack === void 0 ? void 0 : stack.indexOf(message)) || -1;
|
|
67
|
-
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.
|
|
67
|
+
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.substring(idx + message.length + 1) : stack;
|
|
68
68
|
var errorMessage = "Error: ".concat(message, "\n").concat(stackStr);
|
|
69
69
|
this.setState({
|
|
70
70
|
hasError: true,
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EuiFilterSelectItem = void 0;
|
|
6
|
+
exports.EuiFilterSelectItemClass = exports.EuiFilterSelectItem = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _services = require("../../services");
|
|
10
11
|
var _flex = require("../flex");
|
|
11
12
|
var _icon = require("../icon");
|
|
13
|
+
var _filter_select_item = require("./filter_select_item.styles");
|
|
12
14
|
var _react2 = require("@emotion/react");
|
|
13
|
-
var _excluded = ["children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
15
|
+
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
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); }
|
|
16
18
|
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; }
|
|
@@ -51,12 +53,19 @@ var resolveIconAndColor = function resolveIconAndColor(checked) {
|
|
|
51
53
|
color: 'text'
|
|
52
54
|
};
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* TODO: This component should removed in favor of EuiSelectable usage
|
|
59
|
+
* once EuiComboBox has been converted to dogfood EuiSelectable.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated - Use EuiSelectable instead
|
|
62
|
+
*/
|
|
63
|
+
var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
64
|
+
_inherits(EuiFilterSelectItemClass, _Component);
|
|
65
|
+
var _super = _createSuper(EuiFilterSelectItemClass);
|
|
66
|
+
function EuiFilterSelectItemClass() {
|
|
58
67
|
var _this;
|
|
59
|
-
_classCallCheck(this,
|
|
68
|
+
_classCallCheck(this, EuiFilterSelectItemClass);
|
|
60
69
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
61
70
|
args[_key] = arguments[_key];
|
|
62
71
|
}
|
|
@@ -75,11 +84,12 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
75
84
|
});
|
|
76
85
|
return _this;
|
|
77
86
|
}
|
|
78
|
-
_createClass(
|
|
87
|
+
_createClass(EuiFilterSelectItemClass, [{
|
|
79
88
|
key: "render",
|
|
80
89
|
value: function render() {
|
|
81
90
|
var _this2 = this;
|
|
82
91
|
var _this$props = this.props,
|
|
92
|
+
theme = _this$props.theme,
|
|
83
93
|
children = _this$props.children,
|
|
84
94
|
className = _this$props.className,
|
|
85
95
|
disabled = _this$props.disabled,
|
|
@@ -87,9 +97,9 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
87
97
|
isFocused = _this$props.isFocused,
|
|
88
98
|
showIcons = _this$props.showIcons,
|
|
89
99
|
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
var styles = (0, _filter_select_item.euiFilterSelectItemStyles)(theme);
|
|
101
|
+
var cssStyles = [styles.euiFilterSelectItem, isFocused && styles.isFocused];
|
|
102
|
+
var classes = (0, _classnames.default)('euiFilterSelectItem', className);
|
|
93
103
|
var iconNode;
|
|
94
104
|
if (showIcons) {
|
|
95
105
|
var _resolveIconAndColor = resolveIconAndColor(checked),
|
|
@@ -110,6 +120,7 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
110
120
|
type: "button",
|
|
111
121
|
"aria-selected": isFocused,
|
|
112
122
|
className: classes,
|
|
123
|
+
css: cssStyles,
|
|
113
124
|
disabled: disabled,
|
|
114
125
|
"aria-disabled": disabled
|
|
115
126
|
}, rest), (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
@@ -118,18 +129,21 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
118
129
|
component: "span",
|
|
119
130
|
responsive: false
|
|
120
131
|
}, iconNode, (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
121
|
-
className: "euiFilterSelectItem__content",
|
|
132
|
+
className: "euiFilterSelectItem__content eui-textTruncate",
|
|
122
133
|
component: "span"
|
|
123
134
|
}, children)));
|
|
124
135
|
}
|
|
125
136
|
}]);
|
|
126
|
-
return
|
|
137
|
+
return EuiFilterSelectItemClass;
|
|
127
138
|
}(_react.Component);
|
|
128
|
-
|
|
129
|
-
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated - Use EuiSelectable instead
|
|
141
|
+
*/
|
|
142
|
+
exports.EuiFilterSelectItemClass = EuiFilterSelectItemClass;
|
|
143
|
+
_defineProperty(EuiFilterSelectItemClass, "defaultProps", {
|
|
130
144
|
showIcons: true
|
|
131
145
|
});
|
|
132
|
-
|
|
146
|
+
EuiFilterSelectItemClass.propTypes = {
|
|
133
147
|
checked: _propTypes.default.oneOf(["on", "off"]),
|
|
134
148
|
showIcons: _propTypes.default.bool,
|
|
135
149
|
isFocused: _propTypes.default.bool,
|
|
@@ -137,4 +151,6 @@ EuiFilterSelectItem.propTypes = {
|
|
|
137
151
|
"aria-label": _propTypes.default.string,
|
|
138
152
|
"data-test-subj": _propTypes.default.string,
|
|
139
153
|
css: _propTypes.default.any
|
|
140
|
-
};
|
|
154
|
+
};
|
|
155
|
+
var EuiFilterSelectItem = (0, _services.withEuiTheme)(EuiFilterSelectItemClass);
|
|
156
|
+
exports.EuiFilterSelectItem = EuiFilterSelectItem;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiFilterSelectItemStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _services = require("../../services");
|
|
9
|
+
var _global_styling = require("../../global_styling");
|
|
10
|
+
/*
|
|
11
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
13
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
+
* Side Public License, v 1.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var euiFilterSelectItemStyles = function euiFilterSelectItemStyles(euiThemeContext) {
|
|
19
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
20
|
+
var focusStyles = "\n color: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(euiTheme.focus.backgroundColor, ";\n outline-offset: -").concat(euiTheme.focus.width, ";\n text-decoration: underline;\n\n &:disabled {\n background-color: ").concat((0, _services.transparentize)(euiTheme.colors.disabled, 0.1), ";\n }\n ");
|
|
21
|
+
return {
|
|
22
|
+
euiFilterSelectItem: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalShorthandCSS)('padding', "".concat(euiTheme.size.xs, " ").concat(euiTheme.size.m)), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), " color:", euiTheme.colors.text, ";", (0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.lightestShade)), " &:hover{cursor:pointer;text-decoration:underline;}&:focus{", focusStyles, ";}&:disabled{cursor:not-allowed;text-decoration:none;color:", euiTheme.colors.disabledText, ";};label:euiFilterSelectItem;"),
|
|
23
|
+
isFocused: /*#__PURE__*/(0, _react.css)(focusStyles, ";;label:isFocused;")
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.euiFilterSelectItemStyles = euiFilterSelectItemStyles;
|
|
@@ -76,6 +76,7 @@ var EuiRangeHighlight = function EuiRangeHighlight(_ref) {
|
|
|
76
76
|
css: cssStyles,
|
|
77
77
|
onClick: onClick
|
|
78
78
|
}, (levels && levels.length === 0 || !levels) && (0, _react2.jsx)("div", {
|
|
79
|
+
"data-test-subj": "euiRangeHighlightProgress",
|
|
79
80
|
className: "euiRangeHighlight__progress",
|
|
80
81
|
css: cssProgressStyles,
|
|
81
82
|
style: progressStyle
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiHeaderSectionItemButton = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
11
|
var _badge_notification = require("../../badge/notification_badge/badge_notification");
|
|
11
12
|
var _icon = require("../../icon");
|
|
@@ -176,4 +177,97 @@ ref) {
|
|
|
176
177
|
}, children), buttonNotification);
|
|
177
178
|
});
|
|
178
179
|
exports.EuiHeaderSectionItemButton = EuiHeaderSectionItemButton;
|
|
180
|
+
EuiHeaderSectionItemButton.propTypes = {
|
|
181
|
+
href: _propTypes.default.string,
|
|
182
|
+
onClick: _propTypes.default.func,
|
|
183
|
+
/**
|
|
184
|
+
* Any of the named color palette options.
|
|
185
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
186
|
+
*/
|
|
187
|
+
/**
|
|
188
|
+
* Any of the named color palette options.
|
|
189
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
190
|
+
*/
|
|
191
|
+
color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
|
|
192
|
+
size: _propTypes.default.any,
|
|
193
|
+
/**
|
|
194
|
+
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
195
|
+
*/
|
|
196
|
+
/**
|
|
197
|
+
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
198
|
+
*/
|
|
199
|
+
flush: _propTypes.default.any,
|
|
200
|
+
/**
|
|
201
|
+
* `disabled` is also allowed
|
|
202
|
+
*/
|
|
203
|
+
/**
|
|
204
|
+
* `disabled` is also allowed
|
|
205
|
+
*/
|
|
206
|
+
isDisabled: _propTypes.default.bool,
|
|
207
|
+
/**
|
|
208
|
+
* Force disables the button and changes the icon to a loading spinner
|
|
209
|
+
*/
|
|
210
|
+
/**
|
|
211
|
+
* Force disables the button and changes the icon to a loading spinner
|
|
212
|
+
*/
|
|
213
|
+
isLoading: _propTypes.default.bool,
|
|
214
|
+
/**
|
|
215
|
+
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
216
|
+
* *Only use when the readable text does not change between states.*
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
220
|
+
* *Only use when the readable text does not change between states.*
|
|
221
|
+
*/
|
|
222
|
+
isSelected: _propTypes.default.bool,
|
|
223
|
+
target: _propTypes.default.string,
|
|
224
|
+
rel: _propTypes.default.string,
|
|
225
|
+
type: _propTypes.default.oneOf(["button", "submit"]),
|
|
226
|
+
buttonRef: _propTypes.default.any,
|
|
227
|
+
/**
|
|
228
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
229
|
+
*/
|
|
230
|
+
/**
|
|
231
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
232
|
+
*/
|
|
233
|
+
contentProps: _propTypes.default.shape({
|
|
234
|
+
className: _propTypes.default.string,
|
|
235
|
+
"aria-label": _propTypes.default.string,
|
|
236
|
+
"data-test-subj": _propTypes.default.string,
|
|
237
|
+
css: _propTypes.default.any
|
|
238
|
+
}),
|
|
239
|
+
/**
|
|
240
|
+
* Any `type` accepted by EuiIcon
|
|
241
|
+
*/
|
|
242
|
+
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
|
|
243
|
+
/**
|
|
244
|
+
* Can only be one side `left` or `right`
|
|
245
|
+
*/
|
|
246
|
+
iconSide: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([undefined])]),
|
|
247
|
+
/**
|
|
248
|
+
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
249
|
+
*/
|
|
250
|
+
textProps: _propTypes.default.shape({
|
|
251
|
+
className: _propTypes.default.string,
|
|
252
|
+
"aria-label": _propTypes.default.string,
|
|
253
|
+
"data-test-subj": _propTypes.default.string,
|
|
254
|
+
css: _propTypes.default.any,
|
|
255
|
+
ref: _propTypes.default.any,
|
|
256
|
+
"data-text": _propTypes.default.string
|
|
257
|
+
}),
|
|
258
|
+
iconSize: _propTypes.default.any,
|
|
259
|
+
className: _propTypes.default.string,
|
|
260
|
+
"aria-label": _propTypes.default.string,
|
|
261
|
+
"data-test-subj": _propTypes.default.string,
|
|
262
|
+
css: _propTypes.default.any,
|
|
263
|
+
/**
|
|
264
|
+
* Inserts the node into a EuiBadgeNotification and places it appropriately against the button.
|
|
265
|
+
* Or pass `true` to render a simple dot
|
|
266
|
+
*/
|
|
267
|
+
notification: _propTypes.default.oneOfType([_propTypes.default.node.isRequired, _propTypes.default.bool.isRequired]),
|
|
268
|
+
/**
|
|
269
|
+
* Changes the color of the notification background
|
|
270
|
+
*/
|
|
271
|
+
notificationColor: _propTypes.default.any
|
|
272
|
+
};
|
|
179
273
|
EuiHeaderSectionItemButton.displayName = 'EuiHeaderSectionItemButton';
|
|
@@ -36,7 +36,7 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
36
36
|
var end = chunk.end,
|
|
37
37
|
highlight = chunk.highlight,
|
|
38
38
|
start = chunk.start;
|
|
39
|
-
var value = searchSubject.
|
|
39
|
+
var value = searchSubject.substring(start, end);
|
|
40
40
|
if (highlight) {
|
|
41
41
|
return (0, _react2.jsx)(_mark.EuiMark, {
|
|
42
42
|
key: start,
|
|
@@ -52,12 +52,12 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
52
52
|
if (indexOfMatch === -1) {
|
|
53
53
|
return searchSubject;
|
|
54
54
|
}
|
|
55
|
-
var preMatch = searchSubject.
|
|
56
|
-
var match = searchSubject.
|
|
57
|
-
var postMatch = searchSubject.
|
|
58
|
-
return (0, _react2.jsx)(_react.Fragment, null, preMatch, (0, _react2.jsx)(_mark.EuiMark, {
|
|
55
|
+
var preMatch = searchSubject.substring(0, indexOfMatch);
|
|
56
|
+
var match = searchSubject.substring(indexOfMatch, indexOfMatch + searchValue.length);
|
|
57
|
+
var postMatch = searchSubject.substring(indexOfMatch + searchValue.length);
|
|
58
|
+
return (0, _react2.jsx)(_react.Fragment, null, preMatch || undefined, (0, _react2.jsx)(_mark.EuiMark, {
|
|
59
59
|
hasScreenReaderHelpText: hasScreenReaderHelpText
|
|
60
|
-
}, match), postMatch);
|
|
60
|
+
}, match), postMatch || undefined);
|
|
61
61
|
};
|
|
62
62
|
var getHightlightWords = function getHightlightWords(searchSubject, searchValue, isStrict) {
|
|
63
63
|
var regex = new RegExp(searchValue, isStrict ? 'g' : 'gi');
|
package/lib/components/index.js
CHANGED
|
@@ -157,6 +157,17 @@ Object.keys(_collapsible_nav).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
+
var _collapsible_nav_beta = require("./collapsible_nav_beta");
|
|
161
|
+
Object.keys(_collapsible_nav_beta).forEach(function (key) {
|
|
162
|
+
if (key === "default" || key === "__esModule") return;
|
|
163
|
+
if (key in exports && exports[key] === _collapsible_nav_beta[key]) return;
|
|
164
|
+
Object.defineProperty(exports, key, {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function get() {
|
|
167
|
+
return _collapsible_nav_beta[key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
160
171
|
var _color_picker = require("./color_picker");
|
|
161
172
|
Object.keys(_color_picker).forEach(function (key) {
|
|
162
173
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -272,7 +272,8 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
272
272
|
size: sizes.buttonSize,
|
|
273
273
|
"data-test-subj": "euiInlineReadModeButton",
|
|
274
274
|
disabled: isReadOnly,
|
|
275
|
-
css: readModeCssStyles
|
|
275
|
+
css: readModeCssStyles,
|
|
276
|
+
title: readModeValue || placeholder
|
|
276
277
|
}, readModeProps, {
|
|
277
278
|
buttonRef: setReadModeRefs,
|
|
278
279
|
"aria-describedby": (0, _classnames.default)(readModeDescribedById, readModeProps === null || readModeProps === void 0 ? void 0 : readModeProps['aria-describedby']),
|
|
@@ -294,58 +295,6 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
294
295
|
};
|
|
295
296
|
exports.EuiInlineEditForm = EuiInlineEditForm;
|
|
296
297
|
EuiInlineEditForm.propTypes = {
|
|
297
|
-
className: _propTypes.default.string,
|
|
298
|
-
"aria-label": _propTypes.default.string,
|
|
299
|
-
"data-test-subj": _propTypes.default.string,
|
|
300
|
-
css: _propTypes.default.any,
|
|
301
|
-
defaultValue: _propTypes.default.string.isRequired,
|
|
302
|
-
placeholder: _propTypes.default.string,
|
|
303
|
-
/**
|
|
304
|
-
* Callback that fires when a user clicks the save button.
|
|
305
|
-
* Passes the current edited text value as an argument.
|
|
306
|
-
*
|
|
307
|
-
* To validate the value of the edited text, pass back a boolean flag.
|
|
308
|
-
* If `false`, EuiInlineEdit will remain in edit mode, where loading or invalid states can be set.
|
|
309
|
-
* If `true`, EuiInlineEdit will return to read mode.
|
|
310
|
-
*/
|
|
311
|
-
onSave: _propTypes.default.func,
|
|
312
|
-
/**
|
|
313
|
-
* Form label that appears above the form control.
|
|
314
|
-
* This is required for accessibility because there is no visual label on the input.
|
|
315
|
-
*/
|
|
316
|
-
inputAriaLabel: _propTypes.default.string.isRequired,
|
|
317
|
-
/**
|
|
318
|
-
* Starts the component in edit mode
|
|
319
|
-
*/
|
|
320
|
-
startWithEditOpen: _propTypes.default.bool,
|
|
321
|
-
/**
|
|
322
|
-
* Props that will be applied directly to the `EuiEmptyButton` displayed in read mode
|
|
323
|
-
*/
|
|
324
|
-
readModeProps: _propTypes.default.any,
|
|
325
|
-
/**
|
|
326
|
-
* Multiple props objects that can be applied directly to various child components displayed in edit mode.
|
|
327
|
-
* - `formRowProps` will be passed to `EuiFormRow`
|
|
328
|
-
* - `inputProps` will be passed to `EuiFieldText`
|
|
329
|
-
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `EuiIconButton`s
|
|
330
|
-
*/
|
|
331
|
-
editModeProps: _propTypes.default.shape({
|
|
332
|
-
formRowProps: _propTypes.default.any,
|
|
333
|
-
inputProps: _propTypes.default.any,
|
|
334
|
-
saveButtonProps: _propTypes.default.any,
|
|
335
|
-
cancelButtonProps: _propTypes.default.any
|
|
336
|
-
}),
|
|
337
|
-
/**
|
|
338
|
-
* Loading state - only displayed in edit mode
|
|
339
|
-
*/
|
|
340
|
-
isLoading: _propTypes.default.bool,
|
|
341
|
-
/**
|
|
342
|
-
* Invalid state - only displayed edit mode
|
|
343
|
-
*/
|
|
344
|
-
isInvalid: _propTypes.default.bool,
|
|
345
|
-
/**
|
|
346
|
-
* Locks inline edit in read mode and displays the text value
|
|
347
|
-
*/
|
|
348
|
-
isReadOnly: _propTypes.default.bool,
|
|
349
298
|
/**
|
|
350
299
|
* Form sizes
|
|
351
300
|
*/
|
|
@@ -15,11 +15,4 @@ Object.defineProperty(exports, "useInnerText", {
|
|
|
15
15
|
return _inner_text.useInnerText;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _render_to_text.useRenderToText;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var _inner_text = require("./inner_text");
|
|
25
|
-
var _render_to_text = require("./render_to_text");
|
|
18
|
+
var _inner_text = require("./inner_text");
|
|
@@ -54,8 +54,8 @@ SOFTWARE.
|
|
|
54
54
|
var MarkdownActions = /*#__PURE__*/function () {
|
|
55
55
|
function MarkdownActions(editorID, uiPlugins) {
|
|
56
56
|
_classCallCheck(this, MarkdownActions);
|
|
57
|
-
this.editorID = editorID;
|
|
58
57
|
_defineProperty(this, "styles", void 0);
|
|
58
|
+
this.editorID = editorID;
|
|
59
59
|
/**
|
|
60
60
|
* This object is in the format:
|
|
61
61
|
* [nameOfAction]: {[styles to apply]}
|
|
@@ -166,8 +166,8 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
166
166
|
var isPreviewing = viewMode === _markdown_modes.MODE_VIEWING;
|
|
167
167
|
var isEditing = viewMode === _markdown_modes.MODE_EDITING;
|
|
168
168
|
var replaceNode = (0, _react.useCallback)(function (position, next) {
|
|
169
|
-
var leading = value.
|
|
170
|
-
var trailing = value.
|
|
169
|
+
var leading = value.substring(0, position.start.offset);
|
|
170
|
+
var trailing = value.substring(position.end.offset);
|
|
171
171
|
_onChange("".concat(leading).concat(next).concat(trailing));
|
|
172
172
|
}, [value, _onChange]);
|
|
173
173
|
var contextValue = (0, _react.useMemo)(function () {
|