@elastic/eui 121.0.0-snapshot.1788869799640 → 121.0.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-icons.json +10 -10
- package/es/components/datagrid/body/cell/data_grid_cell.js +5 -8
- package/es/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +2 -4
- package/es/components/datagrid/body/footer/data_grid_footer_row.js +0 -4
- package/es/components/datagrid/body/header/column_resizer.js +87 -74
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +1 -2
- package/es/components/datagrid/body/header/data_grid_header_cell.js +0 -1
- package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +3 -9
- package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.styles.js +1 -1
- package/es/components/datagrid/controls/keyboard_shortcuts.js +1 -17
- package/es/components/datagrid/data_grid.js +0 -2
- package/es/components/form/super_select/super_select.js +351 -247
- package/eui.d.ts +55 -30
- package/i18ntokens.json +205 -277
- package/lib/components/datagrid/body/cell/data_grid_cell.js +5 -8
- package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +2 -4
- package/lib/components/datagrid/body/footer/data_grid_footer_row.js +0 -4
- package/lib/components/datagrid/body/header/column_resizer.js +85 -73
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +1 -2
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +0 -1
- package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +3 -9
- package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.styles.js +1 -1
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -17
- package/lib/components/datagrid/data_grid.js +0 -2
- package/lib/components/form/super_select/super_select.js +355 -253
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +4 -5
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +2 -4
- package/optimize/es/components/datagrid/body/footer/data_grid_footer_row.js +0 -4
- package/optimize/es/components/datagrid/body/header/column_resizer.js +81 -69
- package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +1 -2
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +0 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +3 -7
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +1 -17
- package/optimize/es/components/datagrid/data_grid.js +0 -2
- package/optimize/es/components/form/super_select/super_select.js +265 -242
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +4 -5
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +2 -4
- package/optimize/lib/components/datagrid/body/footer/data_grid_footer_row.js +0 -4
- package/optimize/lib/components/datagrid/body/header/column_resizer.js +79 -69
- package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +1 -2
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +0 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +3 -7
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.styles.js +1 -1
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -17
- package/optimize/lib/components/datagrid/data_grid.js +0 -2
- package/optimize/lib/components/form/super_select/super_select.js +265 -243
- package/package.json +7 -8
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +5 -8
- package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +2 -4
- package/test-env/components/datagrid/body/footer/data_grid_footer_row.js +0 -4
- package/test-env/components/datagrid/body/header/column_resizer.js +79 -69
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +1 -2
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +0 -1
- package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +3 -9
- package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.styles.js +1 -1
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +1 -17
- package/test-env/components/datagrid/data_grid.js +0 -2
- package/test-env/components/form/super_select/super_select.js +345 -243
- package/es/components/datagrid/utils/copy_focused_cell.js +0 -34
- package/lib/components/datagrid/utils/copy_focused_cell.js +0 -39
- package/optimize/es/components/datagrid/utils/copy_focused_cell.js +0 -34
- package/optimize/lib/components/datagrid/utils/copy_focused_cell.js +0 -39
- package/test-env/components/datagrid/utils/copy_focused_cell.js +0 -16
package/eui.d.ts
CHANGED
|
@@ -21077,14 +21077,13 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
|
|
|
21077
21077
|
|
|
21078
21078
|
}
|
|
21079
21079
|
declare module '@elastic/eui/src/components/form/super_select/super_select' {
|
|
21080
|
-
import {
|
|
21080
|
+
import React, { Component, FocusEvent, ReactNode } from 'react';
|
|
21081
21081
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
21082
21082
|
import { type EuiInputPopoverProps } from '@elastic/eui/src/components/popover';
|
|
21083
21083
|
import { type EuiSuperSelectControlProps } from '@elastic/eui/src/components/form/super_select/super_select_control';
|
|
21084
|
-
import { type EuiSuperSelectOption } from '@elastic/eui/src/components/form/super_select/super_select_item';
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
closePopover: () => void;
|
|
21084
|
+
import { type EuiSuperSelectOption } from '@elastic/eui/src/components/form/super_select/super_select_item'; enum ShiftDirection {
|
|
21085
|
+
BACK = "back",
|
|
21086
|
+
FORWARD = "forward"
|
|
21088
21087
|
}
|
|
21089
21088
|
export type EuiSuperSelectProps<T = string> = CommonProps & Omit<EuiSuperSelectControlProps<T>, 'onChange' | 'onClick' | 'onFocus' | 'onBlur' | 'options' | 'value'> & {
|
|
21090
21089
|
/**
|
|
@@ -21124,15 +21123,38 @@ declare module '@elastic/eui/src/components/form/super_select/super_select' {
|
|
|
21124
21123
|
*/
|
|
21125
21124
|
popoverProps?: Partial<CommonProps & Omit<EuiInputPopoverProps, 'isOpen'>>;
|
|
21126
21125
|
};
|
|
21127
|
-
export
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21126
|
+
export class EuiSuperSelect<T = string> extends Component<EuiSuperSelectProps<T>> {
|
|
21127
|
+
static defaultProps: {
|
|
21128
|
+
fullWidth: boolean;
|
|
21129
|
+
compressed: boolean;
|
|
21130
|
+
isInvalid: boolean;
|
|
21131
|
+
isLoading: boolean;
|
|
21132
|
+
};
|
|
21133
|
+
private itemNodes;
|
|
21134
|
+
private _isMounted;
|
|
21135
|
+
private controlButtonRef;
|
|
21136
|
+
describedById: string;
|
|
21137
|
+
state: {
|
|
21138
|
+
isPopoverOpen: boolean;
|
|
21139
|
+
currentIndex: number;
|
|
21140
|
+
};
|
|
21141
|
+
componentDidMount(): void;
|
|
21142
|
+
componentWillUnmount(): void;
|
|
21143
|
+
setItemNode: (node: HTMLButtonElement | null, index: number) => void;
|
|
21144
|
+
openPopover: () => void;
|
|
21145
|
+
closePopover: () => void;
|
|
21146
|
+
itemClicked: (value: T) => void;
|
|
21147
|
+
onSelectKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
21148
|
+
onItemKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
21149
|
+
focusItemAt(index: number): void;
|
|
21150
|
+
shiftFocus(direction: ShiftDirection): void;
|
|
21151
|
+
render(): React.JSX.Element;
|
|
21152
|
+
}
|
|
21153
|
+
export {};
|
|
21132
21154
|
|
|
21133
21155
|
}
|
|
21134
21156
|
declare module '@elastic/eui/src/components/form/super_select' {
|
|
21135
|
-
export type { EuiSuperSelectProps
|
|
21157
|
+
export type { EuiSuperSelectProps } from '@elastic/eui/src/components/form/super_select/super_select';
|
|
21136
21158
|
export { EuiSuperSelect } from '@elastic/eui/src/components/form/super_select/super_select';
|
|
21137
21159
|
export type { EuiSuperSelectOption } from '@elastic/eui/src/components/form/super_select/super_select_item';
|
|
21138
21160
|
export type { EuiSuperSelectControlProps } from '@elastic/eui/src/components/form/super_select/super_select_control';
|
|
@@ -25824,8 +25846,6 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
25824
25846
|
id: string;
|
|
25825
25847
|
index: number;
|
|
25826
25848
|
isLastColumn: boolean;
|
|
25827
|
-
isLastCopyColumn?: boolean;
|
|
25828
|
-
isControlColumn?: boolean;
|
|
25829
25849
|
width?: number | null;
|
|
25830
25850
|
className?: string;
|
|
25831
25851
|
'aria-label'?: AriaAttributes['aria-label'];
|
|
@@ -26086,6 +26106,10 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
26086
26106
|
setColumnWidth: (columnId: string, width: number) => void;
|
|
26087
26107
|
isLastColumn: boolean;
|
|
26088
26108
|
}
|
|
26109
|
+
export interface EuiDataGridColumnResizerState {
|
|
26110
|
+
initialX: number;
|
|
26111
|
+
offset: number;
|
|
26112
|
+
}
|
|
26089
26113
|
export interface EuiDataGridColumnSortingDraggableProps {
|
|
26090
26114
|
id: string;
|
|
26091
26115
|
direction: string;
|
|
@@ -26280,7 +26304,6 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
26280
26304
|
rowManager?: EuiDataGridRowManager;
|
|
26281
26305
|
pagination?: Required<EuiDataGridPaginationProps>;
|
|
26282
26306
|
gridStyles: EuiDataGridStyle;
|
|
26283
|
-
isLastCopyColumn?: boolean;
|
|
26284
26307
|
}
|
|
26285
26308
|
export interface EuiDataGridCellState {
|
|
26286
26309
|
cellProps: EuiDataGridSetCellProps;
|
|
@@ -27324,9 +27347,20 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_resizer.
|
|
|
27324
27347
|
|
|
27325
27348
|
}
|
|
27326
27349
|
declare module '@elastic/eui/src/components/datagrid/body/header/column_resizer' {
|
|
27327
|
-
import {
|
|
27328
|
-
import { EuiDataGridColumnResizerProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
27329
|
-
export
|
|
27350
|
+
import React, { Component } from 'react';
|
|
27351
|
+
import { EuiDataGridColumnResizerProps, EuiDataGridColumnResizerState } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
27352
|
+
export class EuiDataGridColumnResizer extends Component<EuiDataGridColumnResizerProps, EuiDataGridColumnResizerState> {
|
|
27353
|
+
state: {
|
|
27354
|
+
initialX: number;
|
|
27355
|
+
offset: number;
|
|
27356
|
+
};
|
|
27357
|
+
onMouseDown: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
27358
|
+
onMouseUp: () => void;
|
|
27359
|
+
onMouseMove: (e: {
|
|
27360
|
+
pageX: number;
|
|
27361
|
+
}) => void;
|
|
27362
|
+
render(): React.JSX.Element;
|
|
27363
|
+
}
|
|
27330
27364
|
|
|
27331
27365
|
}
|
|
27332
27366
|
declare module '@elastic/eui/src/components/datagrid/body/header/data_grid_header_cell' {
|
|
@@ -28028,12 +28062,6 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_count' {
|
|
|
28028
28062
|
rowCount: EuiDataGridProps["rowCount"];
|
|
28029
28063
|
}) => EuiDataGridVisibleRows;
|
|
28030
28064
|
|
|
28031
|
-
}
|
|
28032
|
-
declare module '@elastic/eui/src/components/datagrid/utils/copy_focused_cell' {
|
|
28033
|
-
/** Copies the focused data cell value when nothing is selected. */
|
|
28034
|
-
export const copyFocusedDataGridCell: (event: ClipboardEvent) => void;
|
|
28035
|
-
export const useCopyFocusedDataGridCell: () => void;
|
|
28036
|
-
|
|
28037
28065
|
}
|
|
28038
28066
|
declare module '@elastic/eui/src/components/datagrid/utils/ref' {
|
|
28039
28067
|
import { Ref, RefObject } from 'react';
|
|
@@ -36847,6 +36875,7 @@ declare module '@elastic/eui' {
|
|
|
36847
36875
|
"euiToast.newNotification": any;
|
|
36848
36876
|
"euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
|
|
36849
36877
|
"euiGlobalToastList.clearAllToastsButtonDisplayText": any;
|
|
36878
|
+
"euiStat.loadingText": any;
|
|
36850
36879
|
"euiStepStrings.step": any;
|
|
36851
36880
|
"euiStepStrings.simpleStep": any;
|
|
36852
36881
|
"euiStepStrings.complete": any;
|
|
@@ -36864,7 +36893,6 @@ declare module '@elastic/eui' {
|
|
|
36864
36893
|
"euiStepStrings.current": any;
|
|
36865
36894
|
"euiStepStrings.simpleCurrent": any;
|
|
36866
36895
|
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
36867
|
-
"euiStat.loadingText": any;
|
|
36868
36896
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
36869
36897
|
"euiSkeletonLoading.loadingAriaText": any;
|
|
36870
36898
|
"euiSideNav.mobileToggleAriaLabel": any;
|
|
@@ -36966,7 +36994,6 @@ declare module '@elastic/eui' {
|
|
|
36966
36994
|
"euiBottomBar.screenReaderHeading": any;
|
|
36967
36995
|
"euiBottomBar.customScreenReaderAnnouncement": any;
|
|
36968
36996
|
"euiBottomBar.screenReaderAnnouncement": any;
|
|
36969
|
-
"euiBanner.dismissAriaLabel": any;
|
|
36970
36997
|
"euiCollapsedItemActions.allActionsTooltip": any;
|
|
36971
36998
|
"euiCollapsedItemActions.allActions": any;
|
|
36972
36999
|
"euiCollapsedItemActions.allActionsDisabled": any;
|
|
@@ -36979,6 +37006,7 @@ declare module '@elastic/eui' {
|
|
|
36979
37006
|
"euiBasicTable.deselectRows": any;
|
|
36980
37007
|
"euiBasicTable.selectThisRow": any;
|
|
36981
37008
|
"euiBasicTable.tablePagination": any;
|
|
37009
|
+
"euiBanner.dismissAriaLabel": any;
|
|
36982
37010
|
"euiTablePagination.allRows": any;
|
|
36983
37011
|
"euiTablePagination.rowsPerPage": any;
|
|
36984
37012
|
"euiTablePagination.rowsPerPageOptionShowAllRows": any;
|
|
@@ -37121,6 +37149,8 @@ declare module '@elastic/eui' {
|
|
|
37121
37149
|
"euiAutoRefresh.autoRefreshLabel": any;
|
|
37122
37150
|
"euiAutoRefresh.buttonLabelOff": any;
|
|
37123
37151
|
"euiAutoRefresh.buttonLabelOn": any;
|
|
37152
|
+
"euiDataGridPagination.detailedPaginationLabel": any;
|
|
37153
|
+
"euiDataGridPagination.paginationLabel": any;
|
|
37124
37154
|
"euiDataGridSchema.booleanSortTextAsc": any;
|
|
37125
37155
|
"euiDataGridSchema.booleanSortTextDesc": any;
|
|
37126
37156
|
"euiDataGridSchema.currencySortTextAsc": any;
|
|
@@ -37131,8 +37161,6 @@ declare module '@elastic/eui' {
|
|
|
37131
37161
|
"euiDataGridSchema.numberSortTextDesc": any;
|
|
37132
37162
|
"euiDataGridSchema.jsonSortTextAsc": any;
|
|
37133
37163
|
"euiDataGridSchema.jsonSortTextDesc": any;
|
|
37134
|
-
"euiDataGridPagination.detailedPaginationLabel": any;
|
|
37135
|
-
"euiDataGridPagination.paginationLabel": any;
|
|
37136
37164
|
"euiKeyboardShortcuts.title": any;
|
|
37137
37165
|
"euiKeyboardShortcuts.upArrowTitle": any;
|
|
37138
37166
|
"euiKeyboardShortcuts.upArrowDescription": any;
|
|
@@ -37157,9 +37185,6 @@ declare module '@elastic/eui' {
|
|
|
37157
37185
|
"euiKeyboardShortcuts.enterDescription": any;
|
|
37158
37186
|
"euiKeyboardShortcuts.escapeTitle": any;
|
|
37159
37187
|
"euiKeyboardShortcuts.escapeDescription": any;
|
|
37160
|
-
"euiKeyboardShortcuts.cmd": any;
|
|
37161
|
-
"euiKeyboardShortcuts.copyTitle": any;
|
|
37162
|
-
"euiKeyboardShortcuts.copyDescription": any;
|
|
37163
37188
|
"euiFullscreenSelector.fullscreenButton": any;
|
|
37164
37189
|
"euiFullscreenSelector.fullscreenButtonActive": any;
|
|
37165
37190
|
"euiDisplaySelector.densityLabel": any;
|