@elastic/eui 76.0.2 → 76.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +37 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +37 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +5 -6
- package/es/components/datagrid/body/data_grid_body.js +19 -395
- package/es/components/datagrid/body/data_grid_body_custom.js +908 -0
- package/es/components/datagrid/body/data_grid_body_virtualized.js +1031 -0
- package/es/components/datagrid/body/data_grid_cell.js +16 -12
- package/es/components/datagrid/body/data_grid_cell_popover.js +32 -12
- package/es/components/datagrid/body/data_grid_cell_wrapper.js +132 -0
- package/es/components/datagrid/body/header/data_grid_header_row.js +3 -2
- package/es/components/datagrid/data_grid.js +21 -5
- package/es/components/datagrid/data_grid_types.js +18 -1
- package/es/components/datagrid/utils/row_heights.js +111 -31
- package/es/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/es/components/form/range/dual_range.js +14 -7
- package/es/components/form/range/range.js +10 -3
- package/es/components/form/super_select/super_select.js +21 -18
- package/es/components/form/super_select/super_select_control.js +7 -14
- package/es/components/selectable/selectable.js +59 -36
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/suggest/suggest.js +3 -10
- package/eui.d.ts +253 -146
- package/i18ntokens.json +89 -57
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +5 -6
- package/lib/components/datagrid/body/data_grid_body.js +19 -416
- package/lib/components/datagrid/body/data_grid_body_custom.js +927 -0
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +1059 -0
- package/lib/components/datagrid/body/data_grid_cell.js +16 -12
- package/lib/components/datagrid/body/data_grid_cell_popover.js +35 -12
- package/lib/components/datagrid/body/data_grid_cell_wrapper.js +147 -0
- package/lib/components/datagrid/body/header/data_grid_header_row.js +4 -2
- package/lib/components/datagrid/data_grid.js +21 -4
- package/lib/components/datagrid/data_grid_types.js +22 -1
- package/lib/components/datagrid/utils/row_heights.js +116 -33
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/lib/components/form/range/dual_range.js +14 -7
- package/lib/components/form/range/range.js +10 -3
- package/lib/components/form/super_select/super_select.js +21 -18
- package/lib/components/form/super_select/super_select_control.js +7 -16
- package/lib/components/selectable/selectable.js +59 -36
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/suggest/suggest.js +3 -12
- package/optimize/es/components/datagrid/body/data_grid_body.js +17 -387
- package/optimize/es/components/datagrid/body/data_grid_body_custom.js +176 -0
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +311 -0
- package/optimize/es/components/datagrid/body/data_grid_cell.js +12 -9
- package/optimize/es/components/datagrid/body/data_grid_cell_popover.js +30 -12
- package/optimize/es/components/datagrid/body/data_grid_cell_wrapper.js +127 -0
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +3 -2
- package/optimize/es/components/datagrid/data_grid.js +8 -5
- package/optimize/es/components/datagrid/data_grid_types.js +18 -1
- package/optimize/es/components/datagrid/utils/row_heights.js +100 -31
- package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/optimize/es/components/form/range/dual_range.js +14 -7
- package/optimize/es/components/form/range/range.js +10 -3
- package/optimize/es/components/form/super_select/super_select.js +16 -12
- package/optimize/es/components/form/super_select/super_select_control.js +7 -14
- package/optimize/es/components/selectable/selectable.js +50 -34
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/es/components/suggest/suggest.js +3 -10
- package/optimize/lib/components/datagrid/body/data_grid_body.js +16 -409
- package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +198 -0
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +342 -0
- package/optimize/lib/components/datagrid/body/data_grid_cell.js +12 -9
- package/optimize/lib/components/datagrid/body/data_grid_cell_popover.js +33 -19
- package/optimize/lib/components/datagrid/body/data_grid_cell_wrapper.js +144 -0
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +4 -2
- package/optimize/lib/components/datagrid/data_grid.js +8 -4
- package/optimize/lib/components/datagrid/data_grid_types.js +22 -1
- package/optimize/lib/components/datagrid/utils/row_heights.js +103 -37
- package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/optimize/lib/components/form/range/dual_range.js +14 -7
- package/optimize/lib/components/form/range/range.js +10 -3
- package/optimize/lib/components/form/super_select/super_select.js +16 -11
- package/optimize/lib/components/form/super_select/super_select_control.js +7 -16
- package/optimize/lib/components/selectable/selectable.js +50 -35
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/lib/components/suggest/suggest.js +3 -12
- package/package.json +1 -1
- package/src/components/datagrid/_data_grid.scss +7 -0
- package/src/components/datagrid/_data_grid_data_row.scss +1 -0
- package/src/components/datagrid/body/footer/_data_grid_footer_row.scss +1 -0
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -0
- package/src/components/form/super_select/_super_select_control.scss +4 -0
- package/src/components/selectable/selectable_list/_selectable_list.scss +10 -3
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +17 -8
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +5 -6
- package/test-env/components/datagrid/body/data_grid_body.js +18 -415
- package/test-env/components/datagrid/body/data_grid_body_custom.js +908 -0
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +1057 -0
- package/test-env/components/datagrid/body/data_grid_cell.js +16 -12
- package/test-env/components/datagrid/body/data_grid_cell_popover.js +33 -19
- package/test-env/components/datagrid/body/data_grid_cell_wrapper.js +144 -0
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +4 -2
- package/test-env/components/datagrid/data_grid.js +21 -4
- package/test-env/components/datagrid/data_grid_types.js +22 -1
- package/test-env/components/datagrid/utils/row_heights.js +103 -37
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/test-env/components/form/range/dual_range.js +14 -7
- package/test-env/components/form/range/range.js +10 -3
- package/test-env/components/form/super_select/super_select.js +21 -17
- package/test-env/components/form/super_select/super_select_control.js +7 -16
- package/test-env/components/selectable/selectable.js +58 -36
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/suggest/suggest.js +3 -12
package/eui.d.ts
CHANGED
|
@@ -5753,7 +5753,7 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
|
|
|
5753
5753
|
disabled?: boolean;
|
|
5754
5754
|
'data-test-subj'?: string;
|
|
5755
5755
|
}
|
|
5756
|
-
export interface EuiSuperSelectControlProps<T> extends CommonProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
5756
|
+
export interface EuiSuperSelectControlProps<T> extends CommonProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'placeholder'> {
|
|
5757
5757
|
/**
|
|
5758
5758
|
* @default false
|
|
5759
5759
|
*/
|
|
@@ -5774,6 +5774,7 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
|
|
|
5774
5774
|
isLoading?: boolean;
|
|
5775
5775
|
readOnly?: boolean;
|
|
5776
5776
|
name?: string;
|
|
5777
|
+
placeholder?: ReactNode;
|
|
5777
5778
|
value?: T;
|
|
5778
5779
|
options?: Array<EuiSuperSelectOption<T>>;
|
|
5779
5780
|
/**
|
|
@@ -5786,11 +5787,6 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
|
|
|
5786
5787
|
* `string` | `ReactElement` or an array of these
|
|
5787
5788
|
*/
|
|
5788
5789
|
append?: EuiFormControlLayoutProps['append'];
|
|
5789
|
-
/**
|
|
5790
|
-
* Creates a semantic label ID for the `div[role="listbox"]` that's opened on click or keypress.
|
|
5791
|
-
* __Generated and passed down by `EuiSuperSelect`.__
|
|
5792
|
-
*/
|
|
5793
|
-
screenReaderId?: string;
|
|
5794
5790
|
}
|
|
5795
5791
|
export const EuiSuperSelectControl: <T extends string>(props: EuiSuperSelectControlProps<T>) => ReturnType<FunctionComponent<EuiSuperSelectControlProps<T>>>;
|
|
5796
5792
|
|
|
@@ -6271,7 +6267,7 @@ declare module '@elastic/eui/src/components/context_menu' {
|
|
|
6271
6267
|
|
|
6272
6268
|
}
|
|
6273
6269
|
declare module '@elastic/eui/src/components/form/super_select/super_select' {
|
|
6274
|
-
import React, { Component, FocusEvent } from 'react';
|
|
6270
|
+
import React, { Component, FocusEvent, ReactNode } from 'react';
|
|
6275
6271
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
6276
6272
|
import { EuiSuperSelectControlProps, EuiSuperSelectOption } from '@elastic/eui/src/components/form/super_select/super_select_control';
|
|
6277
6273
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
@@ -6288,6 +6284,10 @@ declare module '@elastic/eui/src/components/form/super_select/super_select' {
|
|
|
6288
6284
|
*/
|
|
6289
6285
|
options: Array<EuiSuperSelectOption<T>>;
|
|
6290
6286
|
valueOfSelected?: T;
|
|
6287
|
+
/**
|
|
6288
|
+
* Placeholder to display when the current selected value is empty.
|
|
6289
|
+
*/
|
|
6290
|
+
placeholder?: ReactNode;
|
|
6291
6291
|
/**
|
|
6292
6292
|
* Classes for the context menu item
|
|
6293
6293
|
*/
|
|
@@ -6333,7 +6333,6 @@ declare module '@elastic/eui/src/components/form/super_select/super_select' {
|
|
|
6333
6333
|
private itemNodes;
|
|
6334
6334
|
private _isMounted;
|
|
6335
6335
|
describedById: string;
|
|
6336
|
-
labelledById: string;
|
|
6337
6336
|
state: {
|
|
6338
6337
|
isPopoverOpen: boolean;
|
|
6339
6338
|
};
|
|
@@ -11425,12 +11424,8 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
11425
11424
|
export const cellPaddingsMap: Record<EuiDataGridStyleCellPaddings, number>;
|
|
11426
11425
|
export const AUTO_HEIGHT = "auto";
|
|
11427
11426
|
export const DEFAULT_ROW_HEIGHT = 34;
|
|
11427
|
+
export type RowHeightUtilsType = RowHeightUtils | RowHeightVirtualizationUtils;
|
|
11428
11428
|
export class RowHeightUtils {
|
|
11429
|
-
private gridRef;
|
|
11430
|
-
private outerGridElementRef;
|
|
11431
|
-
private gridItemsRenderedRef;
|
|
11432
|
-
private rerenderGridBodyRef;
|
|
11433
|
-
constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, outerGridElementRef: MutableRefObject<HTMLDivElement | null>, gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
|
|
11434
11429
|
getRowHeightOption(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): EuiDataGridRowHeightOption | undefined;
|
|
11435
11430
|
isRowHeightOverride(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): boolean;
|
|
11436
11431
|
getCalculatedHeight(heightOption: EuiDataGridRowHeightOption, defaultHeight: number, rowIndex?: number, isRowHeightOverride?: boolean): number;
|
|
@@ -11448,13 +11443,32 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
11448
11443
|
/**
|
|
11449
11444
|
* Auto height utils
|
|
11450
11445
|
*/
|
|
11446
|
+
isAutoHeight(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): boolean;
|
|
11447
|
+
/**
|
|
11448
|
+
* Heights cache utils
|
|
11449
|
+
* This cache is primarily used by auto heights & secondarily used by lineCount row overrides
|
|
11450
|
+
*/
|
|
11451
11451
|
private heightsCache;
|
|
11452
|
+
getRowHeight(rowIndex: number): number;
|
|
11453
|
+
setRowHeight(rowIndex: number, colId: string, height: number | undefined, _visibleRowIndex: number): boolean;
|
|
11454
|
+
pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): boolean;
|
|
11455
|
+
}
|
|
11456
|
+
/**
|
|
11457
|
+
* Row height utils with virtualization library-specific APIs
|
|
11458
|
+
*/
|
|
11459
|
+
export class RowHeightVirtualizationUtils extends RowHeightUtils {
|
|
11460
|
+
private gridRef;
|
|
11461
|
+
private outerGridElementRef;
|
|
11462
|
+
private gridItemsRenderedRef;
|
|
11463
|
+
private rerenderGridBodyRef;
|
|
11464
|
+
constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, outerGridElementRef: MutableRefObject<HTMLDivElement | null>, gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
|
|
11465
|
+
/**
|
|
11466
|
+
* Virtualization workarounds for auto height rows
|
|
11467
|
+
*/
|
|
11452
11468
|
private timerId?;
|
|
11453
11469
|
private lastUpdatedRow;
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
setRowHeight(rowIndex: number, colId: string, height: number | undefined, visibleRowIndex: number): void;
|
|
11457
|
-
pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): void;
|
|
11470
|
+
setRowHeight(rowIndex: number, colId: string, height: number | undefined, visibleRowIndex: number): boolean;
|
|
11471
|
+
pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): boolean;
|
|
11458
11472
|
resetRow(visibleRowIndex: number): void;
|
|
11459
11473
|
resetGrid(): void;
|
|
11460
11474
|
compensateForLayoutShift(rowIndex: number, verticalLayoutShift: number, anchorRow: EuiDataGridScrollAnchorRow): void;
|
|
@@ -11463,17 +11477,19 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
11463
11477
|
* Hook for instantiating RowHeightUtils, setting internal class vars,
|
|
11464
11478
|
* and setting up various row-height-related side effects
|
|
11465
11479
|
*/
|
|
11466
|
-
export const useRowHeightUtils: ({
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11480
|
+
export const useRowHeightUtils: ({ virtualization, rowHeightsOptions, gridStyles, columns, }: {
|
|
11481
|
+
virtualization?: false | {
|
|
11482
|
+
gridRef: MutableRefObject<ImperativeGridApi | null>;
|
|
11483
|
+
outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
|
|
11484
|
+
gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
|
|
11485
|
+
} | undefined;
|
|
11486
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
|
|
11470
11487
|
gridStyles: EuiDataGridStyle;
|
|
11471
11488
|
columns: EuiDataGridColumn[];
|
|
11472
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
|
|
11473
11489
|
}) => RowHeightUtils;
|
|
11474
11490
|
export const useDefaultRowHeight: ({ rowHeightsOptions, rowHeightUtils, }: {
|
|
11475
11491
|
rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
|
|
11476
|
-
rowHeightUtils:
|
|
11492
|
+
rowHeightUtils: RowHeightUtilsType;
|
|
11477
11493
|
}) => {
|
|
11478
11494
|
defaultRowHeight: number;
|
|
11479
11495
|
setRowHeight: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
@@ -11585,14 +11601,15 @@ declare module '@elastic/eui/src/components/token' {
|
|
|
11585
11601
|
|
|
11586
11602
|
}
|
|
11587
11603
|
declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
11588
|
-
import { ComponentType, JSXElementConstructor, ReactNode, HTMLAttributes, CSSProperties, ReactElement, AriaAttributes, MutableRefObject, Component } from 'react';
|
|
11604
|
+
import { ComponentType, JSXElementConstructor, ReactNode, HTMLAttributes, CSSProperties, ReactElement, AriaAttributes, MutableRefObject, Ref, Component } from 'react';
|
|
11589
11605
|
import { VariableSizeGridProps, VariableSizeGrid as Grid, GridOnItemsRenderedProps } from 'react-window';
|
|
11590
11606
|
import { EuiListGroupItemProps } from '@elastic/eui/src/components/list_group';
|
|
11591
11607
|
import { EuiButtonEmpty, EuiButtonIcon } from '@elastic/eui/src/components/button';
|
|
11592
11608
|
import { ExclusiveUnion, CommonProps, OneOf } from '@elastic/eui/src/components/common';
|
|
11593
|
-
import {
|
|
11609
|
+
import { RowHeightUtilsType } from '@elastic/eui/src/components/datagrid/utils/row_heights';
|
|
11594
11610
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
11595
11611
|
import { EuiTokenProps } from '@elastic/eui/src/components/token';
|
|
11612
|
+
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
11596
11613
|
export type ImperativeGridApi = Omit<Grid, keyof Component>;
|
|
11597
11614
|
export interface EuiDataGridToolbarProps {
|
|
11598
11615
|
gridWidth: number;
|
|
@@ -11747,6 +11764,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
11747
11764
|
closeCellPopover(): void;
|
|
11748
11765
|
setPopoverAnchor(anchor: HTMLElement): void;
|
|
11749
11766
|
setPopoverContent(content: ReactNode): void;
|
|
11767
|
+
setCellPopoverProps: EuiDataGridCellPopoverElementProps['setCellPopoverProps'];
|
|
11750
11768
|
}
|
|
11751
11769
|
export type CommonGridProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
11752
11770
|
/**
|
|
@@ -11802,6 +11820,18 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
11802
11820
|
* as its only argument.
|
|
11803
11821
|
*/
|
|
11804
11822
|
renderFooterCellValue?: EuiDataGridCellProps['renderCellValue'];
|
|
11823
|
+
/**
|
|
11824
|
+
* An optional function called to completely customize and control the rendering of
|
|
11825
|
+
* EuiDataGrid's body and cell placement. This can be used to, e.g. remove EuiDataGrid's
|
|
11826
|
+
* virtualization library, or roll your own.
|
|
11827
|
+
*
|
|
11828
|
+
* This component is **only** meant as an escape hatch for extremely custom use cases.
|
|
11829
|
+
*
|
|
11830
|
+
* Behind the scenes, this function is treated as a React component,
|
|
11831
|
+
* allowing hooks, context, and other React concepts to be used.
|
|
11832
|
+
* It receives #EuiDataGridCustomBodyProps as its only argument.
|
|
11833
|
+
*/
|
|
11834
|
+
renderCustomGridBody?: (args: EuiDataGridCustomBodyProps) => ReactNode;
|
|
11805
11835
|
/**
|
|
11806
11836
|
* Defines the initial style of the grid. Accepts a partial #EuiDataGridStyle object.
|
|
11807
11837
|
* Settings provided may be overwritten or merged with user defined preferences if `toolbarVisibility.showDisplaySelector.allowDensity = true` (which is the default).
|
|
@@ -11928,6 +11958,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
11928
11958
|
renderCellValue: EuiDataGridCellProps['renderCellValue'];
|
|
11929
11959
|
renderCellPopover?: EuiDataGridCellProps['renderCellPopover'];
|
|
11930
11960
|
renderFooterCellValue?: EuiDataGridCellProps['renderCellValue'];
|
|
11961
|
+
renderCustomGridBody?: EuiDataGridProps['renderCustomGridBody'];
|
|
11931
11962
|
interactiveCellId: EuiDataGridCellProps['interactiveCellId'];
|
|
11932
11963
|
pagination?: EuiDataGridPaginationProps;
|
|
11933
11964
|
headerIsInteractive: boolean;
|
|
@@ -11944,6 +11975,44 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
11944
11975
|
gridItemsRendered: MutableRefObject<GridOnItemsRenderedProps | null>;
|
|
11945
11976
|
wrapperRef: MutableRefObject<HTMLDivElement | null>;
|
|
11946
11977
|
}
|
|
11978
|
+
export interface EuiDataGridCustomBodyProps {
|
|
11979
|
+
/**
|
|
11980
|
+
* When taking control of data grid rendering, the underlying `EuiDataGridCell`
|
|
11981
|
+
* is passed as a prop for usage. You **must** pass in a valid `colIndex`
|
|
11982
|
+
* and `visibleRowIndex` to this cell component.
|
|
11983
|
+
*
|
|
11984
|
+
* You may also pass in any other optional cell prop overrides
|
|
11985
|
+
* that `EuiDataGridCell` accepts, such as `isExpandable` or `renderCellValue`.
|
|
11986
|
+
*/
|
|
11987
|
+
Cell: JSXElementConstructor<{
|
|
11988
|
+
colIndex: number;
|
|
11989
|
+
visibleRowIndex: number;
|
|
11990
|
+
} & Partial<EuiDataGridCellProps>>;
|
|
11991
|
+
/**
|
|
11992
|
+
* The currently visible columns are passed to your data grid renderer so that your
|
|
11993
|
+
* custom grid can automatically adjust to column hiding & reordering.
|
|
11994
|
+
*/
|
|
11995
|
+
visibleColumns: EuiDataGridColumn[];
|
|
11996
|
+
/**
|
|
11997
|
+
* The currently visible rows are passed to your data grid renderer so that your
|
|
11998
|
+
* custom grid can automatically adjust to sorting and pagination.
|
|
11999
|
+
*
|
|
12000
|
+
* You will need to manually slice your data with `startRow` and `endRow` in order to simulate pagination.
|
|
12001
|
+
*/
|
|
12002
|
+
visibleRowData: {
|
|
12003
|
+
startRow: number;
|
|
12004
|
+
endRow: number;
|
|
12005
|
+
visibleRowCount: number;
|
|
12006
|
+
};
|
|
12007
|
+
/**
|
|
12008
|
+
* Callback function to set custom props & attributes on the custom grid body's wrapping `div` element.
|
|
12009
|
+
* It's best to wrap calls to `setCustomGridBodyProps` in a `useEffect` hook
|
|
12010
|
+
*/
|
|
12011
|
+
setCustomGridBodyProps: (props: EuiDataGridSetCustomGridBodyProps) => void;
|
|
12012
|
+
}
|
|
12013
|
+
export type EuiDataGridSetCustomGridBodyProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
12014
|
+
ref?: MutableRefObject<HTMLDivElement> | Ref<HTMLDivElement>;
|
|
12015
|
+
};
|
|
11947
12016
|
/**
|
|
11948
12017
|
* Props shared between renderCellValue and renderCellPopover
|
|
11949
12018
|
*/
|
|
@@ -12012,6 +12081,11 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
12012
12081
|
* If so, that component is provided here as a passed React function component for your usage.
|
|
12013
12082
|
*/
|
|
12014
12083
|
DefaultCellPopover: JSXElementConstructor<EuiDataGridCellPopoverElementProps>;
|
|
12084
|
+
/**
|
|
12085
|
+
* Allows passing props to the wrapping cell expansion popover and panel.
|
|
12086
|
+
* Accepts any props that `EuiPopover` accepts, except for `button` and `closePopover`.
|
|
12087
|
+
*/
|
|
12088
|
+
setCellPopoverProps: (props: Omit<EuiPopoverProps, 'button' | 'closePopover'>) => void;
|
|
12015
12089
|
}
|
|
12016
12090
|
export interface EuiDataGridCellProps {
|
|
12017
12091
|
rowIndex: number;
|
|
@@ -12031,7 +12105,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
12031
12105
|
getRowHeight?: (rowIndex: number) => number;
|
|
12032
12106
|
style?: React.CSSProperties;
|
|
12033
12107
|
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
12034
|
-
rowHeightUtils?:
|
|
12108
|
+
rowHeightUtils?: RowHeightUtilsType;
|
|
12035
12109
|
rowManager?: EuiDataGridRowManager;
|
|
12036
12110
|
pagination?: EuiDataGridPaginationProps;
|
|
12037
12111
|
}
|
|
@@ -12073,6 +12147,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
12073
12147
|
*/
|
|
12074
12148
|
footerCellProps?: HTMLAttributes<HTMLDivElement>;
|
|
12075
12149
|
}
|
|
12150
|
+
export const emptyControlColumns: EuiDataGridControlColumn[];
|
|
12076
12151
|
export interface EuiDataGridColumn {
|
|
12077
12152
|
/**
|
|
12078
12153
|
* The unique identifier for this column
|
|
@@ -12473,115 +12548,6 @@ declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
|
12473
12548
|
export const useHeaderFocusWorkaround: (headerIsInteractive: boolean) => void;
|
|
12474
12549
|
export {};
|
|
12475
12550
|
|
|
12476
|
-
}
|
|
12477
|
-
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell_actions' {
|
|
12478
|
-
|
|
12479
|
-
import { EuiDataGridColumn } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12480
|
-
export const EuiDataGridCellActions: ({ onExpandClick, column, rowIndex, colIndex, }: {
|
|
12481
|
-
onExpandClick: () => void;
|
|
12482
|
-
column?: EuiDataGridColumn | undefined;
|
|
12483
|
-
rowIndex: number;
|
|
12484
|
-
colIndex: number;
|
|
12485
|
-
}) => JSX.Element;
|
|
12486
|
-
export const EuiDataGridCellPopoverActions: ({ rowIndex, colIndex, column, }: {
|
|
12487
|
-
column?: EuiDataGridColumn | undefined;
|
|
12488
|
-
colIndex: number;
|
|
12489
|
-
rowIndex: number;
|
|
12490
|
-
}) => JSX.Element;
|
|
12491
|
-
|
|
12492
|
-
}
|
|
12493
|
-
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell_popover' {
|
|
12494
|
-
import React, { ReactNode } from 'react';
|
|
12495
|
-
import { DataGridCellPopoverContextShape, EuiDataGridCellPopoverElementProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12496
|
-
export const DataGridCellPopoverContext: React.Context<DataGridCellPopoverContextShape>;
|
|
12497
|
-
export const useCellPopover: () => {
|
|
12498
|
-
cellPopoverContext: DataGridCellPopoverContextShape;
|
|
12499
|
-
cellPopover: ReactNode;
|
|
12500
|
-
};
|
|
12501
|
-
export const DefaultCellPopover: ({ schema, cellActions, children, cellContentsElement, }: EuiDataGridCellPopoverElementProps) => JSX.Element;
|
|
12502
|
-
export const JsonPopoverContent: ({ cellText }: {
|
|
12503
|
-
cellText: string;
|
|
12504
|
-
}) => JSX.Element;
|
|
12505
|
-
|
|
12506
|
-
}
|
|
12507
|
-
declare module '@elastic/eui/src/utils/prop_types/is' {
|
|
12508
|
-
export const is: <T>(expectedValue: any) => {
|
|
12509
|
-
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12510
|
-
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12511
|
-
};
|
|
12512
|
-
|
|
12513
|
-
}
|
|
12514
|
-
declare module '@elastic/eui/src/utils/prop_types/with_required_prop' {
|
|
12515
|
-
/**
|
|
12516
|
-
* PropType validation that, if the property is present,
|
|
12517
|
-
* validates against a proptype and verifies that another property exists
|
|
12518
|
-
*
|
|
12519
|
-
* example:
|
|
12520
|
-
* ExampleComponent.propTypes = {
|
|
12521
|
-
* items: PropTypes.array,
|
|
12522
|
-
* itemId: withRequiredProp(PropTypes.string, 'items', 'itemId is required to extract the ID from an item')
|
|
12523
|
-
* }
|
|
12524
|
-
*
|
|
12525
|
-
* this validator warns if ExampleComponent is passed an `items` prop but not `itemId`
|
|
12526
|
-
*/
|
|
12527
|
-
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string | undefined) => (...args: any[]) => any;
|
|
12528
|
-
|
|
12529
|
-
}
|
|
12530
|
-
declare module '@elastic/eui/src/utils/prop_types' {
|
|
12531
|
-
export const EuiPropTypes: {
|
|
12532
|
-
is: <T>(expectedValue: any) => {
|
|
12533
|
-
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12534
|
-
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12535
|
-
};
|
|
12536
|
-
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string | undefined) => (...args: any[]) => any;
|
|
12537
|
-
};
|
|
12538
|
-
|
|
12539
|
-
}
|
|
12540
|
-
declare module '@elastic/eui/src/utils/is_jest' {
|
|
12541
|
-
export const IS_JEST_ENVIRONMENT: boolean;
|
|
12542
|
-
|
|
12543
|
-
}
|
|
12544
|
-
declare module '@elastic/eui/src/utils' {
|
|
12545
|
-
export * from '@elastic/eui/src/utils/prop_types';
|
|
12546
|
-
export * from '@elastic/eui/src/utils/is_jest';
|
|
12547
|
-
|
|
12548
|
-
}
|
|
12549
|
-
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell' {
|
|
12550
|
-
import React, { Component, FocusEvent } from 'react';
|
|
12551
|
-
import { EuiDataGridCellProps, EuiDataGridCellState, EuiDataGridSetCellProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12552
|
-
export class EuiDataGridCell extends Component<EuiDataGridCellProps, EuiDataGridCellState> {
|
|
12553
|
-
static activeFocusTimeoutId: number | undefined;
|
|
12554
|
-
cellRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
12555
|
-
contentObserver: any;
|
|
12556
|
-
popoverAnchorRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
12557
|
-
cellContentsRef: HTMLDivElement | null;
|
|
12558
|
-
state: EuiDataGridCellState;
|
|
12559
|
-
unsubscribeCell?: Function;
|
|
12560
|
-
focusTimeout: number | undefined;
|
|
12561
|
-
style: null;
|
|
12562
|
-
static contextType: React.Context<import ("@elastic/eui/src/components/datagrid/data_grid_types").DataGridFocusContextShape>;
|
|
12563
|
-
getInteractables: () => never[] | NodeListOf<HTMLElement>;
|
|
12564
|
-
takeFocus: (preventScroll: boolean) => void;
|
|
12565
|
-
recalculateAutoHeight: () => void;
|
|
12566
|
-
recalculateLineHeight: () => void;
|
|
12567
|
-
componentDidMount(): void;
|
|
12568
|
-
isFocusedCell: () => boolean;
|
|
12569
|
-
onFocusUpdate: (isFocused: boolean, preventScroll?: boolean) => void;
|
|
12570
|
-
componentWillUnmount(): void;
|
|
12571
|
-
componentDidUpdate(prevProps: EuiDataGridCellProps): void;
|
|
12572
|
-
shouldComponentUpdate(nextProps: EuiDataGridCellProps, nextState: EuiDataGridCellState): boolean;
|
|
12573
|
-
setCellProps: (cellProps: EuiDataGridSetCellProps) => void;
|
|
12574
|
-
setCellContentsRef: (ref: HTMLDivElement | null) => void;
|
|
12575
|
-
onFocus: (e: FocusEvent<HTMLDivElement>) => void;
|
|
12576
|
-
onBlur: () => void;
|
|
12577
|
-
preventTabbing: () => void;
|
|
12578
|
-
enableTabbing: () => void;
|
|
12579
|
-
isExpandable: () => boolean;
|
|
12580
|
-
isPopoverOpen: () => boolean;
|
|
12581
|
-
handleCellPopover: () => void;
|
|
12582
|
-
render(): JSX.Element;
|
|
12583
|
-
}
|
|
12584
|
-
|
|
12585
12551
|
}
|
|
12586
12552
|
declare module '@elastic/eui/src/components/datagrid/body/header/data_grid_header_cell_wrapper' {
|
|
12587
12553
|
import { FunctionComponent } from 'react';
|
|
@@ -12822,6 +12788,115 @@ declare module '@elastic/eui/src/components/datagrid/body/header' {
|
|
|
12822
12788
|
export { EuiDataGridHeaderRow } from '@elastic/eui/src/components/datagrid/body/header/data_grid_header_row';
|
|
12823
12789
|
export { useDataGridHeader } from '@elastic/eui/src/components/datagrid/body/header/use_data_grid_header';
|
|
12824
12790
|
|
|
12791
|
+
}
|
|
12792
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell_actions' {
|
|
12793
|
+
|
|
12794
|
+
import { EuiDataGridColumn } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12795
|
+
export const EuiDataGridCellActions: ({ onExpandClick, column, rowIndex, colIndex, }: {
|
|
12796
|
+
onExpandClick: () => void;
|
|
12797
|
+
column?: EuiDataGridColumn | undefined;
|
|
12798
|
+
rowIndex: number;
|
|
12799
|
+
colIndex: number;
|
|
12800
|
+
}) => JSX.Element;
|
|
12801
|
+
export const EuiDataGridCellPopoverActions: ({ rowIndex, colIndex, column, }: {
|
|
12802
|
+
column?: EuiDataGridColumn | undefined;
|
|
12803
|
+
colIndex: number;
|
|
12804
|
+
rowIndex: number;
|
|
12805
|
+
}) => JSX.Element;
|
|
12806
|
+
|
|
12807
|
+
}
|
|
12808
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell_popover' {
|
|
12809
|
+
import React, { ReactNode } from 'react';
|
|
12810
|
+
import { DataGridCellPopoverContextShape, EuiDataGridCellPopoverElementProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12811
|
+
export const DataGridCellPopoverContext: React.Context<DataGridCellPopoverContextShape>;
|
|
12812
|
+
export const useCellPopover: () => {
|
|
12813
|
+
cellPopoverContext: DataGridCellPopoverContextShape;
|
|
12814
|
+
cellPopover: ReactNode;
|
|
12815
|
+
};
|
|
12816
|
+
export const DefaultCellPopover: ({ schema, cellActions, children, cellContentsElement, }: EuiDataGridCellPopoverElementProps) => JSX.Element;
|
|
12817
|
+
export const JsonPopoverContent: ({ cellText }: {
|
|
12818
|
+
cellText: string;
|
|
12819
|
+
}) => JSX.Element;
|
|
12820
|
+
|
|
12821
|
+
}
|
|
12822
|
+
declare module '@elastic/eui/src/utils/prop_types/is' {
|
|
12823
|
+
export const is: <T>(expectedValue: any) => {
|
|
12824
|
+
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12825
|
+
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12826
|
+
};
|
|
12827
|
+
|
|
12828
|
+
}
|
|
12829
|
+
declare module '@elastic/eui/src/utils/prop_types/with_required_prop' {
|
|
12830
|
+
/**
|
|
12831
|
+
* PropType validation that, if the property is present,
|
|
12832
|
+
* validates against a proptype and verifies that another property exists
|
|
12833
|
+
*
|
|
12834
|
+
* example:
|
|
12835
|
+
* ExampleComponent.propTypes = {
|
|
12836
|
+
* items: PropTypes.array,
|
|
12837
|
+
* itemId: withRequiredProp(PropTypes.string, 'items', 'itemId is required to extract the ID from an item')
|
|
12838
|
+
* }
|
|
12839
|
+
*
|
|
12840
|
+
* this validator warns if ExampleComponent is passed an `items` prop but not `itemId`
|
|
12841
|
+
*/
|
|
12842
|
+
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string | undefined) => (...args: any[]) => any;
|
|
12843
|
+
|
|
12844
|
+
}
|
|
12845
|
+
declare module '@elastic/eui/src/utils/prop_types' {
|
|
12846
|
+
export const EuiPropTypes: {
|
|
12847
|
+
is: <T>(expectedValue: any) => {
|
|
12848
|
+
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12849
|
+
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
12850
|
+
};
|
|
12851
|
+
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string | undefined) => (...args: any[]) => any;
|
|
12852
|
+
};
|
|
12853
|
+
|
|
12854
|
+
}
|
|
12855
|
+
declare module '@elastic/eui/src/utils/is_jest' {
|
|
12856
|
+
export const IS_JEST_ENVIRONMENT: boolean;
|
|
12857
|
+
|
|
12858
|
+
}
|
|
12859
|
+
declare module '@elastic/eui/src/utils' {
|
|
12860
|
+
export * from '@elastic/eui/src/utils/prop_types';
|
|
12861
|
+
export * from '@elastic/eui/src/utils/is_jest';
|
|
12862
|
+
|
|
12863
|
+
}
|
|
12864
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell' {
|
|
12865
|
+
import React, { Component, FocusEvent } from 'react';
|
|
12866
|
+
import { EuiDataGridCellProps, EuiDataGridCellState, EuiDataGridSetCellProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12867
|
+
export class EuiDataGridCell extends Component<EuiDataGridCellProps, EuiDataGridCellState> {
|
|
12868
|
+
static activeFocusTimeoutId: number | undefined;
|
|
12869
|
+
cellRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
12870
|
+
contentObserver: any;
|
|
12871
|
+
popoverAnchorRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
12872
|
+
cellContentsRef: HTMLDivElement | null;
|
|
12873
|
+
state: EuiDataGridCellState;
|
|
12874
|
+
unsubscribeCell?: Function;
|
|
12875
|
+
focusTimeout: number | undefined;
|
|
12876
|
+
style: null;
|
|
12877
|
+
static contextType: React.Context<import ("@elastic/eui/src/components/datagrid/data_grid_types").DataGridFocusContextShape>;
|
|
12878
|
+
getInteractables: () => never[] | NodeListOf<HTMLElement>;
|
|
12879
|
+
takeFocus: (preventScroll: boolean) => void;
|
|
12880
|
+
recalculateAutoHeight: () => void;
|
|
12881
|
+
recalculateLineHeight: () => void;
|
|
12882
|
+
componentDidMount(): void;
|
|
12883
|
+
isFocusedCell: () => boolean;
|
|
12884
|
+
onFocusUpdate: (isFocused: boolean, preventScroll?: boolean) => void;
|
|
12885
|
+
componentWillUnmount(): void;
|
|
12886
|
+
componentDidUpdate(prevProps: EuiDataGridCellProps): void;
|
|
12887
|
+
shouldComponentUpdate(nextProps: EuiDataGridCellProps, nextState: EuiDataGridCellState): boolean;
|
|
12888
|
+
setCellProps: (cellProps: EuiDataGridSetCellProps) => void;
|
|
12889
|
+
setCellContentsRef: (ref: HTMLDivElement | null) => void;
|
|
12890
|
+
onFocus: (e: FocusEvent<HTMLDivElement>) => void;
|
|
12891
|
+
onBlur: () => void;
|
|
12892
|
+
preventTabbing: () => void;
|
|
12893
|
+
enableTabbing: () => void;
|
|
12894
|
+
isExpandable: () => boolean;
|
|
12895
|
+
isPopoverOpen: () => boolean;
|
|
12896
|
+
handleCellPopover: () => void;
|
|
12897
|
+
render(): JSX.Element;
|
|
12898
|
+
}
|
|
12899
|
+
|
|
12825
12900
|
}
|
|
12826
12901
|
declare module '@elastic/eui/src/components/datagrid/body/footer/data_grid_footer_row' {
|
|
12827
12902
|
import React from 'react'; const EuiDataGridFooterRow: React.MemoExoticComponent<React.ForwardRefExoticComponent<import ("@elastic/eui/src/components").CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -12859,6 +12934,18 @@ declare module '@elastic/eui/src/components/datagrid/body/footer' {
|
|
|
12859
12934
|
export { EuiDataGridFooterRow } from '@elastic/eui/src/components/datagrid/body/footer/data_grid_footer_row';
|
|
12860
12935
|
export { useDataGridFooter } from '@elastic/eui/src/components/datagrid/body/footer/use_data_grid_footer';
|
|
12861
12936
|
|
|
12937
|
+
}
|
|
12938
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_cell_wrapper' {
|
|
12939
|
+
import { FunctionComponent } from 'react';
|
|
12940
|
+
import { EuiDataGridCellProps, EuiDataGridBodyProps, EuiDataGridHeaderRowProps } from '@elastic/eui/src/components/datagrid/data_grid_types'; type CellProps = Pick<EuiDataGridCellProps, 'colIndex' | 'visibleRowIndex' | 'style' | 'renderCellValue' | 'renderCellPopover' | 'interactiveCellId' | 'rowHeightsOptions' | 'rowHeightUtils' | 'rowManager' | 'setRowHeight'> & Pick<EuiDataGridBodyProps, 'schema' | 'schemaDetectors' | 'pagination' | 'columns' | 'leadingControlColumns' | 'trailingControlColumns' | 'visibleColCount'> & Pick<EuiDataGridHeaderRowProps, 'columnWidths' | 'defaultColumnWidth'> & Partial<EuiDataGridCellProps>;
|
|
12941
|
+
/**
|
|
12942
|
+
* A DRY wrapper used by both custom and virtualized grid cells.
|
|
12943
|
+
* It grabs context, determines the type of cell being rendered
|
|
12944
|
+
* (e.g. control vs data cell), & sets shared props between all cells
|
|
12945
|
+
*/
|
|
12946
|
+
export const Cell: FunctionComponent<CellProps>;
|
|
12947
|
+
export {};
|
|
12948
|
+
|
|
12862
12949
|
}
|
|
12863
12950
|
declare module '@elastic/eui/src/components/datagrid/body/data_grid_row_manager' {
|
|
12864
12951
|
import { RefObject } from 'react';
|
|
@@ -12872,7 +12959,7 @@ declare module '@elastic/eui/src/components/datagrid/body/data_grid_row_manager'
|
|
|
12872
12959
|
declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
12873
12960
|
import { MutableRefObject } from 'react';
|
|
12874
12961
|
import { EuiDataGridRowHeightsOptions } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12875
|
-
import {
|
|
12962
|
+
import { RowHeightUtilsType } from '@elastic/eui/src/components/datagrid/utils/row_heights';
|
|
12876
12963
|
export const useFinalGridDimensions: ({ unconstrainedHeight, unconstrainedWidth, wrapperDimensions, wrapperRef, isFullScreen, rowCount, }: {
|
|
12877
12964
|
unconstrainedHeight: number;
|
|
12878
12965
|
unconstrainedWidth: number;
|
|
@@ -12891,7 +12978,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
|
12891
12978
|
* Computes the unconstrained (total possible) height of a grid
|
|
12892
12979
|
*/
|
|
12893
12980
|
export const useUnconstrainedHeight: ({ rowHeightUtils, startRow, endRow, rowHeightsOptions, defaultRowHeight, headerRowHeight, footerRowHeight, scrollBarHeight, innerGridRef, }: {
|
|
12894
|
-
rowHeightUtils:
|
|
12981
|
+
rowHeightUtils: RowHeightUtilsType;
|
|
12895
12982
|
startRow: number;
|
|
12896
12983
|
endRow: number;
|
|
12897
12984
|
rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
|
|
@@ -12977,12 +13064,24 @@ declare module '@elastic/eui/src/components/datagrid/utils/scrolling' {
|
|
|
12977
13064
|
export {};
|
|
12978
13065
|
|
|
12979
13066
|
}
|
|
12980
|
-
declare module '@elastic/eui/src/components/datagrid/body/
|
|
13067
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_body_virtualized' {
|
|
12981
13068
|
import React, { FunctionComponent } from 'react';
|
|
12982
13069
|
import { GridChildComponentProps } from 'react-window';
|
|
12983
13070
|
import { EuiDataGridBodyProps, DataGridWrapperRowsContentsShape } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12984
|
-
export const
|
|
13071
|
+
export const _Cell: FunctionComponent<GridChildComponentProps>;
|
|
12985
13072
|
export const DataGridWrapperRowsContext: React.Context<DataGridWrapperRowsContentsShape>;
|
|
13073
|
+
export const EuiDataGridBodyVirtualized: FunctionComponent<EuiDataGridBodyProps>;
|
|
13074
|
+
|
|
13075
|
+
}
|
|
13076
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_body_custom' {
|
|
13077
|
+
import { FunctionComponent } from 'react';
|
|
13078
|
+
import { EuiDataGridBodyProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
13079
|
+
export const EuiDataGridBodyCustomRender: FunctionComponent<EuiDataGridBodyProps>;
|
|
13080
|
+
|
|
13081
|
+
}
|
|
13082
|
+
declare module '@elastic/eui/src/components/datagrid/body/data_grid_body' {
|
|
13083
|
+
import { FunctionComponent } from 'react';
|
|
13084
|
+
import { EuiDataGridBodyProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
12986
13085
|
export const EuiDataGridBody: FunctionComponent<EuiDataGridBodyProps>;
|
|
12987
13086
|
|
|
12988
13087
|
}
|
|
@@ -16598,10 +16697,9 @@ declare module '@elastic/eui/src/components/page/page_body' {
|
|
|
16598
16697
|
|
|
16599
16698
|
}
|
|
16600
16699
|
declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
16601
|
-
import { FunctionComponent } from 'react';
|
|
16700
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
16602
16701
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
16603
16702
|
import { _EuiPanelProps, _EuiPanelDivlike } from '@elastic/eui/src/components/panel/panel';
|
|
16604
|
-
import { HTMLAttributes } from 'enzyme';
|
|
16605
16703
|
export type EuiPageContentVerticalPositions = 'center';
|
|
16606
16704
|
export type EuiPageContentHorizontalPositions = 'center';
|
|
16607
16705
|
export type EuiPageContentProps = CommonProps & _EuiPanelProps & Omit<_EuiPanelDivlike, 'onClick' | 'role'> & {
|
|
@@ -16611,7 +16709,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
|
16611
16709
|
* There should only be one EuiPageContent per page and should contain the main contents.
|
|
16612
16710
|
* If this is untrue, set role = `null`, or change it to match your needed aria role
|
|
16613
16711
|
*/
|
|
16614
|
-
role?: HTMLAttributes['role'] | null;
|
|
16712
|
+
role?: HTMLAttributes<HTMLElement>['role'] | null;
|
|
16615
16713
|
};
|
|
16616
16714
|
/**
|
|
16617
16715
|
* @deprecated Use EuiPageSection instead
|
|
@@ -18332,7 +18430,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list' {
|
|
|
18332
18430
|
|
|
18333
18431
|
}
|
|
18334
18432
|
declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
18335
|
-
import React, { Component, HTMLAttributes, ReactNode, ReactElement, KeyboardEvent, MouseEvent } from 'react';
|
|
18433
|
+
import React, { Component, HTMLAttributes, ReactNode, ReactElement, KeyboardEvent, MouseEvent, FocusEvent } from 'react';
|
|
18336
18434
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
18337
18435
|
import { EuiSelectableSearch } from '@elastic/eui/src/components/selectable/selectable_search';
|
|
18338
18436
|
import { EuiSelectableMessage } from '@elastic/eui/src/components/selectable/selectable_message';
|
|
@@ -18435,6 +18533,12 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
18435
18533
|
* Default: false
|
|
18436
18534
|
*/
|
|
18437
18535
|
isPreFiltered?: boolean;
|
|
18536
|
+
/**
|
|
18537
|
+
* Optional screen reader instructions to announce upon focus/interaction. This text is read out
|
|
18538
|
+
* after the `EuiSelectable` label and a brief pause, but before the default keyboard instructions for
|
|
18539
|
+
* interacting with a selectable are read out.
|
|
18540
|
+
*/
|
|
18541
|
+
selectableScreenReaderText?: string;
|
|
18438
18542
|
};
|
|
18439
18543
|
export interface EuiSelectableState<T> {
|
|
18440
18544
|
activeOptionIndex?: number;
|
|
@@ -18459,8 +18563,9 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
18459
18563
|
constructor(props: EuiSelectableProps<T>);
|
|
18460
18564
|
static getDerivedStateFromProps<T>(nextProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): Partial<EuiSelectableState<T>>;
|
|
18461
18565
|
componentDidUpdate<T>(prevProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): void;
|
|
18566
|
+
isFocusOnSearchOrListBox: (target: EventTarget | null) => boolean | undefined;
|
|
18462
18567
|
onMouseDown: () => void;
|
|
18463
|
-
onFocus: () => void;
|
|
18568
|
+
onFocus: (event?: React.FocusEvent<Element, Element> | undefined) => void;
|
|
18464
18569
|
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
18465
18570
|
incrementActiveOptionIndex: (amount: number) => void;
|
|
18466
18571
|
onSearchChange: (searchValue: string, visibleOptions: Array<EuiSelectableOption<T>>) => void;
|
|
@@ -26331,8 +26436,10 @@ declare module '@elastic/eui' {
|
|
|
26331
26436
|
"euiFilePicker.removeSelected": any;
|
|
26332
26437
|
"euiFormControlLayoutClearButton.label": any;
|
|
26333
26438
|
"euiForm.addressFormErrors": any;
|
|
26334
|
-
"
|
|
26439
|
+
"euiDualRange.sliderScreenReaderInstructions": any;
|
|
26440
|
+
"euiRange.sliderScreenReaderInstructions": any;
|
|
26335
26441
|
"euiSuperSelect.screenReaderAnnouncement": any;
|
|
26442
|
+
"euiSuperSelect.ariaLabel": any;
|
|
26336
26443
|
"euiHeaderLinks.openNavigationMenu": any;
|
|
26337
26444
|
"euiHeaderLinks.appNavigation": any;
|
|
26338
26445
|
"euiImageButton.openFullScreen": any;
|
|
@@ -26406,9 +26513,9 @@ declare module '@elastic/eui' {
|
|
|
26406
26513
|
"euiSelectable.loadingOptions": any;
|
|
26407
26514
|
"euiSelectable.noMatchingOptions": any;
|
|
26408
26515
|
"euiSelectable.noAvailableOptions": any;
|
|
26516
|
+
"euiSelectable.screenReaderInstructions": any;
|
|
26409
26517
|
"euiSelectable.placeholderName": any;
|
|
26410
26518
|
"euiSelectable.searchResults": any;
|
|
26411
|
-
"euiSelectable.screenReaderInstructions": any;
|
|
26412
26519
|
"euiSkeletonLoading.loadingAriaText": any;
|
|
26413
26520
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
26414
26521
|
"euiStat.loadingText": any;
|