@elastic/eui 116.3.0 → 116.3.1-snapshot.1782218964187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/avatar/avatar.js +4 -0
- package/es/components/avatar/avatar.styles.js +16 -16
- package/es/components/banner/banner.js +1 -2
- package/es/components/banner/banner.styles.js +1 -1
- package/es/components/basic_table/basic_table.js +35 -5
- package/es/components/basic_table/basic_table.styles.js +19 -1
- package/es/components/basic_table/in_memory_table.js +17 -0
- package/es/components/basic_table/index.js +2 -1
- package/es/components/basic_table/pagination_bar.js +19 -4
- package/es/components/basic_table/pagination_bar.styles.js +21 -0
- package/es/components/basic_table/panel.styles.js +14 -0
- package/es/components/basic_table/use_panel_props.js +28 -0
- package/es/components/date_picker/auto_refresh/refresh_interval.js +176 -229
- package/es/components/flyout/flyout.component.js +10 -6
- package/es/components/flyout/flyout_menu.js +122 -19
- package/es/components/flyout/flyout_menu.styles.js +2 -1
- package/es/components/flyout/manager/actions.js +20 -0
- package/es/components/flyout/manager/flyout_child.js +23 -1
- package/es/components/flyout/manager/flyout_managed.js +65 -19
- package/es/components/flyout/manager/hooks.js +1 -1
- package/es/components/flyout/manager/index.js +2 -2
- package/es/components/flyout/manager/reducer.js +32 -8
- package/es/components/flyout/manager/selectors.js +8 -2
- package/es/components/flyout/manager/store.js +35 -2
- package/es/components/flyout/use_flyout_menu.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_icons.js +95 -143
- package/es/components/notification_icon/assets/info_fill.js +34 -0
- package/es/components/notification_icon/assets/warning_static.js +40 -0
- package/es/components/notification_icon/notification_icon.js +87 -0
- package/es/components/notification_icon/notification_icon.styles.js +22 -0
- package/es/components/table/mobile/table_sort_mobile.js +64 -103
- package/es/components/table/store/use_unique_column_id.js +25 -0
- package/es/components/table/table_header_cell.js +7 -8
- package/es/components/table/table_header_cell_checkbox.js +5 -6
- package/es/components/toast/global_toast_list.js +132 -6
- package/es/components/toast/global_toast_list.styles.js +31 -7
- package/es/components/toast/toast.js +242 -47
- package/es/components/toast/toast.styles.js +35 -47
- package/es/components/toast/toast_action.js +34 -0
- package/es/components/toast/types.js +9 -0
- package/es/components/tool_tip/tool_tip.js +61 -30
- package/es/components/tool_tip/tool_tip_anchor.js +5 -5
- package/es/components/tool_tip/tool_tip_manager.js +27 -2
- package/eui.d.ts +811 -552
- package/i18ntokens.json +981 -927
- package/lib/components/avatar/avatar.js +4 -0
- package/lib/components/avatar/avatar.styles.js +16 -16
- package/lib/components/banner/banner.js +1 -2
- package/lib/components/banner/banner.styles.js +1 -1
- package/lib/components/basic_table/basic_table.js +34 -4
- package/lib/components/basic_table/basic_table.styles.js +19 -1
- package/lib/components/basic_table/in_memory_table.js +17 -0
- package/lib/components/basic_table/index.js +8 -1
- package/lib/components/basic_table/pagination_bar.js +19 -4
- package/lib/components/basic_table/pagination_bar.styles.js +26 -0
- package/lib/components/basic_table/panel.styles.js +20 -0
- package/lib/components/basic_table/use_panel_props.js +33 -0
- package/lib/components/date_picker/auto_refresh/refresh_interval.js +175 -229
- package/lib/components/flyout/flyout.component.js +10 -6
- package/lib/components/flyout/flyout_menu.js +120 -19
- package/lib/components/flyout/flyout_menu.styles.js +2 -1
- package/lib/components/flyout/manager/actions.js +21 -1
- package/lib/components/flyout/manager/flyout_child.js +23 -1
- package/lib/components/flyout/manager/flyout_managed.js +41 -17
- package/lib/components/flyout/manager/hooks.js +6 -0
- package/lib/components/flyout/manager/index.js +12 -0
- package/lib/components/flyout/manager/reducer.js +31 -7
- package/lib/components/flyout/manager/selectors.js +9 -3
- package/lib/components/flyout/manager/store.js +34 -1
- package/lib/components/flyout/use_flyout_menu.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +95 -145
- package/lib/components/notification_icon/assets/info_fill.js +41 -0
- package/lib/components/notification_icon/assets/warning_static.js +47 -0
- package/lib/components/notification_icon/notification_icon.js +93 -0
- package/lib/components/notification_icon/notification_icon.styles.js +28 -0
- package/lib/components/notification_icon/svgs/info_fill.svg +3 -0
- package/lib/components/notification_icon/svgs/warning_static.svg +5 -0
- package/lib/components/table/mobile/table_sort_mobile.js +71 -108
- package/lib/components/table/store/use_unique_column_id.js +34 -0
- package/lib/components/table/table_header_cell.js +7 -8
- package/lib/components/table/table_header_cell_checkbox.js +5 -6
- package/lib/components/toast/global_toast_list.js +132 -6
- package/lib/components/toast/global_toast_list.styles.js +31 -8
- package/lib/components/toast/toast.js +244 -47
- package/lib/components/toast/toast.styles.js +32 -45
- package/lib/components/toast/toast_action.js +40 -0
- package/lib/components/toast/types.js +15 -0
- package/lib/components/tool_tip/tool_tip.js +59 -29
- package/lib/components/tool_tip/tool_tip_anchor.js +5 -5
- package/lib/components/tool_tip/tool_tip_manager.js +27 -2
- package/optimize/es/components/avatar/avatar.js +4 -0
- package/optimize/es/components/avatar/avatar.styles.js +16 -16
- package/optimize/es/components/banner/banner.js +1 -2
- package/optimize/es/components/banner/banner.styles.js +1 -1
- package/optimize/es/components/basic_table/basic_table.js +18 -5
- package/optimize/es/components/basic_table/basic_table.styles.js +19 -1
- package/optimize/es/components/basic_table/index.js +2 -1
- package/optimize/es/components/basic_table/pagination_bar.js +19 -4
- package/optimize/es/components/basic_table/pagination_bar.styles.js +21 -0
- package/optimize/es/components/basic_table/panel.styles.js +14 -0
- package/optimize/es/components/basic_table/use_panel_props.js +28 -0
- package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +172 -196
- package/optimize/es/components/flyout/flyout.component.js +10 -6
- package/optimize/es/components/flyout/flyout_menu.js +99 -18
- package/optimize/es/components/flyout/flyout_menu.styles.js +2 -1
- package/optimize/es/components/flyout/manager/actions.js +20 -0
- package/optimize/es/components/flyout/manager/flyout_managed.js +42 -18
- package/optimize/es/components/flyout/manager/hooks.js +1 -1
- package/optimize/es/components/flyout/manager/index.js +2 -2
- package/optimize/es/components/flyout/manager/reducer.js +32 -8
- package/optimize/es/components/flyout/manager/selectors.js +8 -2
- package/optimize/es/components/flyout/manager/store.js +35 -2
- package/optimize/es/components/flyout/use_flyout_menu.js +2 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +96 -115
- package/optimize/es/components/notification_icon/assets/info_fill.js +33 -0
- package/optimize/es/components/notification_icon/assets/warning_static.js +39 -0
- package/optimize/es/components/notification_icon/notification_icon.js +77 -0
- package/optimize/es/components/notification_icon/notification_icon.styles.js +22 -0
- package/optimize/es/components/table/mobile/table_sort_mobile.js +59 -82
- package/optimize/es/components/table/store/use_unique_column_id.js +25 -0
- package/optimize/es/components/table/table_header_cell.js +7 -8
- package/optimize/es/components/table/table_header_cell_checkbox.js +5 -6
- package/optimize/es/components/toast/global_toast_list.js +31 -6
- package/optimize/es/components/toast/global_toast_list.styles.js +31 -7
- package/optimize/es/components/toast/toast.js +143 -47
- package/optimize/es/components/toast/toast.styles.js +35 -47
- package/optimize/es/components/toast/toast_action.js +33 -0
- package/optimize/es/components/toast/types.js +9 -0
- package/optimize/es/components/tool_tip/tool_tip.js +58 -30
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +5 -5
- package/optimize/es/components/tool_tip/tool_tip_manager.js +27 -2
- package/optimize/lib/components/avatar/avatar.js +4 -0
- package/optimize/lib/components/avatar/avatar.styles.js +16 -16
- package/optimize/lib/components/banner/banner.js +1 -2
- package/optimize/lib/components/banner/banner.styles.js +1 -1
- package/optimize/lib/components/basic_table/basic_table.js +17 -4
- package/optimize/lib/components/basic_table/basic_table.styles.js +19 -1
- package/optimize/lib/components/basic_table/index.js +8 -1
- package/optimize/lib/components/basic_table/pagination_bar.js +19 -4
- package/optimize/lib/components/basic_table/pagination_bar.styles.js +26 -0
- package/optimize/lib/components/basic_table/panel.styles.js +20 -0
- package/optimize/lib/components/basic_table/use_panel_props.js +33 -0
- package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +170 -194
- package/optimize/lib/components/flyout/flyout.component.js +10 -6
- package/optimize/lib/components/flyout/flyout_menu.js +98 -18
- package/optimize/lib/components/flyout/flyout_menu.styles.js +2 -1
- package/optimize/lib/components/flyout/manager/actions.js +21 -1
- package/optimize/lib/components/flyout/manager/flyout_managed.js +41 -17
- package/optimize/lib/components/flyout/manager/hooks.js +6 -0
- package/optimize/lib/components/flyout/manager/index.js +12 -0
- package/optimize/lib/components/flyout/manager/reducer.js +31 -7
- package/optimize/lib/components/flyout/manager/selectors.js +9 -3
- package/optimize/lib/components/flyout/manager/store.js +34 -1
- package/optimize/lib/components/flyout/use_flyout_menu.js +2 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +96 -117
- package/optimize/lib/components/notification_icon/assets/info_fill.js +41 -0
- package/optimize/lib/components/notification_icon/assets/warning_static.js +47 -0
- package/optimize/lib/components/notification_icon/notification_icon.js +83 -0
- package/optimize/lib/components/notification_icon/notification_icon.styles.js +28 -0
- package/optimize/lib/components/notification_icon/svgs/info_fill.svg +3 -0
- package/optimize/lib/components/notification_icon/svgs/warning_static.svg +5 -0
- package/optimize/lib/components/table/mobile/table_sort_mobile.js +61 -83
- package/optimize/lib/components/table/store/use_unique_column_id.js +34 -0
- package/optimize/lib/components/table/table_header_cell.js +7 -8
- package/optimize/lib/components/table/table_header_cell_checkbox.js +5 -6
- package/optimize/lib/components/toast/global_toast_list.js +31 -6
- package/optimize/lib/components/toast/global_toast_list.styles.js +30 -7
- package/optimize/lib/components/toast/toast.js +146 -47
- package/optimize/lib/components/toast/toast.styles.js +33 -45
- package/optimize/lib/components/toast/toast_action.js +39 -0
- package/optimize/lib/components/toast/types.js +15 -0
- package/optimize/lib/components/tool_tip/tool_tip.js +57 -29
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +5 -5
- package/optimize/lib/components/tool_tip/tool_tip_manager.js +27 -2
- package/package.json +9 -6
- package/test-env/components/avatar/avatar.js +4 -0
- package/test-env/components/avatar/avatar.styles.js +16 -16
- package/test-env/components/banner/banner.js +1 -2
- package/test-env/components/banner/banner.styles.js +1 -1
- package/test-env/components/basic_table/basic_table.js +34 -4
- package/test-env/components/basic_table/basic_table.styles.js +19 -1
- package/test-env/components/basic_table/in_memory_table.js +17 -0
- package/test-env/components/basic_table/index.js +8 -1
- package/test-env/components/basic_table/pagination_bar.js +19 -4
- package/test-env/components/basic_table/pagination_bar.styles.js +26 -0
- package/test-env/components/basic_table/panel.styles.js +20 -0
- package/test-env/components/basic_table/use_panel_props.js +33 -0
- package/test-env/components/date_picker/auto_refresh/refresh_interval.js +170 -220
- package/test-env/components/flyout/flyout.component.js +10 -6
- package/test-env/components/flyout/flyout_menu.js +121 -19
- package/test-env/components/flyout/flyout_menu.styles.js +2 -1
- package/test-env/components/flyout/manager/actions.js +21 -1
- package/test-env/components/flyout/manager/flyout_child.js +23 -1
- package/test-env/components/flyout/manager/flyout_managed.js +41 -17
- package/test-env/components/flyout/manager/hooks.js +6 -0
- package/test-env/components/flyout/manager/index.js +12 -0
- package/test-env/components/flyout/manager/reducer.js +31 -7
- package/test-env/components/flyout/manager/selectors.js +9 -3
- package/test-env/components/flyout/manager/store.js +34 -1
- package/test-env/components/flyout/use_flyout_menu.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +95 -139
- package/test-env/components/notification_icon/assets/info_fill.js +41 -0
- package/test-env/components/notification_icon/assets/warning_static.js +47 -0
- package/test-env/components/notification_icon/notification_icon.js +46 -0
- package/test-env/components/notification_icon/notification_icon.styles.js +28 -0
- package/test-env/components/table/mobile/table_sort_mobile.js +61 -98
- package/test-env/components/table/store/use_unique_column_id.js +34 -0
- package/test-env/components/table/table_header_cell.js +7 -8
- package/test-env/components/table/table_header_cell_checkbox.js +5 -6
- package/test-env/components/toast/global_toast_list.js +132 -6
- package/test-env/components/toast/global_toast_list.styles.js +30 -7
- package/test-env/components/toast/toast.js +242 -47
- package/test-env/components/toast/toast.styles.js +33 -45
- package/test-env/components/toast/toast_action.js +39 -0
- package/test-env/components/toast/types.js +15 -0
- package/test-env/components/tool_tip/tool_tip.js +57 -29
- package/test-env/components/tool_tip/tool_tip_anchor.js +5 -5
- package/test-env/components/tool_tip/tool_tip_manager.js +27 -2
package/eui.d.ts
CHANGED
|
@@ -2861,8 +2861,17 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
|
|
|
2861
2861
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_manager' {
|
|
2862
2862
|
class ToolTipManager {
|
|
2863
2863
|
toolTipsToHide: Set<Function>;
|
|
2864
|
-
|
|
2864
|
+
lastHiddenAt: number | null;
|
|
2865
|
+
registerTooltip: (hideCallback: Function) => {
|
|
2866
|
+
skipAnimation: boolean;
|
|
2867
|
+
} | null;
|
|
2865
2868
|
deregisterToolTip: (hideCallback: Function) => void;
|
|
2869
|
+
/**
|
|
2870
|
+
* Resets all internal state. Primarily intended for tests, so that a
|
|
2871
|
+
* tooltip shown in one test doesn't leak into the next (the manager is a
|
|
2872
|
+
* module-level singleton).
|
|
2873
|
+
*/
|
|
2874
|
+
reset: () => void;
|
|
2866
2875
|
}
|
|
2867
2876
|
export const toolTipManager: ToolTipManager;
|
|
2868
2877
|
export {};
|
|
@@ -11835,7 +11844,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
11835
11844
|
|
|
11836
11845
|
}
|
|
11837
11846
|
declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons' {
|
|
11838
|
-
import React
|
|
11847
|
+
import React from 'react';
|
|
11839
11848
|
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
11840
11849
|
import { IconColor, IconType } from '@elastic/eui/src/components/icon';
|
|
11841
11850
|
import { EuiFormControlLayoutClearButtonProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button';
|
|
@@ -11859,14 +11868,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
11859
11868
|
compressed?: boolean;
|
|
11860
11869
|
isDisabled?: boolean;
|
|
11861
11870
|
}
|
|
11862
|
-
export
|
|
11863
|
-
render(): React.JSX.Element;
|
|
11864
|
-
renderCustomIcon(): React.JSX.Element | null;
|
|
11865
|
-
renderDropdownIcon(): React.JSX.Element | null;
|
|
11866
|
-
renderLoadingSpinner(): React.JSX.Element | null;
|
|
11867
|
-
renderClearButton(): React.JSX.Element | null;
|
|
11868
|
-
renderInvalidIcon(): React.JSX.Element | null;
|
|
11869
|
-
}
|
|
11871
|
+
export const EuiFormControlLayoutIcons: ({ side, iconsPosition, compressed, isDisabled, icon, clear, isLoading, isInvalid, isDropdown, }: EuiFormControlLayoutIconsProps) => React.JSX.Element;
|
|
11870
11872
|
|
|
11871
11873
|
}
|
|
11872
11874
|
declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
|
|
@@ -16825,10 +16827,22 @@ declare module '@elastic/eui/src/components/table/table_pagination' {
|
|
|
16825
16827
|
export { EuiTablePagination } from '@elastic/eui/src/components/table/table_pagination/table_pagination';
|
|
16826
16828
|
export { useEuiTablePaginationDefaults, euiTablePaginationDefaults, } from '@elastic/eui/src/components/table/table_pagination/table_pagination_defaults';
|
|
16827
16829
|
|
|
16830
|
+
}
|
|
16831
|
+
declare module '@elastic/eui/src/components/basic_table/pagination_bar.styles' {
|
|
16832
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
16833
|
+
/**
|
|
16834
|
+
* @internal
|
|
16835
|
+
*/
|
|
16836
|
+
export const euiBasicTablePaginationBarStyles: (theme: UseEuiTheme) => {
|
|
16837
|
+
root: import("@emotion/react").SerializedStyles;
|
|
16838
|
+
panelled: import("@emotion/react").SerializedStyles;
|
|
16839
|
+
};
|
|
16840
|
+
|
|
16828
16841
|
}
|
|
16829
16842
|
declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
|
|
16830
16843
|
import React from 'react';
|
|
16831
|
-
import {
|
|
16844
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
16845
|
+
import type { ItemsPerPageChangeHandler, PageChangeHandler } from '@elastic/eui/src/components/table/table_pagination/table_pagination';
|
|
16832
16846
|
export interface Pagination {
|
|
16833
16847
|
/**
|
|
16834
16848
|
* The current page (zero-based) index
|
|
@@ -16859,8 +16873,21 @@ declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
|
|
|
16859
16873
|
*/
|
|
16860
16874
|
showPerPageOptions?: boolean;
|
|
16861
16875
|
}
|
|
16862
|
-
|
|
16876
|
+
/**
|
|
16877
|
+
* @internal
|
|
16878
|
+
*/
|
|
16879
|
+
interface PaginationBarProps {
|
|
16863
16880
|
pagination: Pagination;
|
|
16881
|
+
/**
|
|
16882
|
+
* Enable the panelled style.
|
|
16883
|
+
*
|
|
16884
|
+
* Panelled style adds contrast between the table navigation controls
|
|
16885
|
+
* and table content itself. It should be used in tables rendered outside
|
|
16886
|
+
* EUI containers like `<EuiPanel>` or `<EuiFlyout>`.
|
|
16887
|
+
* @default false
|
|
16888
|
+
*/
|
|
16889
|
+
panelled?: boolean;
|
|
16890
|
+
responsiveBreakpoint?: EuiBreakpointSize | boolean;
|
|
16864
16891
|
onPageSizeChange: ItemsPerPageChangeHandler;
|
|
16865
16892
|
onPageChange: PageChangeHandler;
|
|
16866
16893
|
/**
|
|
@@ -16869,7 +16896,13 @@ declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
|
|
|
16869
16896
|
'aria-controls'?: string;
|
|
16870
16897
|
'aria-label'?: string;
|
|
16871
16898
|
}
|
|
16872
|
-
|
|
16899
|
+
/**
|
|
16900
|
+
* An internal utility component that renders EuiTablePagination with
|
|
16901
|
+
* proper configuration and handles the `panelled` styles.
|
|
16902
|
+
* @internal
|
|
16903
|
+
*/
|
|
16904
|
+
export const PaginationBar: ({ pagination, panelled, responsiveBreakpoint, onPageSizeChange, onPageChange, "aria-controls": ariaControls, "aria-label": ariaLabel, }: PaginationBarProps) => React.JSX.Element;
|
|
16905
|
+
export {};
|
|
16873
16906
|
|
|
16874
16907
|
}
|
|
16875
16908
|
declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
@@ -17237,6 +17270,20 @@ declare module '@elastic/eui/src/components/table/sticky_header' {
|
|
|
17237
17270
|
export { EuiTableStickyHeader } from '@elastic/eui/src/components/table/sticky_header/sticky_header';
|
|
17238
17271
|
export { useEuiTableWithinStickyHeader } from '@elastic/eui/src/components/table/sticky_header/context';
|
|
17239
17272
|
|
|
17273
|
+
}
|
|
17274
|
+
declare module '@elastic/eui/src/components/table/store/use_unique_column_id' {
|
|
17275
|
+
import React from 'react';
|
|
17276
|
+
/**
|
|
17277
|
+
* Returns a stable unique column ID to be used when registering columns.
|
|
17278
|
+
* It uses `React.useId()` when available and falls back to UUID v4 on React 17.
|
|
17279
|
+
*
|
|
17280
|
+
* This is needed so that static `uuid` mocks don't break column registration
|
|
17281
|
+
* (at least in React 18+; in older versions this function would need
|
|
17282
|
+
* to be mocked to return something unique, but stable).
|
|
17283
|
+
* @internal
|
|
17284
|
+
*/
|
|
17285
|
+
export const useEuiTableStoreUniqueColumnId: typeof React.useId;
|
|
17286
|
+
|
|
17240
17287
|
}
|
|
17241
17288
|
declare module '@elastic/eui/src/components/table/table_header_cell' {
|
|
17242
17289
|
import { FunctionComponent, ThHTMLAttributes, ReactNode } from 'react';
|
|
@@ -17339,7 +17386,7 @@ declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile_item'
|
|
|
17339
17386
|
|
|
17340
17387
|
}
|
|
17341
17388
|
declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile' {
|
|
17342
|
-
import React, {
|
|
17389
|
+
import React, { Key, ReactNode } from 'react';
|
|
17343
17390
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
17344
17391
|
import { PopoverAnchorPosition } from '@elastic/eui/src/components/popover';
|
|
17345
17392
|
interface ItemProps {
|
|
@@ -17353,21 +17400,10 @@ declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile' {
|
|
|
17353
17400
|
anchorPosition?: PopoverAnchorPosition;
|
|
17354
17401
|
items?: ItemProps[];
|
|
17355
17402
|
}
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
state: {
|
|
17361
|
-
isPopoverOpen: boolean;
|
|
17362
|
-
};
|
|
17363
|
-
onButtonClick: () => void;
|
|
17364
|
-
closePopover: () => void;
|
|
17365
|
-
euiTableSortMobileStyles: {
|
|
17366
|
-
marginInlineStart: string;
|
|
17367
|
-
label: string;
|
|
17368
|
-
};
|
|
17369
|
-
render(): React.JSX.Element;
|
|
17370
|
-
}
|
|
17403
|
+
export const EuiTableSortMobile: {
|
|
17404
|
+
({ className, anchorPosition, items, ...rest }: EuiTableSortMobileProps): React.JSX.Element;
|
|
17405
|
+
displayName: string;
|
|
17406
|
+
};
|
|
17371
17407
|
export {};
|
|
17372
17408
|
|
|
17373
17409
|
}
|
|
@@ -17489,449 +17525,6 @@ declare module '@elastic/eui/src/components/table' {
|
|
|
17489
17525
|
export { EuiTableRowCellCheckbox } from '@elastic/eui/src/components/table/table_row_cell_checkbox';
|
|
17490
17526
|
export { EUI_TABLE_CSS_CONTAINER_NAME } from '@elastic/eui/src/components/table/const';
|
|
17491
17527
|
|
|
17492
|
-
}
|
|
17493
|
-
declare module '@elastic/eui/src/components/flyout/manager/const' {
|
|
17494
|
-
/**
|
|
17495
|
-
* Allowed values for `session` prop to control the way the session is managed for a flyout.
|
|
17496
|
-
*/
|
|
17497
|
-
export const SESSION_START = "start";
|
|
17498
|
-
export const SESSION_INHERIT = "inherit";
|
|
17499
|
-
export const SESSION_NEVER = "never";
|
|
17500
|
-
/**
|
|
17501
|
-
* Data attribute applied to a managed flyout element to help identify it as a managed flyout.
|
|
17502
|
-
*/
|
|
17503
|
-
export const PROPERTY_FLYOUT = "data-managed-flyout";
|
|
17504
|
-
/**
|
|
17505
|
-
* Data attribute indicating whether the flyout is the `main` or `child` flyout.
|
|
17506
|
-
*/
|
|
17507
|
-
export const PROPERTY_LEVEL = "data-managed-flyout-level";
|
|
17508
|
-
/**
|
|
17509
|
-
* Data attribute representing how multiple flyouts are laid out
|
|
17510
|
-
* (`side-by-side` or `stacked`).
|
|
17511
|
-
*/
|
|
17512
|
-
export const PROPERTY_LAYOUT_MODE = "data-managed-flyout-layout-mode";
|
|
17513
|
-
/** Stacked layout mode where child flyouts overlay on top of the main flyout. */
|
|
17514
|
-
export const LAYOUT_MODE_STACKED = "stacked";
|
|
17515
|
-
/** Side-by-side layout mode where child flyouts render adjacent to the main flyout. */
|
|
17516
|
-
export const LAYOUT_MODE_SIDE_BY_SIDE = "side-by-side";
|
|
17517
|
-
/** The primary (parent) flyout in a session. */
|
|
17518
|
-
export const LEVEL_MAIN = "main";
|
|
17519
|
-
/** The secondary (child) flyout spawned by the main flyout. */
|
|
17520
|
-
export const LEVEL_CHILD = "child";
|
|
17521
|
-
/** Flyout is mounting and playing its opening animation. */
|
|
17522
|
-
export const STAGE_OPENING = "opening";
|
|
17523
|
-
/** Flyout is fully visible and interactive. */
|
|
17524
|
-
export const STAGE_ACTIVE = "active";
|
|
17525
|
-
/** Flyout is unmounted or not currently visible/interactable. */
|
|
17526
|
-
export const STAGE_INACTIVE = "inactive";
|
|
17527
|
-
/** Main flyout is transitioning behind an active session flyout. */
|
|
17528
|
-
export const STAGE_BACKGROUNDING = "backgrounding";
|
|
17529
|
-
/** Main flyout is backgrounded behind an active session flyout. */
|
|
17530
|
-
export const STAGE_BACKGROUNDED = "backgrounded";
|
|
17531
|
-
/** Flyout is returning to the foreground from a backgrounded state. */
|
|
17532
|
-
export const STAGE_RETURNING = "returning";
|
|
17533
|
-
/** Flyout is playing its closing animation. */
|
|
17534
|
-
export const STAGE_CLOSING = "closing";
|
|
17535
|
-
|
|
17536
|
-
}
|
|
17537
|
-
declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
17538
|
-
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
17539
|
-
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
17540
|
-
import { STAGE_CLOSING, STAGE_OPENING, STAGE_ACTIVE, STAGE_INACTIVE, STAGE_BACKGROUNDING, STAGE_BACKGROUNDED, STAGE_RETURNING, LAYOUT_MODE_SIDE_BY_SIDE, LAYOUT_MODE_STACKED, LEVEL_CHILD, LEVEL_MAIN } from '@elastic/eui/src/components/flyout/manager/const';
|
|
17541
|
-
export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
|
|
17542
|
-
export type EuiFlyoutLevel = typeof LEVEL_MAIN | typeof LEVEL_CHILD;
|
|
17543
|
-
export type EuiFlyoutActivityStage = typeof STAGE_OPENING | typeof STAGE_ACTIVE | typeof STAGE_INACTIVE | typeof STAGE_BACKGROUNDING | typeof STAGE_BACKGROUNDED | typeof STAGE_RETURNING | typeof STAGE_CLOSING;
|
|
17544
|
-
export interface EuiManagedFlyoutState {
|
|
17545
|
-
flyoutId: string;
|
|
17546
|
-
level: EuiFlyoutLevel;
|
|
17547
|
-
width?: number;
|
|
17548
|
-
size?: string;
|
|
17549
|
-
minWidth?: number;
|
|
17550
|
-
activityStage?: EuiFlyoutActivityStage;
|
|
17551
|
-
}
|
|
17552
|
-
/** Entry for a child flyout in session history. */
|
|
17553
|
-
export interface ChildHistoryEntry {
|
|
17554
|
-
flyoutId: string;
|
|
17555
|
-
title: string;
|
|
17556
|
-
iconType?: IconType;
|
|
17557
|
-
}
|
|
17558
|
-
export interface FlyoutSession {
|
|
17559
|
-
/** ID of the main flyout for this session */
|
|
17560
|
-
mainFlyoutId: string;
|
|
17561
|
-
/** ID of the child flyout for this session */
|
|
17562
|
-
childFlyoutId: string | null;
|
|
17563
|
-
/** Title of the main flyout in this session */
|
|
17564
|
-
title: string;
|
|
17565
|
-
/** Optional icon for this session when shown in history popover */
|
|
17566
|
-
iconType?: IconType;
|
|
17567
|
-
/** z-index value to be used by the flyout session */
|
|
17568
|
-
zIndex: number;
|
|
17569
|
-
/** Title of the current child flyout. */
|
|
17570
|
-
childTitle?: string;
|
|
17571
|
-
/** Icon of the current child flyout. */
|
|
17572
|
-
childIconType?: IconType;
|
|
17573
|
-
/** Stack of child flyouts we navigated away from. */
|
|
17574
|
-
childHistory: ChildHistoryEntry[];
|
|
17575
|
-
/** Key that scopes this session's history; same Symbol reference = same history group. Always set (from action or Symbol()). */
|
|
17576
|
-
historyKey: symbol;
|
|
17577
|
-
}
|
|
17578
|
-
export interface PushPaddingOffsets {
|
|
17579
|
-
/** Push padding applied to the left side (in pixels) */
|
|
17580
|
-
left: number;
|
|
17581
|
-
/** Push padding applied to the right side (in pixels) */
|
|
17582
|
-
right: number;
|
|
17583
|
-
}
|
|
17584
|
-
export interface EuiFlyoutManagerState {
|
|
17585
|
-
sessions: FlyoutSession[];
|
|
17586
|
-
flyouts: EuiManagedFlyoutState[];
|
|
17587
|
-
layoutMode: EuiFlyoutLayoutMode;
|
|
17588
|
-
/** Active push padding offsets (updated by active push flyouts) */
|
|
17589
|
-
pushPadding?: PushPaddingOffsets;
|
|
17590
|
-
currentZIndex: number;
|
|
17591
|
-
unmanagedFlyouts: string[];
|
|
17592
|
-
/** The container element that flyouts are positioned relative to (if any). */
|
|
17593
|
-
containerElement?: HTMLElement | null;
|
|
17594
|
-
/**
|
|
17595
|
-
* Reference width used for layout and resize clamping (container or viewport).
|
|
17596
|
-
* Set by the layout mode hook so flyouts use the same value for consistent clamping.
|
|
17597
|
-
*/
|
|
17598
|
-
referenceWidth?: number;
|
|
17599
|
-
}
|
|
17600
|
-
/**
|
|
17601
|
-
* Public API surface provided through React context.
|
|
17602
|
-
* Kept intentionally decoupled from action types to avoid module cycles.
|
|
17603
|
-
*/
|
|
17604
|
-
export interface FlyoutManagerApi {
|
|
17605
|
-
state: EuiFlyoutManagerState;
|
|
17606
|
-
dispatch: (action: Action) => void;
|
|
17607
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
17608
|
-
closeFlyout: (flyoutId: string) => void;
|
|
17609
|
-
closeAllFlyouts: () => void;
|
|
17610
|
-
setActiveFlyout: (flyoutId: string | null) => void;
|
|
17611
|
-
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
17612
|
-
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
17613
|
-
setContainerElement: (element: HTMLElement | null) => void;
|
|
17614
|
-
goBack: () => void;
|
|
17615
|
-
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
17616
|
-
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
17617
|
-
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
17618
|
-
historyItems: Array<{
|
|
17619
|
-
title: string;
|
|
17620
|
-
iconType?: IconType;
|
|
17621
|
-
onClick: () => void;
|
|
17622
|
-
}>;
|
|
17623
|
-
}
|
|
17624
|
-
|
|
17625
|
-
}
|
|
17626
|
-
declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
17627
|
-
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
17628
|
-
import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
|
|
17629
|
-
interface BaseAction {
|
|
17630
|
-
type: `${typeof PREFIX}/${string}`;
|
|
17631
|
-
}
|
|
17632
|
-
/** Dispatched when a flyout registers itself with the manager. */
|
|
17633
|
-
export const ACTION_ADD: "eui/flyoutManager/add";
|
|
17634
|
-
/** Dispatched to remove a flyout from the manager (usually on close/unmount). */
|
|
17635
|
-
export const ACTION_CLOSE: "eui/flyoutManager/close";
|
|
17636
|
-
/** Dispatched to remove all flyouts from the manager. */
|
|
17637
|
-
export const ACTION_CLOSE_ALL: "eui/flyoutManager/closeAll";
|
|
17638
|
-
/** Dispatched to set which flyout is currently active within the session. */
|
|
17639
|
-
export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
|
|
17640
|
-
/** Dispatched when an active flyout's pixel width changes (for responsive layout). */
|
|
17641
|
-
export const ACTION_SET_WIDTH: "eui/flyoutManager/setWidth";
|
|
17642
|
-
/** Dispatched to switch layout mode between `side-by-side` and `stacked`. */
|
|
17643
|
-
export const ACTION_SET_LAYOUT_MODE: "eui/flyoutManager/setLayoutMode";
|
|
17644
|
-
/** Dispatched to update a flyout's activity stage (e.g., opening -> active). */
|
|
17645
|
-
export const ACTION_SET_ACTIVITY_STAGE: "eui/flyoutManager/setActivityStage";
|
|
17646
|
-
/** Dispatched to go back one session (remove current session). */
|
|
17647
|
-
export const ACTION_GO_BACK: "eui/flyoutManager/goBack";
|
|
17648
|
-
/** Dispatched to navigate to a specific flyout (remove all sessions after it). */
|
|
17649
|
-
export const ACTION_GO_TO_FLYOUT: "eui/flyoutManager/goToFlyout";
|
|
17650
|
-
/** Dispatched to set push padding offset for a side. */
|
|
17651
|
-
export const ACTION_SET_PUSH_PADDING: "eui/flyoutManager/setPushPadding";
|
|
17652
|
-
/** Dispatched to set the container element for container-relative flyouts. */
|
|
17653
|
-
export const ACTION_SET_CONTAINER_ELEMENT: "eui/flyoutManager/setContainerElement";
|
|
17654
|
-
/** Dispatched to set the reference width used for layout and resize clamping. */
|
|
17655
|
-
export const ACTION_SET_REFERENCE_WIDTH: "eui/flyoutManager/setReferenceWidth";
|
|
17656
|
-
export const ACTION_ADD_UNMANAGED_FLYOUT: "eui/flyoutManager/addUnmanagedFlyout";
|
|
17657
|
-
export const ACTION_CLOSE_UNMANAGED_FLYOUT: "eui/flyoutManager/closeUnmanagedFlyout";
|
|
17658
|
-
/**
|
|
17659
|
-
* Add a flyout to manager state. The manager will create or update
|
|
17660
|
-
* the current session depending on the `level` provided.
|
|
17661
|
-
*/
|
|
17662
|
-
export interface AddFlyoutAction extends BaseAction {
|
|
17663
|
-
type: typeof ACTION_ADD;
|
|
17664
|
-
flyoutId: string;
|
|
17665
|
-
title: string;
|
|
17666
|
-
level: EuiFlyoutLevel;
|
|
17667
|
-
size?: string;
|
|
17668
|
-
historyKey?: symbol;
|
|
17669
|
-
iconType?: IconType;
|
|
17670
|
-
minWidth?: number;
|
|
17671
|
-
}
|
|
17672
|
-
/** Remove a flyout from manager state. Also updates the active session. */
|
|
17673
|
-
export interface CloseFlyoutAction extends BaseAction {
|
|
17674
|
-
type: typeof ACTION_CLOSE;
|
|
17675
|
-
flyoutId: string;
|
|
17676
|
-
}
|
|
17677
|
-
/** Remove all flyouts from manager state. */
|
|
17678
|
-
export interface CloseAllFlyoutsAction extends BaseAction {
|
|
17679
|
-
type: typeof ACTION_CLOSE_ALL;
|
|
17680
|
-
}
|
|
17681
|
-
/** Set the active flyout within the current session (or clear with `null`). */
|
|
17682
|
-
export interface SetActiveFlyoutAction extends BaseAction {
|
|
17683
|
-
type: typeof ACTION_SET_ACTIVE;
|
|
17684
|
-
flyoutId: string | null;
|
|
17685
|
-
}
|
|
17686
|
-
/** Update a flyout's measured width in pixels. */
|
|
17687
|
-
export interface SetWidthAction extends BaseAction {
|
|
17688
|
-
type: typeof ACTION_SET_WIDTH;
|
|
17689
|
-
flyoutId: string;
|
|
17690
|
-
width: number;
|
|
17691
|
-
}
|
|
17692
|
-
/** Change how flyouts are arranged: `side-by-side` or `stacked`. */
|
|
17693
|
-
export interface SetLayoutModeAction extends BaseAction {
|
|
17694
|
-
type: typeof ACTION_SET_LAYOUT_MODE;
|
|
17695
|
-
layoutMode: EuiFlyoutLayoutMode;
|
|
17696
|
-
}
|
|
17697
|
-
/** Set a specific flyout's activity stage. */
|
|
17698
|
-
export interface SetActivityStageAction extends BaseAction {
|
|
17699
|
-
type: typeof ACTION_SET_ACTIVITY_STAGE;
|
|
17700
|
-
flyoutId: string;
|
|
17701
|
-
activityStage: EuiFlyoutActivityStage;
|
|
17702
|
-
}
|
|
17703
|
-
/** Go back one session (remove current session from stack). */
|
|
17704
|
-
export interface GoBackAction extends BaseAction {
|
|
17705
|
-
type: typeof ACTION_GO_BACK;
|
|
17706
|
-
}
|
|
17707
|
-
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history). */
|
|
17708
|
-
export interface GoToFlyoutAction extends BaseAction {
|
|
17709
|
-
type: typeof ACTION_GO_TO_FLYOUT;
|
|
17710
|
-
flyoutId: string;
|
|
17711
|
-
/** When 'child', find flyout in current session's childHistory and pop to it. When 'main' or omitted, find session by mainFlyoutId. */
|
|
17712
|
-
level?: EuiFlyoutLevel;
|
|
17713
|
-
}
|
|
17714
|
-
/** Set push padding offset for a specific side. */
|
|
17715
|
-
export interface SetPushPaddingAction extends BaseAction {
|
|
17716
|
-
type: typeof ACTION_SET_PUSH_PADDING;
|
|
17717
|
-
side: 'left' | 'right';
|
|
17718
|
-
width: number;
|
|
17719
|
-
}
|
|
17720
|
-
export interface AddUnmanagedFlyoutAction extends BaseAction {
|
|
17721
|
-
type: typeof ACTION_ADD_UNMANAGED_FLYOUT;
|
|
17722
|
-
flyoutId: string;
|
|
17723
|
-
}
|
|
17724
|
-
export interface CloseUnmanagedFlyoutAction extends BaseAction {
|
|
17725
|
-
type: typeof ACTION_CLOSE_UNMANAGED_FLYOUT;
|
|
17726
|
-
flyoutId: string;
|
|
17727
|
-
}
|
|
17728
|
-
/** Set the container element for container-relative positioning. */
|
|
17729
|
-
export interface SetContainerElementAction extends BaseAction {
|
|
17730
|
-
type: typeof ACTION_SET_CONTAINER_ELEMENT;
|
|
17731
|
-
element: HTMLElement | null;
|
|
17732
|
-
}
|
|
17733
|
-
/** Set the reference width for layout and resize clamping. */
|
|
17734
|
-
export interface SetReferenceWidthAction extends BaseAction {
|
|
17735
|
-
type: typeof ACTION_SET_REFERENCE_WIDTH;
|
|
17736
|
-
width: number;
|
|
17737
|
-
}
|
|
17738
|
-
/** Union of all flyout manager actions. */
|
|
17739
|
-
export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction | SetContainerElementAction | SetReferenceWidthAction;
|
|
17740
|
-
/**
|
|
17741
|
-
* Register a flyout with the manager.
|
|
17742
|
-
* - `title` is used for the flyout menu.
|
|
17743
|
-
* - `level` determines whether the flyout is `main` or `child`.
|
|
17744
|
-
* - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
|
|
17745
|
-
* - Optional `historyKey` (Symbol) scopes history; only flyouts with the same reference share Back/history. Omit for a unique group per session.
|
|
17746
|
-
* - Optional `iconType` is shown next to the session title in the history menu.
|
|
17747
|
-
*/
|
|
17748
|
-
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => AddFlyoutAction;
|
|
17749
|
-
/** Unregister a flyout and update the session accordingly. */
|
|
17750
|
-
export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
|
|
17751
|
-
/** Unregister all flyouts. */
|
|
17752
|
-
export const closeAllFlyouts: () => CloseAllFlyoutsAction;
|
|
17753
|
-
/** Set or clear the active flyout for the current session. */
|
|
17754
|
-
export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
|
|
17755
|
-
/** Record a flyout's current width in pixels. */
|
|
17756
|
-
export const setFlyoutWidth: (flyoutId: string, width: number) => SetWidthAction;
|
|
17757
|
-
/** Switch layout mode between `side-by-side` and `stacked`. */
|
|
17758
|
-
export const setLayoutMode: (layoutMode: EuiFlyoutLayoutMode) => SetLayoutModeAction;
|
|
17759
|
-
/** Update a flyout's activity stage. */
|
|
17760
|
-
export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
|
|
17761
|
-
/** Go back one session (remove current session from stack). */
|
|
17762
|
-
export const goBack: () => GoBackAction;
|
|
17763
|
-
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history when level === 'child'). */
|
|
17764
|
-
export const goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => GoToFlyoutAction;
|
|
17765
|
-
/** Set push padding offset for a specific side. */
|
|
17766
|
-
export const setPushPadding: (side: "left" | "right", width: number) => SetPushPaddingAction;
|
|
17767
|
-
/** Register an unmanaged flyout for z-index positioning purposes */
|
|
17768
|
-
export const addUnmanagedFlyout: (flyoutId: string) => AddUnmanagedFlyoutAction;
|
|
17769
|
-
/** Unregister an unmanaged flyout */
|
|
17770
|
-
export const closeUnmanagedFlyout: (flyoutId: string) => CloseUnmanagedFlyoutAction;
|
|
17771
|
-
/** Set the container element for container-relative flyout positioning. */
|
|
17772
|
-
export const setContainerElement: (element: HTMLElement | null) => SetContainerElementAction;
|
|
17773
|
-
/** Set the reference width for layout and resize clamping. */
|
|
17774
|
-
export const setReferenceWidth: (width: number) => SetReferenceWidthAction;
|
|
17775
|
-
export {};
|
|
17776
|
-
|
|
17777
|
-
}
|
|
17778
|
-
declare module '@elastic/eui/src/components/flyout/manager/reducer' {
|
|
17779
|
-
import { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
17780
|
-
import { EuiFlyoutManagerState } from '@elastic/eui/src/components/flyout/manager/types';
|
|
17781
|
-
/**
|
|
17782
|
-
* Default flyout manager state used to initialize the reducer.
|
|
17783
|
-
*/
|
|
17784
|
-
export const initialState: EuiFlyoutManagerState;
|
|
17785
|
-
/**
|
|
17786
|
-
* Reducer handling all flyout manager actions and state transitions.
|
|
17787
|
-
*/
|
|
17788
|
-
export function flyoutManagerReducer(state: EuiFlyoutManagerState | undefined, action: Action): EuiFlyoutManagerState;
|
|
17789
|
-
|
|
17790
|
-
}
|
|
17791
|
-
declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
17792
|
-
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
17793
|
-
import type { EuiFlyoutLevel, EuiFlyoutManagerState, FlyoutSession } from '@elastic/eui/src/components/flyout/manager/types';
|
|
17794
|
-
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
17795
|
-
type Listener = () => void;
|
|
17796
|
-
/**
|
|
17797
|
-
* Events emitted by the flyout manager store for external consumers.
|
|
17798
|
-
*/
|
|
17799
|
-
export type FlyoutManagerEvent = {
|
|
17800
|
-
type: 'CLOSE_SESSION';
|
|
17801
|
-
session: FlyoutSession;
|
|
17802
|
-
};
|
|
17803
|
-
type EventListener = (event: FlyoutManagerEvent) => void;
|
|
17804
|
-
export interface FlyoutManagerStore {
|
|
17805
|
-
getState: () => EuiFlyoutManagerState;
|
|
17806
|
-
subscribe: (listener: Listener) => () => void;
|
|
17807
|
-
subscribeToEvents: (listener: EventListener) => () => void;
|
|
17808
|
-
dispatch: (action: Action) => void;
|
|
17809
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
17810
|
-
closeFlyout: (flyoutId: string) => void;
|
|
17811
|
-
closeAllFlyouts: () => void;
|
|
17812
|
-
setActiveFlyout: (flyoutId: string | null) => void;
|
|
17813
|
-
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
17814
|
-
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
17815
|
-
setContainerElement: (element: HTMLElement | null) => void;
|
|
17816
|
-
goBack: () => void;
|
|
17817
|
-
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
17818
|
-
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
17819
|
-
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
17820
|
-
historyItems: Array<{
|
|
17821
|
-
title: string;
|
|
17822
|
-
iconType?: IconType;
|
|
17823
|
-
onClick: () => void;
|
|
17824
|
-
}>;
|
|
17825
|
-
}
|
|
17826
|
-
/**
|
|
17827
|
-
* Returns a singleton store instance shared across all React roots within the same JS context.
|
|
17828
|
-
* Uses module-level singleton to ensure deduplication even if modules are loaded twice.
|
|
17829
|
-
*/
|
|
17830
|
-
export function getFlyoutManagerStore(): FlyoutManagerStore;
|
|
17831
|
-
/**
|
|
17832
|
-
* For testing purposes - allows resetting the store
|
|
17833
|
-
*/
|
|
17834
|
-
export function _resetFlyoutManagerStore(): void;
|
|
17835
|
-
export {};
|
|
17836
|
-
|
|
17837
|
-
}
|
|
17838
|
-
declare module '@elastic/eui/src/components/flyout/manager/selectors' {
|
|
17839
|
-
export const useSession: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
|
|
17840
|
-
/** True when any managed flyout session is currently active. */
|
|
17841
|
-
export const useHasActiveSession: () => boolean;
|
|
17842
|
-
/** True if the given `flyoutId` is the main or child flyout in the latest session. */
|
|
17843
|
-
export const useIsFlyoutActive: (flyoutId: string) => boolean;
|
|
17844
|
-
export const useFlyout: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
17845
|
-
export const useIsFlyoutRegistered: (flyoutId?: string | null) => boolean;
|
|
17846
|
-
/** The most recent flyout session or `null` if none. */
|
|
17847
|
-
export const useCurrentSession: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
|
|
17848
|
-
/** The registered state of the current session's main flyout, if present. */
|
|
17849
|
-
export const useCurrentMainFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
17850
|
-
/** The registered state of the current session's child flyout, if present. */
|
|
17851
|
-
export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
17852
|
-
/** The measured width (px) of the specified flyout, or `null` if unknown. */
|
|
17853
|
-
export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
|
|
17854
|
-
/** The configured minWidth (px) of the specified flyout, or `undefined` if not set. */
|
|
17855
|
-
export const useFlyoutMinWidth: (flyoutId?: string | null) => number | undefined;
|
|
17856
|
-
/** The configured size of the parent (main) flyout for a given child flyout ID. */
|
|
17857
|
-
export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
|
|
17858
|
-
/** True if the provided `flyoutId` is the main flyout and it currently has a child. */
|
|
17859
|
-
export const useHasChildFlyout: (flyoutId: string) => boolean;
|
|
17860
|
-
/** Get the current push padding offsets from manager state. */
|
|
17861
|
-
export const usePushPaddingOffsets: () => import ("@elastic/eui/src/components/flyout/manager/types").PushPaddingOffsets;
|
|
17862
|
-
/** True if there's any active push padding (left or right side). */
|
|
17863
|
-
export const useHasPushPadding: () => boolean;
|
|
17864
|
-
/** Get the ref for the current flyout z-index to be used */
|
|
17865
|
-
export const useCurrentFlyoutZIndexRef: () => import("react").MutableRefObject<number>;
|
|
17866
|
-
|
|
17867
|
-
}
|
|
17868
|
-
declare module '@elastic/eui/src/components/flyout/manager/context' {
|
|
17869
|
-
import React from 'react';
|
|
17870
|
-
/**
|
|
17871
|
-
* React provider that marks descendants as being rendered inside
|
|
17872
|
-
* an EUI managed flyout. Used by hooks/components to alter behavior
|
|
17873
|
-
* (e.g., focus handling) when inside a managed flyout tree.
|
|
17874
|
-
*/
|
|
17875
|
-
export const EuiFlyoutIsManagedProvider: ({ isManaged, children, }: {
|
|
17876
|
-
isManaged: boolean;
|
|
17877
|
-
children: React.ReactNode;
|
|
17878
|
-
}) => React.JSX.Element;
|
|
17879
|
-
/**
|
|
17880
|
-
* Hook that returns `true` when called within an EUI managed flyout subtree.
|
|
17881
|
-
*/
|
|
17882
|
-
export const useIsInManagedFlyout: () => boolean;
|
|
17883
|
-
|
|
17884
|
-
}
|
|
17885
|
-
declare module '@elastic/eui/src/components/flyout/manager/hooks' {
|
|
17886
|
-
export { useIsFlyoutActive, useHasActiveSession, useCurrentSession, useCurrentMainFlyout, useCurrentChildFlyout, useFlyoutWidth, useParentFlyoutSize, useHasChildFlyout, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/selectors';
|
|
17887
|
-
export { useFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/layout_mode';
|
|
17888
|
-
export { useIsInManagedFlyout } from '@elastic/eui/src/components/flyout/manager/context';
|
|
17889
|
-
export type { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
|
|
17890
|
-
/** Access the flyout manager context (state and actions). */
|
|
17891
|
-
export const useFlyoutManager: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutManagerApi | null;
|
|
17892
|
-
/**
|
|
17893
|
-
* Stable flyout ID utility. Uses the passed `id` if provided and not already registered,
|
|
17894
|
-
* otherwise generates a deterministic ID for the component's lifetime.
|
|
17895
|
-
* The ID remains stable across re-renders to maintain consistency in effects and other hooks.
|
|
17896
|
-
*/
|
|
17897
|
-
export const useFlyoutId: (flyoutId?: string) => string;
|
|
17898
|
-
|
|
17899
|
-
}
|
|
17900
|
-
declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
|
|
17901
|
-
import { EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types';
|
|
17902
|
-
/**
|
|
17903
|
-
* Hook to handle responsive layout mode for managed flyouts.
|
|
17904
|
-
* Decides whether to place flyouts side-by-side or stacked based on
|
|
17905
|
-
* the reference width (the reference container's width, defaulting to
|
|
17906
|
-
* document.body when not set) and flyout widths/sizes.
|
|
17907
|
-
*/
|
|
17908
|
-
export const useApplyFlyoutLayoutMode: () => void;
|
|
17909
|
-
/**
|
|
17910
|
-
* Convert a flyout `size` value to a pixel width.
|
|
17911
|
-
* When `referenceWidth` is provided, named sizes are calculated as a percentage
|
|
17912
|
-
* of that width (container-relative). Otherwise falls back to `window.innerWidth`.
|
|
17913
|
-
*/
|
|
17914
|
-
export const getWidthFromSize: (size: string | number, referenceWidth?: number) => number;
|
|
17915
|
-
/** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
|
|
17916
|
-
export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
|
|
17917
|
-
|
|
17918
|
-
}
|
|
17919
|
-
declare module '@elastic/eui/src/components/flyout/manager/provider' {
|
|
17920
|
-
import React from 'react';
|
|
17921
|
-
import { FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
|
|
17922
|
-
/**
|
|
17923
|
-
* React context that exposes the Flyout Manager API (state + actions).
|
|
17924
|
-
*/
|
|
17925
|
-
export const EuiFlyoutManagerContext: React.Context<FlyoutManagerApi | null>;
|
|
17926
|
-
/**
|
|
17927
|
-
* Provides the Flyout Manager API via context and runs layout-mode logic.
|
|
17928
|
-
*/
|
|
17929
|
-
export const EuiFlyoutManager: React.FC<{
|
|
17930
|
-
children: React.ReactNode;
|
|
17931
|
-
}>;
|
|
17932
|
-
/** Hook to access the Flyout Manager API from context. */
|
|
17933
|
-
export const useFlyoutManager: () => FlyoutManagerApi | null;
|
|
17934
|
-
|
|
17935
17528
|
}
|
|
17936
17529
|
declare module '@elastic/eui/src/components/list_group/list_group_item_extra_action.styles' {
|
|
17937
17530
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -18310,6 +17903,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu.styles' {
|
|
|
18310
17903
|
euiFlyoutMenu__spacer: import("@emotion/react").SerializedStyles;
|
|
18311
17904
|
euiFlyoutMenu__actions: import("@emotion/react").SerializedStyles;
|
|
18312
17905
|
euiFlyoutMenu__hiddenTitle: import("@emotion/react").SerializedStyles;
|
|
17906
|
+
euiFlyoutMenu__paginationCounter: import("@emotion/react").SerializedStyles;
|
|
18313
17907
|
};
|
|
18314
17908
|
|
|
18315
17909
|
}
|
|
@@ -18324,6 +17918,25 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu_context' {
|
|
|
18324
17918
|
}
|
|
18325
17919
|
declare module '@elastic/eui/src/components/flyout/types' {
|
|
18326
17920
|
export type EuiFlyoutCloseEvent = MouseEvent | TouchEvent | KeyboardEvent;
|
|
17921
|
+
/**
|
|
17922
|
+
* Describes the source that triggered a flyout close. Passed to `onClose` via
|
|
17923
|
+
* the optional `meta` argument so consumers can react differently per source.
|
|
17924
|
+
*
|
|
17925
|
+
* - `close-button`: the default/X close button (base flyout and managed menu)
|
|
17926
|
+
* - `escape`: the Escape key
|
|
17927
|
+
* - `outside-click`: a click on the overlay mask or outside the flyout
|
|
17928
|
+
* - `navigation-back`: a managed flyout closed because the user pressed Back
|
|
17929
|
+
* - `navigation-cascade`: a managed flyout closed because a parent navigated
|
|
17930
|
+
* away or the main flyout closed (e.g. a tab switch)
|
|
17931
|
+
*/
|
|
17932
|
+
export type EuiFlyoutCloseReason = 'close-button' | 'escape' | 'outside-click' | 'navigation-back' | 'navigation-cascade';
|
|
17933
|
+
/**
|
|
17934
|
+
* Optional metadata passed as the second argument to a flyout's `onClose`
|
|
17935
|
+
* callback, describing why the flyout closed.
|
|
17936
|
+
*/
|
|
17937
|
+
export interface EuiFlyoutCloseMeta {
|
|
17938
|
+
reason: EuiFlyoutCloseReason;
|
|
17939
|
+
}
|
|
18327
17940
|
|
|
18328
17941
|
}
|
|
18329
17942
|
declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
@@ -18349,6 +17962,27 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
18349
17962
|
*/
|
|
18350
17963
|
onClick: () => void;
|
|
18351
17964
|
}
|
|
17965
|
+
/**
|
|
17966
|
+
* Pagination configuration for the flyout menu
|
|
17967
|
+
*/
|
|
17968
|
+
export interface EuiFlyoutMenuPagination {
|
|
17969
|
+
/**
|
|
17970
|
+
* Zero-based index of the currently displayed item
|
|
17971
|
+
*/
|
|
17972
|
+
currentIndex: number;
|
|
17973
|
+
/**
|
|
17974
|
+
* Total number of items
|
|
17975
|
+
*/
|
|
17976
|
+
total: number;
|
|
17977
|
+
/**
|
|
17978
|
+
* Called when the user clicks the Previous button
|
|
17979
|
+
*/
|
|
17980
|
+
onPrevious: () => void;
|
|
17981
|
+
/**
|
|
17982
|
+
* Called when the user clicks the Next button
|
|
17983
|
+
*/
|
|
17984
|
+
onNext: () => void;
|
|
17985
|
+
}
|
|
18352
17986
|
/**
|
|
18353
17987
|
* Custom action item for the flyout menu component
|
|
18354
17988
|
*/
|
|
@@ -18420,6 +18054,11 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
18420
18054
|
* List of custom action items for the menu component
|
|
18421
18055
|
*/
|
|
18422
18056
|
customActions?: EuiFlyoutMenuCustomAction[];
|
|
18057
|
+
/**
|
|
18058
|
+
* Enables Prev/Next navigation controls and a position counter in the menu bar.
|
|
18059
|
+
* Pagination replaces back/history navigation in the left menu slot.
|
|
18060
|
+
*/
|
|
18061
|
+
pagination?: EuiFlyoutMenuPagination;
|
|
18423
18062
|
};
|
|
18424
18063
|
/**
|
|
18425
18064
|
* The component for the top menu bar inside a flyout. Since this is a private
|
|
@@ -18433,6 +18072,482 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
18433
18072
|
export const EuiFlyoutMenu: FunctionComponent<EuiFlyoutMenuProps>;
|
|
18434
18073
|
export {};
|
|
18435
18074
|
|
|
18075
|
+
}
|
|
18076
|
+
declare module '@elastic/eui/src/components/flyout/manager/const' {
|
|
18077
|
+
/**
|
|
18078
|
+
* Allowed values for `session` prop to control the way the session is managed for a flyout.
|
|
18079
|
+
*/
|
|
18080
|
+
export const SESSION_START = "start";
|
|
18081
|
+
export const SESSION_INHERIT = "inherit";
|
|
18082
|
+
export const SESSION_NEVER = "never";
|
|
18083
|
+
/**
|
|
18084
|
+
* Data attribute applied to a managed flyout element to help identify it as a managed flyout.
|
|
18085
|
+
*/
|
|
18086
|
+
export const PROPERTY_FLYOUT = "data-managed-flyout";
|
|
18087
|
+
/**
|
|
18088
|
+
* Data attribute indicating whether the flyout is the `main` or `child` flyout.
|
|
18089
|
+
*/
|
|
18090
|
+
export const PROPERTY_LEVEL = "data-managed-flyout-level";
|
|
18091
|
+
/**
|
|
18092
|
+
* Data attribute representing how multiple flyouts are laid out
|
|
18093
|
+
* (`side-by-side` or `stacked`).
|
|
18094
|
+
*/
|
|
18095
|
+
export const PROPERTY_LAYOUT_MODE = "data-managed-flyout-layout-mode";
|
|
18096
|
+
/** Stacked layout mode where child flyouts overlay on top of the main flyout. */
|
|
18097
|
+
export const LAYOUT_MODE_STACKED = "stacked";
|
|
18098
|
+
/** Side-by-side layout mode where child flyouts render adjacent to the main flyout. */
|
|
18099
|
+
export const LAYOUT_MODE_SIDE_BY_SIDE = "side-by-side";
|
|
18100
|
+
/** The primary (parent) flyout in a session. */
|
|
18101
|
+
export const LEVEL_MAIN = "main";
|
|
18102
|
+
/** The secondary (child) flyout spawned by the main flyout. */
|
|
18103
|
+
export const LEVEL_CHILD = "child";
|
|
18104
|
+
/** Flyout is mounting and playing its opening animation. */
|
|
18105
|
+
export const STAGE_OPENING = "opening";
|
|
18106
|
+
/** Flyout is fully visible and interactive. */
|
|
18107
|
+
export const STAGE_ACTIVE = "active";
|
|
18108
|
+
/** Flyout is unmounted or not currently visible/interactable. */
|
|
18109
|
+
export const STAGE_INACTIVE = "inactive";
|
|
18110
|
+
/** Main flyout is transitioning behind an active session flyout. */
|
|
18111
|
+
export const STAGE_BACKGROUNDING = "backgrounding";
|
|
18112
|
+
/** Main flyout is backgrounded behind an active session flyout. */
|
|
18113
|
+
export const STAGE_BACKGROUNDED = "backgrounded";
|
|
18114
|
+
/** Flyout is returning to the foreground from a backgrounded state. */
|
|
18115
|
+
export const STAGE_RETURNING = "returning";
|
|
18116
|
+
/** Flyout is playing its closing animation. */
|
|
18117
|
+
export const STAGE_CLOSING = "closing";
|
|
18118
|
+
|
|
18119
|
+
}
|
|
18120
|
+
declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
18121
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
18122
|
+
import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
18123
|
+
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
18124
|
+
import { STAGE_CLOSING, STAGE_OPENING, STAGE_ACTIVE, STAGE_INACTIVE, STAGE_BACKGROUNDING, STAGE_BACKGROUNDED, STAGE_RETURNING, LAYOUT_MODE_SIDE_BY_SIDE, LAYOUT_MODE_STACKED, LEVEL_CHILD, LEVEL_MAIN } from '@elastic/eui/src/components/flyout/manager/const';
|
|
18125
|
+
export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
|
|
18126
|
+
export type EuiFlyoutLevel = typeof LEVEL_MAIN | typeof LEVEL_CHILD;
|
|
18127
|
+
export type EuiFlyoutActivityStage = typeof STAGE_OPENING | typeof STAGE_ACTIVE | typeof STAGE_INACTIVE | typeof STAGE_BACKGROUNDING | typeof STAGE_BACKGROUNDED | typeof STAGE_RETURNING | typeof STAGE_CLOSING;
|
|
18128
|
+
export interface EuiManagedFlyoutState {
|
|
18129
|
+
flyoutId: string;
|
|
18130
|
+
level: EuiFlyoutLevel;
|
|
18131
|
+
width?: number;
|
|
18132
|
+
size?: string;
|
|
18133
|
+
minWidth?: number;
|
|
18134
|
+
activityStage?: EuiFlyoutActivityStage;
|
|
18135
|
+
pagination?: EuiFlyoutMenuPagination;
|
|
18136
|
+
}
|
|
18137
|
+
/** Entry for a child flyout in session history. */
|
|
18138
|
+
export interface ChildHistoryEntry {
|
|
18139
|
+
flyoutId: string;
|
|
18140
|
+
title: string;
|
|
18141
|
+
iconType?: IconType;
|
|
18142
|
+
}
|
|
18143
|
+
export interface FlyoutSession {
|
|
18144
|
+
/** ID of the main flyout for this session */
|
|
18145
|
+
mainFlyoutId: string;
|
|
18146
|
+
/** ID of the child flyout for this session */
|
|
18147
|
+
childFlyoutId: string | null;
|
|
18148
|
+
/** Title of the main flyout in this session */
|
|
18149
|
+
title: string;
|
|
18150
|
+
/** Optional icon for this session when shown in history popover */
|
|
18151
|
+
iconType?: IconType;
|
|
18152
|
+
/** z-index value to be used by the flyout session */
|
|
18153
|
+
zIndex: number;
|
|
18154
|
+
/** Title of the current child flyout. */
|
|
18155
|
+
childTitle?: string;
|
|
18156
|
+
/** Icon of the current child flyout. */
|
|
18157
|
+
childIconType?: IconType;
|
|
18158
|
+
/** Stack of child flyouts we navigated away from. */
|
|
18159
|
+
childHistory: ChildHistoryEntry[];
|
|
18160
|
+
/** Key that scopes this session's history; same Symbol reference = same history group. Always set (from action or Symbol()). */
|
|
18161
|
+
historyKey: symbol;
|
|
18162
|
+
}
|
|
18163
|
+
export interface PushPaddingOffsets {
|
|
18164
|
+
/** Push padding applied to the left side (in pixels) */
|
|
18165
|
+
left: number;
|
|
18166
|
+
/** Push padding applied to the right side (in pixels) */
|
|
18167
|
+
right: number;
|
|
18168
|
+
}
|
|
18169
|
+
export interface EuiFlyoutManagerState {
|
|
18170
|
+
sessions: FlyoutSession[];
|
|
18171
|
+
flyouts: EuiManagedFlyoutState[];
|
|
18172
|
+
layoutMode: EuiFlyoutLayoutMode;
|
|
18173
|
+
/** Active push padding offsets (updated by active push flyouts) */
|
|
18174
|
+
pushPadding?: PushPaddingOffsets;
|
|
18175
|
+
currentZIndex: number;
|
|
18176
|
+
unmanagedFlyouts: string[];
|
|
18177
|
+
/** The container element that flyouts are positioned relative to (if any). */
|
|
18178
|
+
containerElement?: HTMLElement | null;
|
|
18179
|
+
/**
|
|
18180
|
+
* Reference width used for layout and resize clamping (container or viewport).
|
|
18181
|
+
* Set by the layout mode hook so flyouts use the same value for consistent clamping.
|
|
18182
|
+
*/
|
|
18183
|
+
referenceWidth?: number;
|
|
18184
|
+
}
|
|
18185
|
+
/**
|
|
18186
|
+
* Public API surface provided through React context.
|
|
18187
|
+
* Kept intentionally decoupled from action types to avoid module cycles.
|
|
18188
|
+
*/
|
|
18189
|
+
export interface FlyoutManagerApi {
|
|
18190
|
+
state: EuiFlyoutManagerState;
|
|
18191
|
+
dispatch: (action: Action) => void;
|
|
18192
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
18193
|
+
closeFlyout: (flyoutId: string) => void;
|
|
18194
|
+
closeAllFlyouts: () => void;
|
|
18195
|
+
setActiveFlyout: (flyoutId: string | null) => void;
|
|
18196
|
+
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
18197
|
+
setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => void;
|
|
18198
|
+
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
18199
|
+
setContainerElement: (element: HTMLElement | null) => void;
|
|
18200
|
+
goBack: () => void;
|
|
18201
|
+
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
18202
|
+
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
18203
|
+
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
18204
|
+
historyItems: Array<{
|
|
18205
|
+
title: string;
|
|
18206
|
+
iconType?: IconType;
|
|
18207
|
+
onClick: () => void;
|
|
18208
|
+
}>;
|
|
18209
|
+
}
|
|
18210
|
+
|
|
18211
|
+
}
|
|
18212
|
+
declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
18213
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
18214
|
+
import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
18215
|
+
import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
|
|
18216
|
+
interface BaseAction {
|
|
18217
|
+
type: `${typeof PREFIX}/${string}`;
|
|
18218
|
+
}
|
|
18219
|
+
/** Dispatched when a flyout registers itself with the manager. */
|
|
18220
|
+
export const ACTION_ADD: "eui/flyoutManager/add";
|
|
18221
|
+
/** Dispatched to remove a flyout from the manager (usually on close/unmount). */
|
|
18222
|
+
export const ACTION_CLOSE: "eui/flyoutManager/close";
|
|
18223
|
+
/** Dispatched to remove all flyouts from the manager. */
|
|
18224
|
+
export const ACTION_CLOSE_ALL: "eui/flyoutManager/closeAll";
|
|
18225
|
+
/** Dispatched to set which flyout is currently active within the session. */
|
|
18226
|
+
export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
|
|
18227
|
+
/** Dispatched when an active flyout's pixel width changes (for responsive layout). */
|
|
18228
|
+
export const ACTION_SET_WIDTH: "eui/flyoutManager/setWidth";
|
|
18229
|
+
/** Dispatched to set a flyout's menu pagination. */
|
|
18230
|
+
export const ACTION_SET_PAGINATION: "eui/flyoutManager/setPagination";
|
|
18231
|
+
/** Dispatched to switch layout mode between `side-by-side` and `stacked`. */
|
|
18232
|
+
export const ACTION_SET_LAYOUT_MODE: "eui/flyoutManager/setLayoutMode";
|
|
18233
|
+
/** Dispatched to update a flyout's activity stage (e.g., opening -> active). */
|
|
18234
|
+
export const ACTION_SET_ACTIVITY_STAGE: "eui/flyoutManager/setActivityStage";
|
|
18235
|
+
/** Dispatched to go back one session (remove current session). */
|
|
18236
|
+
export const ACTION_GO_BACK: "eui/flyoutManager/goBack";
|
|
18237
|
+
/** Dispatched to navigate to a specific flyout (remove all sessions after it). */
|
|
18238
|
+
export const ACTION_GO_TO_FLYOUT: "eui/flyoutManager/goToFlyout";
|
|
18239
|
+
/** Dispatched to set push padding offset for a side. */
|
|
18240
|
+
export const ACTION_SET_PUSH_PADDING: "eui/flyoutManager/setPushPadding";
|
|
18241
|
+
/** Dispatched to set the container element for container-relative flyouts. */
|
|
18242
|
+
export const ACTION_SET_CONTAINER_ELEMENT: "eui/flyoutManager/setContainerElement";
|
|
18243
|
+
/** Dispatched to set the reference width used for layout and resize clamping. */
|
|
18244
|
+
export const ACTION_SET_REFERENCE_WIDTH: "eui/flyoutManager/setReferenceWidth";
|
|
18245
|
+
export const ACTION_ADD_UNMANAGED_FLYOUT: "eui/flyoutManager/addUnmanagedFlyout";
|
|
18246
|
+
export const ACTION_CLOSE_UNMANAGED_FLYOUT: "eui/flyoutManager/closeUnmanagedFlyout";
|
|
18247
|
+
/**
|
|
18248
|
+
* Add a flyout to manager state. The manager will create or update
|
|
18249
|
+
* the current session depending on the `level` provided.
|
|
18250
|
+
*/
|
|
18251
|
+
export interface AddFlyoutAction extends BaseAction {
|
|
18252
|
+
type: typeof ACTION_ADD;
|
|
18253
|
+
flyoutId: string;
|
|
18254
|
+
title: string;
|
|
18255
|
+
level: EuiFlyoutLevel;
|
|
18256
|
+
size?: string;
|
|
18257
|
+
historyKey?: symbol;
|
|
18258
|
+
iconType?: IconType;
|
|
18259
|
+
minWidth?: number;
|
|
18260
|
+
}
|
|
18261
|
+
/** Remove a flyout from manager state. Also updates the active session. */
|
|
18262
|
+
export interface CloseFlyoutAction extends BaseAction {
|
|
18263
|
+
type: typeof ACTION_CLOSE;
|
|
18264
|
+
flyoutId: string;
|
|
18265
|
+
}
|
|
18266
|
+
/** Remove all flyouts from manager state. */
|
|
18267
|
+
export interface CloseAllFlyoutsAction extends BaseAction {
|
|
18268
|
+
type: typeof ACTION_CLOSE_ALL;
|
|
18269
|
+
}
|
|
18270
|
+
/** Set the active flyout within the current session (or clear with `null`). */
|
|
18271
|
+
export interface SetActiveFlyoutAction extends BaseAction {
|
|
18272
|
+
type: typeof ACTION_SET_ACTIVE;
|
|
18273
|
+
flyoutId: string | null;
|
|
18274
|
+
}
|
|
18275
|
+
/** Update a flyout's measured width in pixels. */
|
|
18276
|
+
export interface SetWidthAction extends BaseAction {
|
|
18277
|
+
type: typeof ACTION_SET_WIDTH;
|
|
18278
|
+
flyoutId: string;
|
|
18279
|
+
width: number;
|
|
18280
|
+
}
|
|
18281
|
+
/** Set the manager pagination value for a flyout. */
|
|
18282
|
+
export interface SetPaginationAction extends BaseAction {
|
|
18283
|
+
type: typeof ACTION_SET_PAGINATION;
|
|
18284
|
+
flyoutId: string;
|
|
18285
|
+
pagination: EuiFlyoutMenuPagination | undefined;
|
|
18286
|
+
}
|
|
18287
|
+
/** Change how flyouts are arranged: `side-by-side` or `stacked`. */
|
|
18288
|
+
export interface SetLayoutModeAction extends BaseAction {
|
|
18289
|
+
type: typeof ACTION_SET_LAYOUT_MODE;
|
|
18290
|
+
layoutMode: EuiFlyoutLayoutMode;
|
|
18291
|
+
}
|
|
18292
|
+
/** Set a specific flyout's activity stage. */
|
|
18293
|
+
export interface SetActivityStageAction extends BaseAction {
|
|
18294
|
+
type: typeof ACTION_SET_ACTIVITY_STAGE;
|
|
18295
|
+
flyoutId: string;
|
|
18296
|
+
activityStage: EuiFlyoutActivityStage;
|
|
18297
|
+
}
|
|
18298
|
+
/** Go back one session (remove current session from stack). */
|
|
18299
|
+
export interface GoBackAction extends BaseAction {
|
|
18300
|
+
type: typeof ACTION_GO_BACK;
|
|
18301
|
+
}
|
|
18302
|
+
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history). */
|
|
18303
|
+
export interface GoToFlyoutAction extends BaseAction {
|
|
18304
|
+
type: typeof ACTION_GO_TO_FLYOUT;
|
|
18305
|
+
flyoutId: string;
|
|
18306
|
+
/** When 'child', find flyout in current session's childHistory and pop to it. When 'main' or omitted, find session by mainFlyoutId. */
|
|
18307
|
+
level?: EuiFlyoutLevel;
|
|
18308
|
+
}
|
|
18309
|
+
/** Set push padding offset for a specific side. */
|
|
18310
|
+
export interface SetPushPaddingAction extends BaseAction {
|
|
18311
|
+
type: typeof ACTION_SET_PUSH_PADDING;
|
|
18312
|
+
side: 'left' | 'right';
|
|
18313
|
+
width: number;
|
|
18314
|
+
}
|
|
18315
|
+
export interface AddUnmanagedFlyoutAction extends BaseAction {
|
|
18316
|
+
type: typeof ACTION_ADD_UNMANAGED_FLYOUT;
|
|
18317
|
+
flyoutId: string;
|
|
18318
|
+
}
|
|
18319
|
+
export interface CloseUnmanagedFlyoutAction extends BaseAction {
|
|
18320
|
+
type: typeof ACTION_CLOSE_UNMANAGED_FLYOUT;
|
|
18321
|
+
flyoutId: string;
|
|
18322
|
+
}
|
|
18323
|
+
/** Set the container element for container-relative positioning. */
|
|
18324
|
+
export interface SetContainerElementAction extends BaseAction {
|
|
18325
|
+
type: typeof ACTION_SET_CONTAINER_ELEMENT;
|
|
18326
|
+
element: HTMLElement | null;
|
|
18327
|
+
}
|
|
18328
|
+
/** Set the reference width for layout and resize clamping. */
|
|
18329
|
+
export interface SetReferenceWidthAction extends BaseAction {
|
|
18330
|
+
type: typeof ACTION_SET_REFERENCE_WIDTH;
|
|
18331
|
+
width: number;
|
|
18332
|
+
}
|
|
18333
|
+
/** Union of all flyout manager actions. */
|
|
18334
|
+
export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetPaginationAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction | SetContainerElementAction | SetReferenceWidthAction;
|
|
18335
|
+
/**
|
|
18336
|
+
* Register a flyout with the manager.
|
|
18337
|
+
* - `title` is used for the flyout menu.
|
|
18338
|
+
* - `level` determines whether the flyout is `main` or `child`.
|
|
18339
|
+
* - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
|
|
18340
|
+
* - Optional `historyKey` (Symbol) scopes history; only flyouts with the same reference share Back/history. Omit for a unique group per session.
|
|
18341
|
+
* - Optional `iconType` is shown next to the session title in the history menu.
|
|
18342
|
+
*/
|
|
18343
|
+
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => AddFlyoutAction;
|
|
18344
|
+
/** Unregister a flyout and update the session accordingly. */
|
|
18345
|
+
export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
|
|
18346
|
+
/** Unregister all flyouts. */
|
|
18347
|
+
export const closeAllFlyouts: () => CloseAllFlyoutsAction;
|
|
18348
|
+
/** Set or clear the active flyout for the current session. */
|
|
18349
|
+
export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
|
|
18350
|
+
/** Record a flyout's current width in pixels. */
|
|
18351
|
+
export const setFlyoutWidth: (flyoutId: string, width: number) => SetWidthAction;
|
|
18352
|
+
/**
|
|
18353
|
+
* Set (or clear) the menu pagination config for a flyout. When set, this
|
|
18354
|
+
* overrides any pagination passed via `flyoutMenuProps.pagination` on the
|
|
18355
|
+
* flyout itself, allowing reactive updates from a different React root.
|
|
18356
|
+
*
|
|
18357
|
+
* Only works for managed flyouts. Unmanaged flyouts (session={false}) must use
|
|
18358
|
+
* the `flyoutMenuProps.pagination` prop instead.
|
|
18359
|
+
*/
|
|
18360
|
+
export const setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => SetPaginationAction;
|
|
18361
|
+
/** Switch layout mode between `side-by-side` and `stacked`. */
|
|
18362
|
+
export const setLayoutMode: (layoutMode: EuiFlyoutLayoutMode) => SetLayoutModeAction;
|
|
18363
|
+
/** Update a flyout's activity stage. */
|
|
18364
|
+
export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
|
|
18365
|
+
/** Go back one session (remove current session from stack). */
|
|
18366
|
+
export const goBack: () => GoBackAction;
|
|
18367
|
+
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history when level === 'child'). */
|
|
18368
|
+
export const goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => GoToFlyoutAction;
|
|
18369
|
+
/** Set push padding offset for a specific side. */
|
|
18370
|
+
export const setPushPadding: (side: "left" | "right", width: number) => SetPushPaddingAction;
|
|
18371
|
+
/** Register an unmanaged flyout for z-index positioning purposes */
|
|
18372
|
+
export const addUnmanagedFlyout: (flyoutId: string) => AddUnmanagedFlyoutAction;
|
|
18373
|
+
/** Unregister an unmanaged flyout */
|
|
18374
|
+
export const closeUnmanagedFlyout: (flyoutId: string) => CloseUnmanagedFlyoutAction;
|
|
18375
|
+
/** Set the container element for container-relative flyout positioning. */
|
|
18376
|
+
export const setContainerElement: (element: HTMLElement | null) => SetContainerElementAction;
|
|
18377
|
+
/** Set the reference width for layout and resize clamping. */
|
|
18378
|
+
export const setReferenceWidth: (width: number) => SetReferenceWidthAction;
|
|
18379
|
+
export {};
|
|
18380
|
+
|
|
18381
|
+
}
|
|
18382
|
+
declare module '@elastic/eui/src/components/flyout/manager/reducer' {
|
|
18383
|
+
import { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
18384
|
+
import { EuiFlyoutManagerState } from '@elastic/eui/src/components/flyout/manager/types';
|
|
18385
|
+
/**
|
|
18386
|
+
* Default flyout manager state used to initialize the reducer.
|
|
18387
|
+
*/
|
|
18388
|
+
export const initialState: EuiFlyoutManagerState;
|
|
18389
|
+
/**
|
|
18390
|
+
* Reducer handling all flyout manager actions and state transitions.
|
|
18391
|
+
*/
|
|
18392
|
+
export function flyoutManagerReducer(state: EuiFlyoutManagerState | undefined, action: Action): EuiFlyoutManagerState;
|
|
18393
|
+
|
|
18394
|
+
}
|
|
18395
|
+
declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
18396
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
18397
|
+
import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
18398
|
+
import type { EuiFlyoutCloseMeta } from '@elastic/eui/src/components/flyout/types';
|
|
18399
|
+
import type { EuiFlyoutLevel, EuiFlyoutManagerState, FlyoutSession } from '@elastic/eui/src/components/flyout/manager/types';
|
|
18400
|
+
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
18401
|
+
type Listener = () => void;
|
|
18402
|
+
/**
|
|
18403
|
+
* Events emitted by the flyout manager store for external consumers.
|
|
18404
|
+
*/
|
|
18405
|
+
export type FlyoutManagerEvent = {
|
|
18406
|
+
type: 'CLOSE_SESSION';
|
|
18407
|
+
session: FlyoutSession;
|
|
18408
|
+
};
|
|
18409
|
+
type EventListener = (event: FlyoutManagerEvent) => void;
|
|
18410
|
+
export interface FlyoutManagerStore {
|
|
18411
|
+
getState: () => EuiFlyoutManagerState;
|
|
18412
|
+
subscribe: (listener: Listener) => () => void;
|
|
18413
|
+
subscribeToEvents: (listener: EventListener) => () => void;
|
|
18414
|
+
dispatch: (action: Action) => void;
|
|
18415
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
18416
|
+
closeFlyout: (flyoutId: string) => void;
|
|
18417
|
+
closeAllFlyouts: () => void;
|
|
18418
|
+
setActiveFlyout: (flyoutId: string | null) => void;
|
|
18419
|
+
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
18420
|
+
setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => void;
|
|
18421
|
+
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
18422
|
+
setContainerElement: (element: HTMLElement | null) => void;
|
|
18423
|
+
goBack: () => void;
|
|
18424
|
+
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
18425
|
+
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
18426
|
+
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
18427
|
+
/**
|
|
18428
|
+
* Reads and clears any close `meta` previously stashed for `flyoutId` (e.g.
|
|
18429
|
+
* `goBack` stamps the flyouts it removes with `navigation-back`). Used
|
|
18430
|
+
* internally by managed flyouts to report the correct close reason; defaults
|
|
18431
|
+
* to `navigation-cascade` when nothing was stashed.
|
|
18432
|
+
*/
|
|
18433
|
+
consumeCloseMeta: (flyoutId: string) => EuiFlyoutCloseMeta | undefined;
|
|
18434
|
+
historyItems: Array<{
|
|
18435
|
+
title: string;
|
|
18436
|
+
iconType?: IconType;
|
|
18437
|
+
onClick: () => void;
|
|
18438
|
+
}>;
|
|
18439
|
+
}
|
|
18440
|
+
/**
|
|
18441
|
+
* Returns a singleton store instance shared across all React roots within the same JS context.
|
|
18442
|
+
* Uses module-level singleton to ensure deduplication even if modules are loaded twice.
|
|
18443
|
+
*/
|
|
18444
|
+
export function getFlyoutManagerStore(): FlyoutManagerStore;
|
|
18445
|
+
/**
|
|
18446
|
+
* For testing purposes - allows resetting the store
|
|
18447
|
+
*/
|
|
18448
|
+
export function _resetFlyoutManagerStore(): void;
|
|
18449
|
+
export {};
|
|
18450
|
+
|
|
18451
|
+
}
|
|
18452
|
+
declare module '@elastic/eui/src/components/flyout/manager/selectors' {
|
|
18453
|
+
export const useSession: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
|
|
18454
|
+
/** True when any managed flyout session is currently active. */
|
|
18455
|
+
export const useHasActiveSession: () => boolean;
|
|
18456
|
+
/** True if the given `flyoutId` is the main or child flyout in the latest session. */
|
|
18457
|
+
export const useIsFlyoutActive: (flyoutId: string) => boolean;
|
|
18458
|
+
export const useFlyout: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
18459
|
+
export const useIsFlyoutRegistered: (flyoutId?: string | null) => boolean;
|
|
18460
|
+
/** The most recent flyout session or `null` if none. */
|
|
18461
|
+
export const useCurrentSession: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
|
|
18462
|
+
/** The registered state of the current session's main flyout, if present. */
|
|
18463
|
+
export const useCurrentMainFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
18464
|
+
/** The registered state of the current session's child flyout, if present. */
|
|
18465
|
+
export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
18466
|
+
/** The measured width (px) of the specified flyout, or `null` if unknown. */
|
|
18467
|
+
export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
|
|
18468
|
+
/** Returns the store pagination override for a flyout, if set. */
|
|
18469
|
+
export const useFlyoutPagination: (flyoutId?: string | null) => import("..").EuiFlyoutMenuPagination | undefined;
|
|
18470
|
+
/** The configured minWidth (px) of the specified flyout, or `undefined` if not set. */
|
|
18471
|
+
export const useFlyoutMinWidth: (flyoutId?: string | null) => number | undefined;
|
|
18472
|
+
/** The configured size of the parent (main) flyout for a given child flyout ID. */
|
|
18473
|
+
export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
|
|
18474
|
+
/** True if the provided `flyoutId` is the main flyout and it currently has a child. */
|
|
18475
|
+
export const useHasChildFlyout: (flyoutId: string) => boolean;
|
|
18476
|
+
/** Get the current push padding offsets from manager state. */
|
|
18477
|
+
export const usePushPaddingOffsets: () => import ("@elastic/eui/src/components/flyout/manager/types").PushPaddingOffsets;
|
|
18478
|
+
/** True if there's any active push padding (left or right side). */
|
|
18479
|
+
export const useHasPushPadding: () => boolean;
|
|
18480
|
+
/** Get the ref for the current flyout z-index to be used */
|
|
18481
|
+
export const useCurrentFlyoutZIndexRef: () => import("react").MutableRefObject<number>;
|
|
18482
|
+
|
|
18483
|
+
}
|
|
18484
|
+
declare module '@elastic/eui/src/components/flyout/manager/context' {
|
|
18485
|
+
import React from 'react';
|
|
18486
|
+
/**
|
|
18487
|
+
* React provider that marks descendants as being rendered inside
|
|
18488
|
+
* an EUI managed flyout. Used by hooks/components to alter behavior
|
|
18489
|
+
* (e.g., focus handling) when inside a managed flyout tree.
|
|
18490
|
+
*/
|
|
18491
|
+
export const EuiFlyoutIsManagedProvider: ({ isManaged, children, }: {
|
|
18492
|
+
isManaged: boolean;
|
|
18493
|
+
children: React.ReactNode;
|
|
18494
|
+
}) => React.JSX.Element;
|
|
18495
|
+
/**
|
|
18496
|
+
* Hook that returns `true` when called within an EUI managed flyout subtree.
|
|
18497
|
+
*/
|
|
18498
|
+
export const useIsInManagedFlyout: () => boolean;
|
|
18499
|
+
|
|
18500
|
+
}
|
|
18501
|
+
declare module '@elastic/eui/src/components/flyout/manager/hooks' {
|
|
18502
|
+
export { useIsFlyoutActive, useHasActiveSession, useCurrentSession, useCurrentMainFlyout, useCurrentChildFlyout, useFlyoutWidth, useFlyoutPagination, useParentFlyoutSize, useHasChildFlyout, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/selectors';
|
|
18503
|
+
export { useFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/layout_mode';
|
|
18504
|
+
export { useIsInManagedFlyout } from '@elastic/eui/src/components/flyout/manager/context';
|
|
18505
|
+
export type { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
|
|
18506
|
+
/** Access the flyout manager context (state and actions). */
|
|
18507
|
+
export const useFlyoutManager: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutManagerApi | null;
|
|
18508
|
+
/**
|
|
18509
|
+
* Stable flyout ID utility. Uses the passed `id` if provided and not already registered,
|
|
18510
|
+
* otherwise generates a deterministic ID for the component's lifetime.
|
|
18511
|
+
* The ID remains stable across re-renders to maintain consistency in effects and other hooks.
|
|
18512
|
+
*/
|
|
18513
|
+
export const useFlyoutId: (flyoutId?: string) => string;
|
|
18514
|
+
|
|
18515
|
+
}
|
|
18516
|
+
declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
|
|
18517
|
+
import { EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types';
|
|
18518
|
+
/**
|
|
18519
|
+
* Hook to handle responsive layout mode for managed flyouts.
|
|
18520
|
+
* Decides whether to place flyouts side-by-side or stacked based on
|
|
18521
|
+
* the reference width (the reference container's width, defaulting to
|
|
18522
|
+
* document.body when not set) and flyout widths/sizes.
|
|
18523
|
+
*/
|
|
18524
|
+
export const useApplyFlyoutLayoutMode: () => void;
|
|
18525
|
+
/**
|
|
18526
|
+
* Convert a flyout `size` value to a pixel width.
|
|
18527
|
+
* When `referenceWidth` is provided, named sizes are calculated as a percentage
|
|
18528
|
+
* of that width (container-relative). Otherwise falls back to `window.innerWidth`.
|
|
18529
|
+
*/
|
|
18530
|
+
export const getWidthFromSize: (size: string | number, referenceWidth?: number) => number;
|
|
18531
|
+
/** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
|
|
18532
|
+
export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
|
|
18533
|
+
|
|
18534
|
+
}
|
|
18535
|
+
declare module '@elastic/eui/src/components/flyout/manager/provider' {
|
|
18536
|
+
import React from 'react';
|
|
18537
|
+
import { FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
|
|
18538
|
+
/**
|
|
18539
|
+
* React context that exposes the Flyout Manager API (state + actions).
|
|
18540
|
+
*/
|
|
18541
|
+
export const EuiFlyoutManagerContext: React.Context<FlyoutManagerApi | null>;
|
|
18542
|
+
/**
|
|
18543
|
+
* Provides the Flyout Manager API via context and runs layout-mode logic.
|
|
18544
|
+
*/
|
|
18545
|
+
export const EuiFlyoutManager: React.FC<{
|
|
18546
|
+
children: React.ReactNode;
|
|
18547
|
+
}>;
|
|
18548
|
+
/** Hook to access the Flyout Manager API from context. */
|
|
18549
|
+
export const useFlyoutManager: () => FlyoutManagerApi | null;
|
|
18550
|
+
|
|
18436
18551
|
}
|
|
18437
18552
|
declare module '@elastic/eui/src/components/flyout/manager/activity_stage' {
|
|
18438
18553
|
import type { EuiFlyoutActivityStage, EuiFlyoutLevel } from '@elastic/eui/src/components/flyout/manager/types';
|
|
@@ -18604,7 +18719,7 @@ declare module '@elastic/eui/src/components/flyout/manager' {
|
|
|
18604
18719
|
/**
|
|
18605
18720
|
* Convenience re-exports of bound action creators for external usage.
|
|
18606
18721
|
*/
|
|
18607
|
-
export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, closeAllFlyouts as closeAllFlyoutsAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
18722
|
+
export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, closeAllFlyouts as closeAllFlyoutsAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPagination as setPaginationAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
18608
18723
|
/** Reducer and default state for the flyout manager. */
|
|
18609
18724
|
export { flyoutManagerReducer, initialState } from '@elastic/eui/src/components/flyout/manager/reducer';
|
|
18610
18725
|
/** Flyout manager store singleton and types. */
|
|
@@ -18618,7 +18733,7 @@ declare module '@elastic/eui/src/components/flyout/manager' {
|
|
|
18618
18733
|
/**
|
|
18619
18734
|
* Selectors and derived state hooks for managed flyouts.
|
|
18620
18735
|
*/
|
|
18621
|
-
export { useCurrentChildFlyout, useCurrentMainFlyout, useCurrentSession, useFlyoutId, useFlyoutLayoutMode, useFlyoutManager, useFlyoutWidth, useHasChildFlyout, useIsFlyoutActive, useIsInManagedFlyout, useHasActiveSession, useParentFlyoutSize, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/hooks';
|
|
18736
|
+
export { useCurrentChildFlyout, useCurrentMainFlyout, useCurrentSession, useFlyoutId, useFlyoutLayoutMode, useFlyoutManager, useFlyoutPagination, useFlyoutWidth, useHasChildFlyout, useIsFlyoutActive, useIsInManagedFlyout, useHasActiveSession, useParentFlyoutSize, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/hooks';
|
|
18622
18737
|
export { EuiFlyoutChild, type EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/manager/flyout_child';
|
|
18623
18738
|
export { EuiFlyoutMain, type EuiFlyoutMainProps } from '@elastic/eui/src/components/flyout/manager/flyout_main';
|
|
18624
18739
|
/** Utility functions for flyout sizing and layout. */
|
|
@@ -19646,6 +19761,7 @@ declare module '@elastic/eui/src/components/flyout/use_flyout_menu' {
|
|
|
19646
19761
|
};
|
|
19647
19762
|
historyItems?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutHistoryItem[];
|
|
19648
19763
|
customActions?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutMenuCustomAction[];
|
|
19764
|
+
pagination?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutMenuPagination;
|
|
19649
19765
|
};
|
|
19650
19766
|
shouldRenderMenu: boolean;
|
|
19651
19767
|
ariaLabelledBy: string | undefined;
|
|
@@ -19661,12 +19777,16 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
19661
19777
|
import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
19662
19778
|
import { _EuiFlyoutPaddingSize, _EuiFlyoutSide, _EuiFlyoutType, EuiFlyoutMenuDisplayMode, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
|
|
19663
19779
|
import { EuiFlyoutMenuProps } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
19664
|
-
import type { EuiFlyoutCloseEvent } from '@elastic/eui/src/components/flyout/types';
|
|
19780
|
+
import type { EuiFlyoutCloseEvent, EuiFlyoutCloseMeta } from '@elastic/eui/src/components/flyout/types';
|
|
19665
19781
|
interface _EuiFlyoutComponentProps {
|
|
19666
19782
|
/**
|
|
19667
19783
|
* A required callback function fired when the flyout is closed.
|
|
19784
|
+
*
|
|
19785
|
+
* The optional second `meta` argument describes why the flyout closed via
|
|
19786
|
+
* `meta.reason` (e.g. `'close-button'`, `'escape'`, `'outside-click'`, and,
|
|
19787
|
+
* for managed flyouts, `'navigation-back'` or `'navigation-cascade'`).
|
|
19668
19788
|
*/
|
|
19669
|
-
onClose: (event: EuiFlyoutCloseEvent) => void;
|
|
19789
|
+
onClose: (event: EuiFlyoutCloseEvent, meta?: EuiFlyoutCloseMeta) => void;
|
|
19670
19790
|
/**
|
|
19671
19791
|
* Defines the width of the panel.
|
|
19672
19792
|
* Pass a predefined size of `s | m | l`, or pass any number/string compatible with the CSS `width` attribute
|
|
@@ -19955,6 +20075,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_header' {
|
|
|
19955
20075
|
declare module '@elastic/eui/src/components/flyout' {
|
|
19956
20076
|
export type { EuiFlyoutProps, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
|
|
19957
20077
|
export { EuiFlyout } from '@elastic/eui/src/components/flyout/flyout';
|
|
20078
|
+
export type { EuiFlyoutCloseEvent, EuiFlyoutCloseReason, EuiFlyoutCloseMeta, } from '@elastic/eui/src/components/flyout/types';
|
|
19958
20079
|
export type { EuiFlyoutBodyProps } from '@elastic/eui/src/components/flyout/flyout_body';
|
|
19959
20080
|
export { EuiFlyoutBody } from '@elastic/eui/src/components/flyout/flyout_body';
|
|
19960
20081
|
export type { EuiFlyoutFooterProps } from '@elastic/eui/src/components/flyout/flyout_footer';
|
|
@@ -19964,7 +20085,7 @@ declare module '@elastic/eui/src/components/flyout' {
|
|
|
19964
20085
|
export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from '@elastic/eui/src/components/flyout/flyout.styles';
|
|
19965
20086
|
export type { EuiFlyoutResizableProps } from '@elastic/eui/src/components/flyout/flyout_resizable';
|
|
19966
20087
|
export { EuiFlyoutResizable } from '@elastic/eui/src/components/flyout/flyout_resizable';
|
|
19967
|
-
export type { EuiFlyoutMenuProps, EuiFlyoutHistoryItem, EuiFlyoutMenuCustomAction, } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
20088
|
+
export type { EuiFlyoutMenuProps, EuiFlyoutHistoryItem, EuiFlyoutMenuCustomAction, EuiFlyoutMenuPagination, } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
19968
20089
|
export { EuiFlyoutMenu } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
19969
20090
|
export { useIsInManagedFlyout, useHasActiveSession } from '@elastic/eui/src/components/flyout/manager';
|
|
19970
20091
|
export { useIsInsideParentFlyout } from '@elastic/eui/src/components/flyout/flyout_parent_context';
|
|
@@ -22084,6 +22205,10 @@ declare module '@elastic/eui/src/components/avatar/avatar.styles' {
|
|
|
22084
22205
|
uppercase: import("@emotion/react").SerializedStyles;
|
|
22085
22206
|
lowercase: import("@emotion/react").SerializedStyles;
|
|
22086
22207
|
none: import("@emotion/react").SerializedStyles;
|
|
22208
|
+
tooltip: {
|
|
22209
|
+
user: import("@emotion/react").SerializedStyles;
|
|
22210
|
+
space: import("@emotion/react").SerializedStyles;
|
|
22211
|
+
};
|
|
22087
22212
|
};
|
|
22088
22213
|
|
|
22089
22214
|
}
|
|
@@ -29220,8 +29345,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
29220
29345
|
|
|
29221
29346
|
}
|
|
29222
29347
|
declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_interval' {
|
|
29223
|
-
import React
|
|
29224
|
-
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
29348
|
+
import React from 'react';
|
|
29225
29349
|
import { Milliseconds, RefreshUnitsOptions, ApplyRefreshInterval } from '@elastic/eui/src/components/date_picker/types';
|
|
29226
29350
|
export type EuiRefreshIntervalProps = {
|
|
29227
29351
|
/**
|
|
@@ -29248,30 +29372,10 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
|
|
|
29248
29372
|
*/
|
|
29249
29373
|
onRefreshChange: ApplyRefreshInterval;
|
|
29250
29374
|
};
|
|
29251
|
-
|
|
29252
|
-
|
|
29253
|
-
|
|
29254
|
-
|
|
29255
|
-
}
|
|
29256
|
-
export class EuiRefreshInterval extends Component<EuiRefreshIntervalProps, EuiRefreshIntervalState> {
|
|
29257
|
-
static defaultProps: {
|
|
29258
|
-
isPaused: boolean;
|
|
29259
|
-
refreshInterval: number;
|
|
29260
|
-
minInterval: number;
|
|
29261
|
-
};
|
|
29262
|
-
state: EuiRefreshIntervalState;
|
|
29263
|
-
generateId: (idSuffix?: string) => string;
|
|
29264
|
-
refreshSelectionId: string;
|
|
29265
|
-
onValueChange: ChangeEventHandler<HTMLInputElement>;
|
|
29266
|
-
onUnitsChange: ChangeEventHandler<HTMLSelectElement>;
|
|
29267
|
-
startRefresh: () => void;
|
|
29268
|
-
handleKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
29269
|
-
applyRefreshInterval: () => void;
|
|
29270
|
-
toggleRefresh: () => void;
|
|
29271
|
-
renderScreenReaderText: (refreshUnitsOptions: TimeOptions["refreshUnitsOptions"]) => React.JSX.Element;
|
|
29272
|
-
render(): React.JSX.Element;
|
|
29273
|
-
}
|
|
29274
|
-
export {};
|
|
29375
|
+
export const EuiRefreshInterval: {
|
|
29376
|
+
({ isPaused, refreshInterval, minInterval, intervalUnits, onRefreshChange, }: EuiRefreshIntervalProps): React.JSX.Element;
|
|
29377
|
+
displayName: string;
|
|
29378
|
+
};
|
|
29275
29379
|
|
|
29276
29380
|
}
|
|
29277
29381
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover' {
|
|
@@ -36053,10 +36157,36 @@ declare module '@elastic/eui/src/components/basic_table/expanded_item_actions' {
|
|
|
36053
36157
|
}
|
|
36054
36158
|
export const ExpandedItemActions: <T extends {}>({ actions, itemId, item, actionsDisabled, className, }: ExpandedItemActionsProps<T>) => ReactElement;
|
|
36055
36159
|
|
|
36160
|
+
}
|
|
36161
|
+
declare module '@elastic/eui/src/components/basic_table/panel.styles' {
|
|
36162
|
+
import type { UseEuiTheme } from '@elastic/eui/src/services';
|
|
36163
|
+
export const euiBasicTablePanelStyles: ({ euiTheme }: UseEuiTheme) => import("@emotion/react").SerializedStyles;
|
|
36164
|
+
|
|
36165
|
+
}
|
|
36166
|
+
declare module '@elastic/eui/src/components/basic_table/use_panel_props' {
|
|
36167
|
+
/**
|
|
36168
|
+
* @internal
|
|
36169
|
+
*/
|
|
36170
|
+
export const EUI_BASIC_TABLE_PANEL_CLASS_NAME: "euiBasicTablePanel";
|
|
36171
|
+
/**
|
|
36172
|
+
* A utility hook that returns props needed to be passed to element(s) being
|
|
36173
|
+
* a part of the paneled table look and feel (e.g., a toolbar above the table).
|
|
36174
|
+
* @beta
|
|
36175
|
+
*/
|
|
36176
|
+
export const useEuiBasicTablePanelProps: () => {
|
|
36177
|
+
css: import("@emotion/serialize").SerializedStyles;
|
|
36178
|
+
className: "euiBasicTablePanel";
|
|
36179
|
+
};
|
|
36180
|
+
|
|
36056
36181
|
}
|
|
36057
36182
|
declare module '@elastic/eui/src/components/basic_table/basic_table.styles' {
|
|
36058
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
36183
|
+
import type { UseEuiTheme } from '@elastic/eui/src/services';
|
|
36184
|
+
import type { EuiTableProps } from '@elastic/eui/src/components/table';
|
|
36059
36185
|
export const euiBasicTableBodyLoading: (euiThemeContext: UseEuiTheme) => import("@emotion/react").SerializedStyles;
|
|
36186
|
+
/**
|
|
36187
|
+
* @internal
|
|
36188
|
+
*/
|
|
36189
|
+
export const euiBasicTableWrapperPanelledStyles: (responsiveBreakpoint: EuiTableProps["responsiveBreakpoint"]) => (theme: UseEuiTheme) => import("@emotion/react").SerializedStyles | null;
|
|
36060
36190
|
export const safariLoadingWorkaround: import("@emotion/react").SerializedStyles;
|
|
36061
36191
|
|
|
36062
36192
|
}
|
|
@@ -36065,7 +36195,7 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
36065
36195
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
36066
36196
|
import { EuiComponentDefaultsContext } from '@elastic/eui/src/components/provider/component_defaults';
|
|
36067
36197
|
import { EuiTableProps } from '@elastic/eui/src/components/table';
|
|
36068
|
-
import { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
|
|
36198
|
+
import { type Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
|
|
36069
36199
|
import { EuiTableActionsColumnType, EuiTableComputedColumnType, EuiTableDataType, EuiTableFieldDataColumnType, ItemId, EuiTableSelectionType, EuiTableSortingType, ItemIdResolved } from '@elastic/eui/src/components/basic_table/table_types';
|
|
36070
36200
|
interface ItemIdToExpandedRowMap {
|
|
36071
36201
|
[id: string]: ReactNode;
|
|
@@ -36136,6 +36266,15 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
36136
36266
|
* Provides an infinite loading indicator
|
|
36137
36267
|
*/
|
|
36138
36268
|
loading?: boolean;
|
|
36269
|
+
/**
|
|
36270
|
+
* Enable the panelled style of the table.
|
|
36271
|
+
*
|
|
36272
|
+
* Panelled style adds contrast between the table navigation controls
|
|
36273
|
+
* and table content itself. It should be used in tables rendered outside
|
|
36274
|
+
* EUI containers like `<EuiPanel>` or `<EuiFlyout>`.
|
|
36275
|
+
* @default false
|
|
36276
|
+
*/
|
|
36277
|
+
panelled?: boolean;
|
|
36139
36278
|
/**
|
|
36140
36279
|
* Message to display if table is empty
|
|
36141
36280
|
*/
|
|
@@ -36370,6 +36509,7 @@ declare module '@elastic/eui/src/components/basic_table' {
|
|
|
36370
36509
|
export type { EuiTableDataType, EuiTableFooterProps, EuiTableFieldDataColumnType, EuiTableComputedColumnType, EuiTableActionsColumnType, EuiTableSelectionType, EuiTableSortingType, } from '@elastic/eui/src/components/basic_table/table_types';
|
|
36371
36510
|
export type { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
|
|
36372
36511
|
export type { DefaultItemAction, CustomItemAction } from '@elastic/eui/src/components/basic_table/action_types';
|
|
36512
|
+
export { useEuiBasicTablePanelProps } from '@elastic/eui/src/components/basic_table/use_panel_props';
|
|
36373
36513
|
|
|
36374
36514
|
}
|
|
36375
36515
|
declare module '@elastic/eui/src/components/text_diff/text_diff.styles' {
|
|
@@ -36425,37 +36565,143 @@ declare module '@elastic/eui/src/components/toast/toast.styles' {
|
|
|
36425
36565
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
36426
36566
|
export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
|
|
36427
36567
|
euiToast: import("@emotion/react").SerializedStyles;
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
36431
|
-
|
|
36432
|
-
|
|
36433
|
-
|
|
36434
|
-
|
|
36435
|
-
|
|
36568
|
+
decor: import("@emotion/react").SerializedStyles;
|
|
36569
|
+
wrapper: import("@emotion/react").SerializedStyles;
|
|
36570
|
+
body: import("@emotion/react").SerializedStyles;
|
|
36571
|
+
content: import("@emotion/react").SerializedStyles;
|
|
36572
|
+
text: import("@emotion/react").SerializedStyles;
|
|
36573
|
+
icon: import("@emotion/react").SerializedStyles;
|
|
36574
|
+
actions: import("@emotion/react").SerializedStyles;
|
|
36575
|
+
dismissButton: import("@emotion/react").SerializedStyles;
|
|
36576
|
+
hasAnimation: import("@emotion/react").SerializedStyles;
|
|
36436
36577
|
};
|
|
36437
36578
|
export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
|
|
36438
36579
|
euiToastHeader: import("@emotion/react").SerializedStyles;
|
|
36439
|
-
|
|
36440
|
-
euiToastHeader__title: import("@emotion/react").SerializedStyles;
|
|
36441
|
-
withBody: import("@emotion/react").SerializedStyles;
|
|
36580
|
+
hasDismissButton: import("@emotion/react").SerializedStyles;
|
|
36442
36581
|
};
|
|
36443
36582
|
|
|
36583
|
+
}
|
|
36584
|
+
declare module '@elastic/eui/src/components/notification_icon/assets/info_fill' {
|
|
36585
|
+
import * as React from 'react';
|
|
36586
|
+
import type { SVGProps } from 'react';
|
|
36587
|
+
interface SVGRProps {
|
|
36588
|
+
title?: string;
|
|
36589
|
+
titleId?: string;
|
|
36590
|
+
}
|
|
36591
|
+
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => React.JSX.Element;
|
|
36592
|
+
export {};
|
|
36593
|
+
|
|
36594
|
+
}
|
|
36595
|
+
declare module '@elastic/eui/src/components/notification_icon/assets/warning_static' {
|
|
36596
|
+
import * as React from 'react';
|
|
36597
|
+
import type { SVGProps } from 'react';
|
|
36598
|
+
interface SVGRProps {
|
|
36599
|
+
title?: string;
|
|
36600
|
+
titleId?: string;
|
|
36601
|
+
}
|
|
36602
|
+
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => React.JSX.Element;
|
|
36603
|
+
export {};
|
|
36604
|
+
|
|
36605
|
+
}
|
|
36606
|
+
declare module '@elastic/eui/src/components/notification_icon/notification_icon.styles' {
|
|
36607
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
36608
|
+
export const euiNotificationIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
36609
|
+
euiNotificationIcon: import("@emotion/react").SerializedStyles;
|
|
36610
|
+
size: {
|
|
36611
|
+
l: import("@emotion/react").SerializedStyles;
|
|
36612
|
+
};
|
|
36613
|
+
};
|
|
36614
|
+
|
|
36615
|
+
}
|
|
36616
|
+
declare module '@elastic/eui/src/components/notification_icon/notification_icon' {
|
|
36617
|
+
import { FunctionComponent } from 'react';
|
|
36618
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
36619
|
+
import { IconType } from '@elastic/eui/src/components/icon/icon'; const TYPES: readonly ["info", "success", "warning", "error"];
|
|
36620
|
+
export type EuiNotificationIconType = (typeof TYPES)[number];
|
|
36621
|
+
export const NOTIFICATION_ICONS_MAP: Record<EuiNotificationIconType, {
|
|
36622
|
+
name: string;
|
|
36623
|
+
icon: IconType;
|
|
36624
|
+
}>;
|
|
36625
|
+
export type EuiNotificationIconProps = CommonProps & {
|
|
36626
|
+
type: EuiNotificationIconType;
|
|
36627
|
+
size?: 'm' | 'l';
|
|
36628
|
+
};
|
|
36629
|
+
export const EuiNotificationIcon: FunctionComponent<EuiNotificationIconProps>;
|
|
36630
|
+
export {};
|
|
36631
|
+
|
|
36632
|
+
}
|
|
36633
|
+
declare module '@elastic/eui/src/components/toast/types' {
|
|
36634
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
36635
|
+
export type EuiToastColor = (typeof COLORS)[number];
|
|
36636
|
+
|
|
36637
|
+
}
|
|
36638
|
+
declare module '@elastic/eui/src/components/toast/toast_action' {
|
|
36639
|
+
import React from 'react';
|
|
36640
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
36641
|
+
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button';
|
|
36642
|
+
import { Props as EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
36643
|
+
import { EuiToastColor } from '@elastic/eui/src/components/toast/types';
|
|
36644
|
+
export type EuiToastActionPrimaryProps = Omit<EuiButtonProps, 'color' | 'size' | 'fill'>;
|
|
36645
|
+
export type EuiToastActionSecondaryProps = Omit<EuiButtonEmptyProps, 'color' | 'size' | 'flush'>;
|
|
36646
|
+
type EuiToastActionPrimary = EuiToastActionPrimaryProps & {
|
|
36647
|
+
actionType: 'primary';
|
|
36648
|
+
};
|
|
36649
|
+
type EuiToastActionSecondary = EuiToastActionSecondaryProps & {
|
|
36650
|
+
actionType: 'secondary';
|
|
36651
|
+
};
|
|
36652
|
+
type EuiToastActionProps = ExclusiveUnion<EuiToastActionPrimary, EuiToastActionSecondary>;
|
|
36653
|
+
export const EuiToastAction: ({ children, actionType, color, ...rest }: EuiToastActionProps & {
|
|
36654
|
+
color?: EuiToastColor;
|
|
36655
|
+
}) => React.JSX.Element;
|
|
36656
|
+
export {};
|
|
36657
|
+
|
|
36444
36658
|
}
|
|
36445
36659
|
declare module '@elastic/eui/src/components/toast/toast' {
|
|
36446
36660
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
36447
36661
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
36448
36662
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
36449
|
-
|
|
36450
|
-
|
|
36663
|
+
import { type EuiNotificationIconType } from '@elastic/eui/src/components/notification_icon/notification_icon';
|
|
36664
|
+
import { EuiToastActionPrimaryProps, EuiToastActionSecondaryProps } from '@elastic/eui/src/components/toast/toast_action';
|
|
36665
|
+
import { EuiToastColor } from '@elastic/eui/src/components/toast/types';
|
|
36666
|
+
export const COLOR_TO_NOTIFICATION_ICON_MAP: Record<EuiToastColor, EuiNotificationIconType>;
|
|
36451
36667
|
export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
36668
|
+
/**
|
|
36669
|
+
* Title of the toast. Should be used with text only. Do not pass complex content or custom components.
|
|
36670
|
+
* Ensure to always pass a title. It's currently marked as optional for backwards compatibility.
|
|
36671
|
+
* In a future major release, this will be required.
|
|
36672
|
+
*/
|
|
36452
36673
|
title?: ReactNode;
|
|
36453
|
-
|
|
36674
|
+
/**
|
|
36675
|
+
* Main component text. Accepts text, text block elements such as `<p>`, and inline elements such as `<span>`, `<strong>`, `<em>` or `<EuiLink>`.
|
|
36676
|
+
* Avoid passing complex layouts or custom components. Use `children` instead.
|
|
36677
|
+
*/
|
|
36678
|
+
text?: ReactNode;
|
|
36679
|
+
/**
|
|
36680
|
+
* Can be used for additional, non-inline content. Use sparingly, as toasts are not meant to have complex content.
|
|
36681
|
+
* Where possible, use `text` and `actionProps` instead to display text and actions.
|
|
36682
|
+
*/
|
|
36683
|
+
children?: ReactNode;
|
|
36684
|
+
color?: EuiToastColor;
|
|
36685
|
+
/**
|
|
36686
|
+
* Defines a custom icon to be displayed.
|
|
36687
|
+
* When no `iconType` is set, a default icon will be used based on the `color` of the toast.
|
|
36688
|
+
*/
|
|
36454
36689
|
iconType?: IconType;
|
|
36455
36690
|
onClose?: () => void;
|
|
36691
|
+
/**
|
|
36692
|
+
* Duration in milliseconds that drives a countdown animation on the toast's decor bar.
|
|
36693
|
+
* When not set the bar is static at full width.
|
|
36694
|
+
*/
|
|
36695
|
+
animationMs?: number;
|
|
36696
|
+
/**
|
|
36697
|
+
* Props for primary and secondary actions within the toast.
|
|
36698
|
+
*/
|
|
36699
|
+
actionProps?: {
|
|
36700
|
+
primary?: EuiToastActionPrimaryProps;
|
|
36701
|
+
secondary?: EuiToastActionSecondaryProps;
|
|
36702
|
+
};
|
|
36456
36703
|
}
|
|
36457
36704
|
export const EuiToast: FunctionComponent<EuiToastProps>;
|
|
36458
|
-
export {};
|
|
36459
36705
|
|
|
36460
36706
|
}
|
|
36461
36707
|
declare module '@elastic/eui/src/services/time/timer' {
|
|
@@ -36484,6 +36730,11 @@ declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
|
|
|
36484
36730
|
* 2. Allow some padding for shadow
|
|
36485
36731
|
*/
|
|
36486
36732
|
euiGlobalToastList: import("@emotion/react").SerializedStyles;
|
|
36733
|
+
content: import("@emotion/react").SerializedStyles;
|
|
36734
|
+
notificationBadge: {
|
|
36735
|
+
notificationBadge: import("@emotion/react").SerializedStyles;
|
|
36736
|
+
hasFadeOut: import("@emotion/react").SerializedStyles;
|
|
36737
|
+
};
|
|
36487
36738
|
right: import("@emotion/react").SerializedStyles;
|
|
36488
36739
|
left: import("@emotion/react").SerializedStyles;
|
|
36489
36740
|
euiGlobalToastListDismissButton: import("@emotion/react").SerializedStyles;
|
|
@@ -36549,6 +36800,12 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
|
36549
36800
|
* @default log
|
|
36550
36801
|
*/
|
|
36551
36802
|
role?: HTMLAttributes<HTMLElement>['role'];
|
|
36803
|
+
/**
|
|
36804
|
+
* Renders a notification badge indicating the amount of toasts in the list.
|
|
36805
|
+
*
|
|
36806
|
+
* @default false
|
|
36807
|
+
*/
|
|
36808
|
+
showNotificationBadge?: boolean;
|
|
36552
36809
|
}
|
|
36553
36810
|
export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
|
|
36554
36811
|
export {};
|
|
@@ -37882,21 +38139,20 @@ declare module '@elastic/eui/src/services/container_query' {
|
|
|
37882
38139
|
|
|
37883
38140
|
declare module '@elastic/eui' {
|
|
37884
38141
|
export type EuiTokensObject = {
|
|
37885
|
-
"
|
|
38142
|
+
"euiTreeView.listNavigationInstructions": any;
|
|
38143
|
+
"euiTourStepIndicator.isActive": any;
|
|
37886
38144
|
"euiTourStepIndicator.isComplete": any;
|
|
37887
38145
|
"euiTourStepIndicator.isIncomplete": any;
|
|
37888
38146
|
"euiTourStepIndicator.ariaLabel": any;
|
|
37889
38147
|
"euiTourFooter.endTour": any;
|
|
37890
38148
|
"euiTourFooter.skipTour": any;
|
|
37891
38149
|
"euiTourFooter.closeTour": any;
|
|
37892
|
-
"euiTreeView.listNavigationInstructions": any;
|
|
37893
38150
|
"euiIconTip.defaultAriaLabel": any;
|
|
37894
|
-
"euiToast.newNotification": any;
|
|
37895
|
-
"euiToast.notification": any;
|
|
37896
38151
|
"euiToast.dismissToast": any;
|
|
38152
|
+
"euiToast.newNotification": any;
|
|
37897
38153
|
"euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
|
|
37898
38154
|
"euiGlobalToastList.clearAllToastsButtonDisplayText": any;
|
|
37899
|
-
"
|
|
38155
|
+
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
37900
38156
|
"euiStepStrings.step": any;
|
|
37901
38157
|
"euiStepStrings.simpleStep": any;
|
|
37902
38158
|
"euiStepStrings.complete": any;
|
|
@@ -37913,9 +38169,10 @@ declare module '@elastic/eui' {
|
|
|
37913
38169
|
"euiStepStrings.simpleLoading": any;
|
|
37914
38170
|
"euiStepStrings.current": any;
|
|
37915
38171
|
"euiStepStrings.simpleCurrent": any;
|
|
37916
|
-
"
|
|
38172
|
+
"euiStat.loadingText": any;
|
|
37917
38173
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
37918
38174
|
"euiSkeletonLoading.loadingAriaText": any;
|
|
38175
|
+
"euiSideNav.mobileToggleAriaLabel": any;
|
|
37919
38176
|
"euiSelectable.loadingOptions": any;
|
|
37920
38177
|
"euiSelectable.noMatchingOptions": any;
|
|
37921
38178
|
"euiSelectable.noAvailableOptions": any;
|
|
@@ -37929,12 +38186,13 @@ declare module '@elastic/eui' {
|
|
|
37929
38186
|
"euiResizableButton.horizontalResizerAriaLabel": any;
|
|
37930
38187
|
"euiResizableButton.verticalResizerAriaLabel": any;
|
|
37931
38188
|
"euiProgress.valueText": any;
|
|
37932
|
-
"euiSideNav.mobileToggleAriaLabel": any;
|
|
37933
38189
|
"euiPopover.screenReaderAnnouncement": any;
|
|
37934
38190
|
"euiPaginationButtonArrow.firstPage": any;
|
|
37935
38191
|
"euiPaginationButtonArrow.previousPage": any;
|
|
37936
38192
|
"euiPaginationButtonArrow.nextPage": any;
|
|
37937
38193
|
"euiPaginationButtonArrow.lastPage": any;
|
|
38194
|
+
"euiPaginationButton.longPageString": any;
|
|
38195
|
+
"euiPaginationButton.shortPageString": any;
|
|
37938
38196
|
"euiPagination.pageOfTotalCompressed": any;
|
|
37939
38197
|
"euiPagination.firstRangeAriaLabel": any;
|
|
37940
38198
|
"euiPagination.lastRangeAriaLabel": any;
|
|
@@ -37943,10 +38201,6 @@ declare module '@elastic/eui' {
|
|
|
37943
38201
|
"euiPagination.of": any;
|
|
37944
38202
|
"euiPagination.collection": any;
|
|
37945
38203
|
"euiPagination.fromEndLabel": any;
|
|
37946
|
-
"euiPaginationButton.longPageString": any;
|
|
37947
|
-
"euiPaginationButton.shortPageString": any;
|
|
37948
|
-
"euiMark.highlightStart": any;
|
|
37949
|
-
"euiMark.highlightEnd": any;
|
|
37950
38204
|
"euiModal.screenReaderModalDialog": any;
|
|
37951
38205
|
"euiModal.closeModal": any;
|
|
37952
38206
|
"euiMarkdownEditorToolbar.editor": any;
|
|
@@ -37964,6 +38218,8 @@ declare module '@elastic/eui' {
|
|
|
37964
38218
|
"euiMarkdownEditorFooter.supportedFileTypes": any;
|
|
37965
38219
|
"euiMarkdownEditorFooter.showSyntaxErrors": any;
|
|
37966
38220
|
"euiMarkdownEditorFooter.errorsTitle": any;
|
|
38221
|
+
"euiMark.highlightStart": any;
|
|
38222
|
+
"euiMark.highlightEnd": any;
|
|
37967
38223
|
"euiLoadingStrings.ariaLabel": any;
|
|
37968
38224
|
"euiExternalLinkIcon.newTarget.screenReaderOnlyText": any;
|
|
37969
38225
|
"euiExternalLinkIcon.externalTarget.screenReaderOnlyText": any;
|
|
@@ -37973,13 +38229,16 @@ declare module '@elastic/eui' {
|
|
|
37973
38229
|
"euiInlineEditForm.activateEditModeDescription": any;
|
|
37974
38230
|
"euiImageButton.openFullScreen": any;
|
|
37975
38231
|
"euiImageButton.closeFullScreen": any;
|
|
38232
|
+
"euiForm.addressFormErrors": any;
|
|
37976
38233
|
"euiFlyoutMenu.back": any;
|
|
37977
38234
|
"euiFlyoutMenu.history": any;
|
|
38235
|
+
"euiFlyoutMenu.pagination.previous": any;
|
|
38236
|
+
"euiFlyoutMenu.pagination.next": any;
|
|
38237
|
+
"euiFlyoutMenu.pagination.counter": any;
|
|
37978
38238
|
"euiFlyout.screenReaderModalDialog": any;
|
|
37979
38239
|
"euiFlyout.screenReaderNoOverlayMaskDialog": any;
|
|
37980
38240
|
"euiFlyout.screenReaderFocusTrapShards": any;
|
|
37981
38241
|
"euiFlyoutCloseButton.ariaLabel": any;
|
|
37982
|
-
"euiForm.addressFormErrors": any;
|
|
37983
38242
|
"euiFilterButton.filterBadgeActiveAriaLabel": any;
|
|
37984
38243
|
"euiFilterButton.filterBadgeAvailableAriaLabel": any;
|
|
37985
38244
|
"euiErrorBoundary.error": any;
|
|
@@ -38005,13 +38264,13 @@ declare module '@elastic/eui' {
|
|
|
38005
38264
|
"euiColorPicker.closeLabel": any;
|
|
38006
38265
|
"euiColorPicker.ariaLabel": any;
|
|
38007
38266
|
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
38008
|
-
"euiCallOut.dismissAriaLabel": any;
|
|
38009
38267
|
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
38010
38268
|
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
38011
38269
|
"euiCodeBlockFullScreen.ariaLabel": any;
|
|
38012
38270
|
"euiCodeBlockCopy.copy": any;
|
|
38013
38271
|
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
38014
38272
|
"euiCodeBlock.label": any;
|
|
38273
|
+
"euiCallOut.dismissAriaLabel": any;
|
|
38015
38274
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
38016
38275
|
"euiBreadcrumb.collapsedBadge.ariaLabel": any;
|
|
38017
38276
|
"euiBreadcrumb.popoverAriaLabel": any;
|
|
@@ -38054,20 +38313,30 @@ declare module '@elastic/eui' {
|
|
|
38054
38313
|
"euiPinnableListGroup.pinnedExtraActionLabel": any;
|
|
38055
38314
|
"euiHeaderLinks.appNavigation": any;
|
|
38056
38315
|
"euiHeaderLinks.openNavigationMenu": any;
|
|
38057
|
-
"euiFlyoutManaged.defaultTitle": any;
|
|
38058
38316
|
"euiSuperSelect.screenReaderAnnouncement": any;
|
|
38059
38317
|
"euiSuperSelect.ariaLabel": any;
|
|
38060
38318
|
"euiRange.sliderScreenReaderInstructions": any;
|
|
38061
38319
|
"euiDualRange.sliderScreenReaderInstructions": any;
|
|
38062
38320
|
"euiFormControlLayoutDelimited.delimiterLabel": any;
|
|
38063
38321
|
"euiFormControlLayoutClearButton.label": any;
|
|
38064
|
-
"euiFieldSearch.clearSearchButtonLabel": any;
|
|
38065
38322
|
"euiFilePicker.promptText": any;
|
|
38066
38323
|
"euiFilePicker.filesSelected": any;
|
|
38067
38324
|
"euiFilePicker.removeSelectedAriaLabel": any;
|
|
38068
38325
|
"euiFilePicker.removeSelected": any;
|
|
38326
|
+
"euiFieldSearch.clearSearchButtonLabel": any;
|
|
38069
38327
|
"euiFieldPassword.showPassword": any;
|
|
38070
38328
|
"euiFieldPassword.maskPassword": any;
|
|
38329
|
+
"euiFlyoutManaged.defaultTitle": any;
|
|
38330
|
+
"euiTimeWindowButtons.previousDescription": any;
|
|
38331
|
+
"euiTimeWindowButtons.nextDescription": any;
|
|
38332
|
+
"euiTimeWindowButtons.invalidShiftLabel": any;
|
|
38333
|
+
"euiTimeWindowButtons.invalidZoomInLabel": any;
|
|
38334
|
+
"euiTimeWindowButtons.cannotZoomInLabel": any;
|
|
38335
|
+
"euiTimeWindowButtons.invalidZoomOutLabel": any;
|
|
38336
|
+
"euiTimeWindowButtons.previousLabel": any;
|
|
38337
|
+
"euiTimeWindowButtons.zoomInLabel": any;
|
|
38338
|
+
"euiTimeWindowButtons.zoomOutLabel": any;
|
|
38339
|
+
"euiTimeWindowButtons.nextLabel": any;
|
|
38071
38340
|
"euiTimeOptions.last": any;
|
|
38072
38341
|
"euiTimeOptions.next": any;
|
|
38073
38342
|
"euiTimeOptions.seconds": any;
|
|
@@ -38106,16 +38375,6 @@ declare module '@elastic/eui' {
|
|
|
38106
38375
|
"euiTimeOptions.weekToDate": any;
|
|
38107
38376
|
"euiTimeOptions.monthToDate": any;
|
|
38108
38377
|
"euiTimeOptions.yearToDate": any;
|
|
38109
|
-
"euiTimeWindowButtons.previousDescription": any;
|
|
38110
|
-
"euiTimeWindowButtons.nextDescription": any;
|
|
38111
|
-
"euiTimeWindowButtons.invalidShiftLabel": any;
|
|
38112
|
-
"euiTimeWindowButtons.invalidZoomInLabel": any;
|
|
38113
|
-
"euiTimeWindowButtons.cannotZoomInLabel": any;
|
|
38114
|
-
"euiTimeWindowButtons.invalidZoomOutLabel": any;
|
|
38115
|
-
"euiTimeWindowButtons.previousLabel": any;
|
|
38116
|
-
"euiTimeWindowButtons.zoomInLabel": any;
|
|
38117
|
-
"euiTimeWindowButtons.zoomOutLabel": any;
|
|
38118
|
-
"euiTimeWindowButtons.nextLabel": any;
|
|
38119
38378
|
"euiSuperUpdateButton.updatingButtonLabel": any;
|
|
38120
38379
|
"euiSuperUpdateButton.updateButtonLabel": any;
|
|
38121
38380
|
"euiSuperUpdateButton.refreshButtonLabel": any;
|
|
@@ -38250,7 +38509,6 @@ declare module '@elastic/eui' {
|
|
|
38250
38509
|
"euiAccordionChildrenLoading.message": any;
|
|
38251
38510
|
"euiRecentlyUsed.legend": any;
|
|
38252
38511
|
"euiQuickSelectPopover.buttonLabel": any;
|
|
38253
|
-
"euiCommonlyUsedTimeRanges.legend": any;
|
|
38254
38512
|
"euiQuickSelect.quickSelectTitle": any;
|
|
38255
38513
|
"euiQuickSelect.previousLabel": any;
|
|
38256
38514
|
"euiQuickSelect.nextLabel": any;
|
|
@@ -38259,6 +38517,7 @@ declare module '@elastic/eui' {
|
|
|
38259
38517
|
"euiQuickSelect.unitLabel": any;
|
|
38260
38518
|
"euiQuickSelect.applyButton": any;
|
|
38261
38519
|
"euiQuickSelect.fullDescription": any;
|
|
38520
|
+
"euiCommonlyUsedTimeRanges.legend": any;
|
|
38262
38521
|
"euiRelativeTab.numberInputLabel": any;
|
|
38263
38522
|
"euiRelativeTab.numberInputError": any;
|
|
38264
38523
|
"euiRelativeTab.dateInputError": any;
|
|
@@ -38276,12 +38535,6 @@ declare module '@elastic/eui' {
|
|
|
38276
38535
|
"euiDatePopoverButton.outdatedTitle": any;
|
|
38277
38536
|
"euiAbsoluteTab.dateFormatButtonLabel": any;
|
|
38278
38537
|
"euiAbsoluteTab.dateFormatError": any;
|
|
38279
|
-
"euiDataGridCell.focusTrapExitPrompt": any;
|
|
38280
|
-
"euiDataGridCell.focusTrapEnterPrompt": any;
|
|
38281
|
-
"euiDataGridCell.focusTrapEnteredExitPrompt": any;
|
|
38282
|
-
"euiDataGridCellActions.expandButtonTitle": any;
|
|
38283
|
-
"euiDataGridCell.position": any;
|
|
38284
|
-
"euiDataGridCell.expansionEnterPrompt": any;
|
|
38285
38538
|
"euiDataGridHeaderCell.sortedByAscendingSingle": any;
|
|
38286
38539
|
"euiDataGridHeaderCell.sortedByDescendingSingle": any;
|
|
38287
38540
|
"euiDataGridHeaderCell.sortedByAscendingFirst": any;
|
|
@@ -38296,6 +38549,12 @@ declare module '@elastic/eui' {
|
|
|
38296
38549
|
"euiColumnActions.moveRight": any;
|
|
38297
38550
|
"euiColumnActions.unsort": any;
|
|
38298
38551
|
"euiColumnActions.sort": any;
|
|
38552
|
+
"euiDataGridCell.focusTrapExitPrompt": any;
|
|
38553
|
+
"euiDataGridCell.focusTrapEnterPrompt": any;
|
|
38554
|
+
"euiDataGridCell.focusTrapEnteredExitPrompt": any;
|
|
38555
|
+
"euiDataGridCellActions.expandButtonTitle": any;
|
|
38556
|
+
"euiDataGridCell.position": any;
|
|
38557
|
+
"euiDataGridCell.expansionEnterPrompt": any;
|
|
38299
38558
|
"euiCollapsedNavButton.ariaLabelButtonIcon": any;
|
|
38300
38559
|
}
|
|
38301
38560
|
}
|