@elastic/eui 69.0.0 → 70.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_theme_dark.css +0 -375
- package/dist/eui_theme_dark.json +0 -27
- package/dist/eui_theme_dark.json.d.ts +0 -27
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -375
- package/dist/eui_theme_light.json +0 -27
- package/dist/eui_theme_light.json.d.ts +0 -27
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/in_memory_table.js +8 -2
- package/es/components/code/code.js +7 -3
- package/es/components/code/code.styles.js +32 -0
- package/es/components/code/code_block.js +72 -315
- package/es/components/code/code_block.styles.js +153 -0
- package/es/components/code/code_block_controls.js +29 -0
- package/es/components/code/code_block_controls.styles.js +43 -0
- package/es/components/code/code_block_copy.js +65 -0
- package/es/components/code/code_block_full_screen.js +90 -0
- package/es/components/code/code_block_line.styles.js +49 -0
- package/es/components/code/code_block_overflow.js +78 -0
- package/es/components/code/code_block_virtualized.js +59 -0
- package/es/components/code/code_syntax.styles.js +43 -0
- package/es/components/code/utils.js +43 -37
- package/es/components/collapsible_nav/collapsible_nav.js +0 -5
- package/es/components/overlay_mask/overlay_mask.js +8 -14
- package/es/components/overlay_mask/overlay_mask.styles.js +4 -14
- package/es/components/overlay_mask/overlay_mask_body.styles.js +18 -0
- package/es/components/provider/provider.js +1 -5
- package/es/components/resizable_container/helpers.js +2 -2
- package/es/components/resizable_container/resizable_container.js +6 -9
- package/es/components/resizable_container/resizable_container.styles.js +28 -0
- package/es/components/resizable_container/resizable_panel.js +25 -48
- package/es/components/resizable_container/resizable_panel.styles.js +69 -0
- package/es/components/search_bar/query/ast.js +14 -3
- package/es/components/tool_tip/tool_tip.js +3 -2
- package/es/components/tool_tip/tool_tip.styles.js +17 -22
- package/es/components/tool_tip/tool_tip_arrow.js +17 -3
- package/es/components/tool_tip/tool_tip_popover.js +7 -7
- package/es/components/tour/tour.styles.js +4 -3
- package/es/components/tour/tour_step.js +7 -5
- package/es/global_styling/functions/logicals.js +5 -3
- package/es/global_styling/functions/math.js +37 -19
- package/es/global_styling/mixins/_padding.js +13 -9
- package/eui.d.ts +291 -37
- package/i18ntokens.json +22 -22
- package/lib/components/basic_table/in_memory_table.js +8 -2
- package/lib/components/code/code.js +9 -3
- package/lib/components/code/code.styles.js +35 -0
- package/lib/components/code/code_block.js +72 -320
- package/lib/components/code/code_block.styles.js +154 -0
- package/lib/components/code/code_block_controls.js +48 -0
- package/lib/components/code/code_block_controls.styles.js +39 -0
- package/lib/components/code/code_block_copy.js +78 -0
- package/lib/components/code/code_block_full_screen.js +108 -0
- package/lib/components/code/code_block_line.styles.js +45 -0
- package/lib/components/code/code_block_overflow.js +82 -0
- package/lib/components/code/code_block_virtualized.js +72 -0
- package/lib/components/code/code_syntax.styles.js +57 -0
- package/lib/components/code/utils.js +40 -39
- package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
- package/lib/components/overlay_mask/overlay_mask.js +9 -14
- package/lib/components/overlay_mask/overlay_mask.styles.js +13 -17
- package/lib/components/overlay_mask/overlay_mask_body.styles.js +20 -0
- package/lib/components/provider/provider.js +7 -12
- package/lib/components/resizable_container/helpers.js +2 -2
- package/lib/components/resizable_container/resizable_container.js +7 -9
- package/lib/components/resizable_container/resizable_container.styles.js +31 -0
- package/lib/components/resizable_container/resizable_panel.js +28 -49
- package/lib/components/resizable_container/resizable_panel.styles.js +74 -0
- package/lib/components/search_bar/query/ast.js +14 -3
- package/lib/components/tool_tip/tool_tip.js +3 -2
- package/lib/components/tool_tip/tool_tip.styles.js +18 -26
- package/lib/components/tool_tip/tool_tip_arrow.js +19 -4
- package/lib/components/tool_tip/tool_tip_popover.js +6 -6
- package/lib/components/tour/tour.styles.js +3 -2
- package/lib/components/tour/tour_step.js +7 -5
- package/lib/global_styling/functions/logicals.js +5 -3
- package/lib/global_styling/functions/math.js +37 -19
- package/lib/global_styling/mixins/_padding.js +17 -10
- package/optimize/es/components/basic_table/in_memory_table.js +1 -1
- package/optimize/es/components/code/code.js +7 -3
- package/optimize/es/components/code/code.styles.js +32 -0
- package/optimize/es/components/code/code_block.js +70 -299
- package/optimize/es/components/code/code_block.styles.js +153 -0
- package/optimize/es/components/code/code_block_controls.js +29 -0
- package/optimize/es/components/code/code_block_controls.styles.js +43 -0
- package/optimize/es/components/code/code_block_copy.js +55 -0
- package/optimize/es/components/code/code_block_full_screen.js +80 -0
- package/optimize/es/components/code/code_block_line.styles.js +49 -0
- package/optimize/es/components/code/code_block_overflow.js +67 -0
- package/optimize/es/components/code/code_block_virtualized.js +59 -0
- package/optimize/es/components/code/code_syntax.styles.js +43 -0
- package/optimize/es/components/code/utils.js +43 -37
- package/optimize/es/components/overlay_mask/overlay_mask.js +8 -9
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +4 -14
- package/optimize/es/components/overlay_mask/overlay_mask_body.styles.js +18 -0
- package/optimize/es/components/provider/provider.js +1 -5
- package/optimize/es/components/resizable_container/helpers.js +2 -2
- package/optimize/es/components/resizable_container/resizable_container.js +6 -9
- package/optimize/es/components/resizable_container/resizable_container.styles.js +28 -0
- package/optimize/es/components/resizable_container/resizable_panel.js +25 -48
- package/optimize/es/components/resizable_container/resizable_panel.styles.js +69 -0
- package/optimize/es/components/search_bar/query/ast.js +14 -3
- package/optimize/es/components/tool_tip/tool_tip.js +3 -2
- package/optimize/es/components/tool_tip/tool_tip.styles.js +17 -22
- package/optimize/es/components/tool_tip/tool_tip_arrow.js +9 -3
- package/optimize/es/components/tool_tip/tool_tip_popover.js +7 -7
- package/optimize/es/components/tour/tour.styles.js +4 -3
- package/optimize/es/components/tour/tour_step.js +7 -5
- package/optimize/es/global_styling/functions/logicals.js +5 -3
- package/optimize/es/global_styling/functions/math.js +35 -17
- package/optimize/es/global_styling/mixins/_padding.js +13 -9
- package/optimize/lib/components/basic_table/in_memory_table.js +1 -1
- package/optimize/lib/components/code/code.js +9 -3
- package/optimize/lib/components/code/code.styles.js +35 -0
- package/optimize/lib/components/code/code_block.js +71 -306
- package/optimize/lib/components/code/code_block.styles.js +156 -0
- package/optimize/lib/components/code/code_block_controls.js +48 -0
- package/optimize/lib/components/code/code_block_controls.styles.js +39 -0
- package/optimize/lib/components/code/code_block_copy.js +78 -0
- package/optimize/lib/components/code/code_block_full_screen.js +108 -0
- package/optimize/lib/components/code/code_block_line.styles.js +45 -0
- package/optimize/lib/components/code/code_block_overflow.js +82 -0
- package/optimize/lib/components/code/code_block_virtualized.js +81 -0
- package/optimize/lib/components/code/code_syntax.styles.js +57 -0
- package/optimize/lib/components/code/utils.js +40 -37
- package/optimize/lib/components/overlay_mask/overlay_mask.js +9 -9
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +13 -17
- package/optimize/lib/components/overlay_mask/overlay_mask_body.styles.js +20 -0
- package/optimize/lib/components/provider/provider.js +7 -12
- package/optimize/lib/components/resizable_container/helpers.js +2 -2
- package/optimize/lib/components/resizable_container/resizable_container.js +7 -9
- package/optimize/lib/components/resizable_container/resizable_container.styles.js +31 -0
- package/optimize/lib/components/resizable_container/resizable_panel.js +28 -49
- package/optimize/lib/components/resizable_container/resizable_panel.styles.js +76 -0
- package/optimize/lib/components/search_bar/query/ast.js +14 -3
- package/optimize/lib/components/tool_tip/tool_tip.js +3 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +18 -26
- package/optimize/lib/components/tool_tip/tool_tip_arrow.js +10 -10
- package/optimize/lib/components/tool_tip/tool_tip_popover.js +6 -6
- package/optimize/lib/components/tour/tour.styles.js +3 -2
- package/optimize/lib/components/tour/tour_step.js +7 -5
- package/optimize/lib/global_styling/functions/logicals.js +4 -10
- package/optimize/lib/global_styling/functions/math.js +37 -19
- package/optimize/lib/global_styling/mixins/_padding.js +17 -10
- package/package.json +8 -7
- package/src/components/index.scss +0 -1
- package/src/components/resizable_container/_index.scss +0 -2
- package/src/global_styling/mixins/_header.scss +1 -1
- package/src/global_styling/variables/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/basic_table/in_memory_table.js +8 -2
- package/test-env/components/code/code.styles.js +35 -0
- package/test-env/components/code/code_block.styles.js +156 -0
- package/test-env/components/code/code_block_controls.js +48 -0
- package/test-env/components/code/code_block_controls.styles.js +39 -0
- package/test-env/components/code/code_block_copy.js +78 -0
- package/test-env/components/code/code_block_full_screen.js +108 -0
- package/test-env/components/code/code_block_line.styles.js +45 -0
- package/test-env/components/code/code_block_overflow.js +82 -0
- package/test-env/components/code/code_block_virtualized.js +81 -0
- package/test-env/components/code/code_syntax.styles.js +57 -0
- package/test-env/components/code/utils.js +40 -37
- package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
- package/test-env/components/overlay_mask/overlay_mask.js +9 -14
- package/test-env/components/overlay_mask/overlay_mask.styles.js +13 -17
- package/test-env/components/overlay_mask/overlay_mask_body.styles.js +20 -0
- package/test-env/components/provider/provider.js +7 -12
- package/test-env/components/resizable_container/helpers.js +2 -2
- package/test-env/components/resizable_container/resizable_container.js +7 -9
- package/test-env/components/resizable_container/resizable_container.styles.js +31 -0
- package/test-env/components/resizable_container/resizable_panel.js +28 -49
- package/test-env/components/resizable_container/resizable_panel.styles.js +76 -0
- package/test-env/components/search_bar/query/ast.js +14 -3
- package/test-env/components/tool_tip/tool_tip.js +3 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +18 -26
- package/test-env/components/tool_tip/tool_tip_arrow.js +16 -11
- package/test-env/components/tool_tip/tool_tip_popover.js +6 -6
- package/test-env/components/tour/tour.styles.js +3 -2
- package/test-env/components/tour/tour_step.js +7 -5
- package/test-env/global_styling/functions/logicals.js +4 -10
- package/test-env/global_styling/functions/math.js +37 -19
- package/test-env/global_styling/mixins/_padding.js +17 -10
- package/src/components/code/_code.scss +0 -15
- package/src/components/code/_code_block.scss +0 -177
- package/src/components/code/_index.scss +0 -4
- package/src/components/code/_mixins.scss +0 -127
- package/src/components/code/_variables.scss +0 -5
- package/src/components/resizable_container/_resizable_container.scss +0 -8
- package/src/components/resizable_container/_resizable_panel.scss +0 -51
- package/src/global_styling/variables/_colors_code.scss +0 -23
- package/src/themes/amsterdam/overrides/_code.scss +0 -9
package/eui.d.ts
CHANGED
|
@@ -4768,8 +4768,8 @@ declare module '@elastic/eui/src/components/observer/resize_observer' {
|
|
|
4768
4768
|
declare module '@elastic/eui/src/components/form/form.styles' {
|
|
4769
4769
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
4770
4770
|
export const euiFormVariables: (euiThemeContext: UseEuiTheme) => {
|
|
4771
|
-
controlLayoutGroupInputHeight: string
|
|
4772
|
-
controlLayoutGroupInputCompressedHeight: string
|
|
4771
|
+
controlLayoutGroupInputHeight: string;
|
|
4772
|
+
controlLayoutGroupInputCompressedHeight: string;
|
|
4773
4773
|
controlLayoutGroupInputCompressedBorderRadius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
4774
4774
|
controlIconSize: {
|
|
4775
4775
|
s: string;
|
|
@@ -4790,7 +4790,7 @@ declare module '@elastic/eui/src/components/form/form.styles' {
|
|
|
4790
4790
|
controlPlaceholderText: string;
|
|
4791
4791
|
inputGroupLabelBackground: string;
|
|
4792
4792
|
inputGroupBorder: string;
|
|
4793
|
-
maxWidth: string
|
|
4793
|
+
maxWidth: string;
|
|
4794
4794
|
controlHeight: string;
|
|
4795
4795
|
controlCompressedHeight: string;
|
|
4796
4796
|
controlPadding: string;
|
|
@@ -5485,8 +5485,12 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
|
5485
5485
|
left: import("@emotion/utils").SerializedStyles;
|
|
5486
5486
|
right: import("@emotion/utils").SerializedStyles;
|
|
5487
5487
|
euiToolTip__arrow: import("@emotion/utils").SerializedStyles;
|
|
5488
|
-
|
|
5489
|
-
|
|
5488
|
+
arrowPositions: {
|
|
5489
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
5490
|
+
bottom: import("@emotion/utils").SerializedStyles;
|
|
5491
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
5492
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
5493
|
+
};
|
|
5490
5494
|
euiToolTip__title: import("@emotion/utils").SerializedStyles;
|
|
5491
5495
|
};
|
|
5492
5496
|
export const euiToolTipAnchorStyles: () => {
|
|
@@ -5524,7 +5528,10 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_anchor' {
|
|
|
5524
5528
|
}
|
|
5525
5529
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
|
|
5526
5530
|
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
5527
|
-
|
|
5531
|
+
import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
|
|
5532
|
+
export const EuiToolTipArrow: FunctionComponent<{
|
|
5533
|
+
position: ToolTipPositions;
|
|
5534
|
+
} & HTMLAttributes<HTMLDivElement>>;
|
|
5528
5535
|
|
|
5529
5536
|
}
|
|
5530
5537
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
@@ -6652,15 +6659,9 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
6652
6659
|
|
|
6653
6660
|
}
|
|
6654
6661
|
declare module '@elastic/eui/src/global_styling/functions/math' {
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
*
|
|
6659
|
-
* Example usage:
|
|
6660
|
-
* mathWithUnits('4px', (x) => x / 2) = '2px';
|
|
6661
|
-
* mathWithUnits(euiTheme.size.xs, (x) => x + 2) = '6px';
|
|
6662
|
-
*/
|
|
6663
|
-
export const mathWithUnits: (value: string | number | undefined, callback: (x: number) => number, unit?: string) => string | undefined;
|
|
6662
|
+
type ValueTypes = string | number | undefined;
|
|
6663
|
+
export const mathWithUnits: (values: ValueTypes | ValueTypes[], callback: (...args: number[]) => number, unit?: string) => string;
|
|
6664
|
+
export {};
|
|
6664
6665
|
|
|
6665
6666
|
}
|
|
6666
6667
|
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
@@ -7448,6 +7449,14 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
7448
7449
|
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
7449
7450
|
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
7450
7451
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
7452
|
+
export const euiPaddingSizeCSS: (euiThemeContext: UseEuiTheme, side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7453
|
+
none: null;
|
|
7454
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
7455
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
7456
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
7457
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
7458
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
7459
|
+
};
|
|
7451
7460
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
7452
7461
|
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7453
7462
|
none: null;
|
|
@@ -8730,11 +8739,27 @@ declare module '@elastic/eui/src/components/card' {
|
|
|
8730
8739
|
export type { EuiCheckableCardProps } from '@elastic/eui/src/components/card/checkable_card';
|
|
8731
8740
|
export { EuiCheckableCard } from '@elastic/eui/src/components/card/checkable_card';
|
|
8732
8741
|
|
|
8742
|
+
}
|
|
8743
|
+
declare module '@elastic/eui/src/components/code/code_block_line.styles' {
|
|
8744
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8745
|
+
export const euiCodeBlockLineStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8746
|
+
euiCodeBlock__line: string;
|
|
8747
|
+
hasLineNumbers: string;
|
|
8748
|
+
lineText: {
|
|
8749
|
+
euiCodeBlock__lineText: string;
|
|
8750
|
+
isHighlighted: string;
|
|
8751
|
+
};
|
|
8752
|
+
lineNumber: {
|
|
8753
|
+
euiCodeBlock__lineNumber: string;
|
|
8754
|
+
};
|
|
8755
|
+
};
|
|
8756
|
+
|
|
8733
8757
|
}
|
|
8734
8758
|
declare module '@elastic/eui/src/components/code/utils' {
|
|
8735
8759
|
import { ReactElement, ReactNode, HTMLAttributes } from 'react';
|
|
8736
8760
|
import { AST, RefractorNode } from 'refractor';
|
|
8737
8761
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8762
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8738
8763
|
/**
|
|
8739
8764
|
* Utils shared between EuiCode and EuiCodeBlock
|
|
8740
8765
|
*/
|
|
@@ -8758,9 +8783,47 @@ declare module '@elastic/eui/src/components/code/utils' {
|
|
|
8758
8783
|
highlight?: string;
|
|
8759
8784
|
}
|
|
8760
8785
|
export const parseLineRanges: (ranges: string) => number[];
|
|
8761
|
-
export const highlightByLine: (children: string, language: string, data: LineNumbersConfig) => RefractorNode[];
|
|
8786
|
+
export const highlightByLine: (children: string, language: string, data: LineNumbersConfig, euiTheme: UseEuiTheme) => RefractorNode[];
|
|
8762
8787
|
export {};
|
|
8763
8788
|
|
|
8789
|
+
}
|
|
8790
|
+
declare module '@elastic/eui/src/components/code/code_syntax.styles' {
|
|
8791
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8792
|
+
export const euiCodeSyntaxColors: (euiThemeContext: UseEuiTheme) => {
|
|
8793
|
+
backgroundColor: string;
|
|
8794
|
+
color: string;
|
|
8795
|
+
inlineCodeColor: string;
|
|
8796
|
+
selectedBackgroundColor: string;
|
|
8797
|
+
commentColor: string;
|
|
8798
|
+
selectorTagColor: string;
|
|
8799
|
+
stringColor: string;
|
|
8800
|
+
tagColor: string;
|
|
8801
|
+
nameColor: string;
|
|
8802
|
+
numberColor: string;
|
|
8803
|
+
keywordColor: string;
|
|
8804
|
+
functionTitleColor: string;
|
|
8805
|
+
typeColor: string;
|
|
8806
|
+
attributeColor: string;
|
|
8807
|
+
symbolColor: string;
|
|
8808
|
+
paramsColor: string;
|
|
8809
|
+
metaColor: string;
|
|
8810
|
+
titleColor: string;
|
|
8811
|
+
sectionColor: string;
|
|
8812
|
+
additionColor: string;
|
|
8813
|
+
deletionColor: string;
|
|
8814
|
+
selectorClassColor: string;
|
|
8815
|
+
selectorIdColor: string;
|
|
8816
|
+
};
|
|
8817
|
+
export const euiCodeSyntaxTokens: (euiThemeContext: UseEuiTheme) => string;
|
|
8818
|
+
|
|
8819
|
+
}
|
|
8820
|
+
declare module '@elastic/eui/src/components/code/code.styles' {
|
|
8821
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8822
|
+
export const euiCodeStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8823
|
+
euiCode: import("@emotion/utils").SerializedStyles;
|
|
8824
|
+
transparentBackground: import("@emotion/utils").SerializedStyles;
|
|
8825
|
+
};
|
|
8826
|
+
|
|
8764
8827
|
}
|
|
8765
8828
|
declare module '@elastic/eui/src/components/code/code' {
|
|
8766
8829
|
import { FunctionComponent } from 'react';
|
|
@@ -8768,6 +8831,24 @@ declare module '@elastic/eui/src/components/code/code' {
|
|
|
8768
8831
|
export type EuiCodeProps = EuiCodeSharedProps;
|
|
8769
8832
|
export const EuiCode: FunctionComponent<EuiCodeProps>;
|
|
8770
8833
|
|
|
8834
|
+
}
|
|
8835
|
+
declare module '@elastic/eui/src/components/code/code_block_overflow' {
|
|
8836
|
+
import { CSSProperties } from 'react';
|
|
8837
|
+
/**
|
|
8838
|
+
* Overflow logic - returns overflow-related state/logic/utils
|
|
8839
|
+
*
|
|
8840
|
+
* Detects whether the code block overflows and returns a tabIndex of 0 if so,
|
|
8841
|
+
* which allows keyboard users to use the up/down arrow keys to scroll through
|
|
8842
|
+
* the container.
|
|
8843
|
+
*/
|
|
8844
|
+
export const useOverflow: ({ overflowHeight, }: {
|
|
8845
|
+
overflowHeight?: string | number | undefined;
|
|
8846
|
+
}) => {
|
|
8847
|
+
setWrapperRef: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
|
|
8848
|
+
tabIndex: 0 | -1;
|
|
8849
|
+
overflowHeightStyles: CSSProperties;
|
|
8850
|
+
};
|
|
8851
|
+
|
|
8771
8852
|
}
|
|
8772
8853
|
declare module '@elastic/eui/src/components/copy/copy' {
|
|
8773
8854
|
import { Component, ReactElement, ReactNode } from 'react';
|
|
@@ -8812,14 +8893,32 @@ declare module '@elastic/eui/src/components/copy' {
|
|
|
8812
8893
|
export type { EuiCopyProps } from '@elastic/eui/src/components/copy/copy';
|
|
8813
8894
|
export { EuiCopy } from '@elastic/eui/src/components/copy/copy';
|
|
8814
8895
|
|
|
8896
|
+
}
|
|
8897
|
+
declare module '@elastic/eui/src/components/code/code_block_copy' {
|
|
8898
|
+
import { ReactNode } from 'react';
|
|
8899
|
+
/**
|
|
8900
|
+
* Hook that returns copy-related state/logic/utils
|
|
8901
|
+
*/
|
|
8902
|
+
export const useCopy: ({ isCopyable, isVirtualized, children, }: {
|
|
8903
|
+
isCopyable: boolean;
|
|
8904
|
+
isVirtualized: boolean;
|
|
8905
|
+
children: ReactNode;
|
|
8906
|
+
}) => {
|
|
8907
|
+
innerTextRef: (node: HTMLElement | Element | null | undefined) => void;
|
|
8908
|
+
copyButton: JSX.Element | null;
|
|
8909
|
+
};
|
|
8910
|
+
|
|
8815
8911
|
}
|
|
8816
8912
|
declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
|
|
8817
8913
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8818
8914
|
export const euiOverlayMaskStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
8819
|
-
euiOverlayMask:
|
|
8820
|
-
aboveHeader:
|
|
8821
|
-
belowHeader:
|
|
8915
|
+
euiOverlayMask: string;
|
|
8916
|
+
aboveHeader: string;
|
|
8917
|
+
belowHeader: string;
|
|
8822
8918
|
};
|
|
8919
|
+
|
|
8920
|
+
}
|
|
8921
|
+
declare module '@elastic/eui/src/components/overlay_mask/overlay_mask_body.styles' {
|
|
8823
8922
|
export const euiOverlayMaskBodyStyles: import("@emotion/utils").SerializedStyles;
|
|
8824
8923
|
|
|
8825
8924
|
}
|
|
@@ -8844,7 +8943,7 @@ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
|
|
|
8844
8943
|
*/
|
|
8845
8944
|
maskRef?: Ref<HTMLDivElement> | MutableRefObject<HTMLDivElement>;
|
|
8846
8945
|
}
|
|
8847
|
-
export type EuiOverlayMaskProps = CommonProps & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
|
|
8946
|
+
export type EuiOverlayMaskProps = Omit<CommonProps, 'css'> & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
|
|
8848
8947
|
export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps>;
|
|
8849
8948
|
|
|
8850
8949
|
}
|
|
@@ -8852,13 +8951,129 @@ declare module '@elastic/eui/src/components/overlay_mask' {
|
|
|
8852
8951
|
export type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
|
|
8853
8952
|
export { EuiOverlayMask } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
|
|
8854
8953
|
|
|
8954
|
+
}
|
|
8955
|
+
declare module '@elastic/eui/src/components/code/code_block.styles' {
|
|
8956
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8957
|
+
export const euiCodeBlockStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8958
|
+
euiCodeBlock: import("@emotion/utils").SerializedStyles;
|
|
8959
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8960
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8961
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8962
|
+
transparentBackground: import("@emotion/utils").SerializedStyles;
|
|
8963
|
+
isFullScreen: import("@emotion/utils").SerializedStyles;
|
|
8964
|
+
hasControls: {
|
|
8965
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8966
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8967
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8968
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8969
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
8970
|
+
};
|
|
8971
|
+
hasBothControls: {
|
|
8972
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8973
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8974
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8975
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8976
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
8977
|
+
};
|
|
8978
|
+
};
|
|
8979
|
+
export const euiCodeBlockPreStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8980
|
+
euiCodeBlock__pre: import("@emotion/utils").SerializedStyles;
|
|
8981
|
+
padding: {
|
|
8982
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8983
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8984
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8985
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8986
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
8987
|
+
};
|
|
8988
|
+
whiteSpace: {
|
|
8989
|
+
pre: {
|
|
8990
|
+
pre: import("@emotion/utils").SerializedStyles;
|
|
8991
|
+
controlsOffset: {
|
|
8992
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8993
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8994
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8995
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8996
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
8997
|
+
};
|
|
8998
|
+
};
|
|
8999
|
+
preWrap: {
|
|
9000
|
+
preWrap: import("@emotion/utils").SerializedStyles;
|
|
9001
|
+
controlsOffset: {
|
|
9002
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
9003
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
9004
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
9005
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
9006
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
9007
|
+
};
|
|
9008
|
+
};
|
|
9009
|
+
};
|
|
9010
|
+
};
|
|
9011
|
+
export const euiCodeBlockCodeStyles: (euiThemeContext: UseEuiTheme) => {
|
|
9012
|
+
euiCodeBlock__code: import("@emotion/utils").SerializedStyles;
|
|
9013
|
+
isVirtualized: import("@emotion/utils").SerializedStyles;
|
|
9014
|
+
};
|
|
9015
|
+
|
|
9016
|
+
}
|
|
9017
|
+
declare module '@elastic/eui/src/components/code/code_block_full_screen' {
|
|
9018
|
+
import { FunctionComponent, KeyboardEvent } from 'react';
|
|
9019
|
+
/**
|
|
9020
|
+
* Hook that returns fullscreen-related state/logic/utils
|
|
9021
|
+
*/
|
|
9022
|
+
export const useFullScreen: ({ overflowHeight, }: {
|
|
9023
|
+
overflowHeight?: string | number | undefined;
|
|
9024
|
+
}) => {
|
|
9025
|
+
fullScreenButton: JSX.Element | null;
|
|
9026
|
+
isFullScreen: boolean;
|
|
9027
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
9028
|
+
};
|
|
9029
|
+
/**
|
|
9030
|
+
* Portalled full screen wrapper
|
|
9031
|
+
*/
|
|
9032
|
+
export const EuiCodeBlockFullScreenWrapper: FunctionComponent;
|
|
9033
|
+
|
|
9034
|
+
}
|
|
9035
|
+
declare module '@elastic/eui/src/components/code/code_block_controls.styles' {
|
|
9036
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
9037
|
+
export const euiCodeBlockControlsStyles: (euiThemeContext: UseEuiTheme) => {
|
|
9038
|
+
euiCodeBlock__controls: import("@emotion/utils").SerializedStyles;
|
|
9039
|
+
offset: {
|
|
9040
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
9041
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
9042
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
9043
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
9044
|
+
};
|
|
9045
|
+
};
|
|
9046
|
+
|
|
9047
|
+
}
|
|
9048
|
+
declare module '@elastic/eui/src/components/code/code_block_controls' {
|
|
9049
|
+
import { FC, ReactNode } from 'react';
|
|
9050
|
+
import type { EuiCodeBlockPaddingSize } from '@elastic/eui/src/components/code/code_block';
|
|
9051
|
+
export const EuiCodeBlockControls: FC<{
|
|
9052
|
+
controls: ReactNode[];
|
|
9053
|
+
paddingSize: EuiCodeBlockPaddingSize;
|
|
9054
|
+
}>;
|
|
9055
|
+
|
|
9056
|
+
}
|
|
9057
|
+
declare module '@elastic/eui/src/components/code/code_block_virtualized' {
|
|
9058
|
+
import { HTMLAttributes } from 'react';
|
|
9059
|
+
import { RefractorNode } from 'refractor';
|
|
9060
|
+
export const EuiCodeBlockVirtualized: ({ data, rowHeight, overflowHeight, preProps, codeProps, }: {
|
|
9061
|
+
data: RefractorNode[];
|
|
9062
|
+
rowHeight: number;
|
|
9063
|
+
overflowHeight?: string | number | undefined;
|
|
9064
|
+
preProps: HTMLAttributes<HTMLPreElement>;
|
|
9065
|
+
codeProps: HTMLAttributes<HTMLElement>;
|
|
9066
|
+
}) => JSX.Element;
|
|
9067
|
+
|
|
8855
9068
|
}
|
|
8856
9069
|
declare module '@elastic/eui/src/components/code/code_block' {
|
|
8857
9070
|
import { FunctionComponent } from 'react';
|
|
8858
9071
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
8859
|
-
import { EuiCodeSharedProps } from '@elastic/eui/src/components/code/utils';
|
|
8860
|
-
export const FONT_SIZES:
|
|
8861
|
-
export
|
|
9072
|
+
import { EuiCodeSharedProps } from '@elastic/eui/src/components/code/utils';
|
|
9073
|
+
export const FONT_SIZES: readonly ["s", "m", "l"];
|
|
9074
|
+
export type EuiCodeBlockFontSize = typeof FONT_SIZES[number];
|
|
9075
|
+
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
9076
|
+
export type EuiCodeBlockPaddingSize = typeof PADDING_SIZES[number]; type VirtualizedOptionProps = ExclusiveUnion<{
|
|
8862
9077
|
isVirtualized: true;
|
|
8863
9078
|
overflowHeight: number | string;
|
|
8864
9079
|
whiteSpace?: 'pre';
|
|
@@ -8872,8 +9087,8 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
8872
9087
|
highlight?: string;
|
|
8873
9088
|
}
|
|
8874
9089
|
export type EuiCodeBlockProps = EuiCodeSharedProps & {
|
|
8875
|
-
paddingSize?:
|
|
8876
|
-
fontSize?:
|
|
9090
|
+
paddingSize?: EuiCodeBlockPaddingSize;
|
|
9091
|
+
fontSize?: EuiCodeBlockFontSize;
|
|
8877
9092
|
/**
|
|
8878
9093
|
* Specify how `white-space` inside the element is handled.
|
|
8879
9094
|
* `pre` respects line breaks/white space but doesn't force them to wrap the line
|
|
@@ -16390,7 +16605,7 @@ declare module '@elastic/eui/src/themes' {
|
|
|
16390
16605
|
}
|
|
16391
16606
|
declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
16392
16607
|
import { PropsWithChildren } from 'react';
|
|
16393
|
-
import { EmotionCache } from '@emotion/
|
|
16608
|
+
import { EmotionCache } from '@emotion/css';
|
|
16394
16609
|
export interface EuiCacheProviderProps {
|
|
16395
16610
|
cache?: false | EmotionCache;
|
|
16396
16611
|
}
|
|
@@ -16403,7 +16618,7 @@ declare module '@elastic/eui/src/components/provider/cache' {
|
|
|
16403
16618
|
}
|
|
16404
16619
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
16405
16620
|
import React, { PropsWithChildren } from 'react';
|
|
16406
|
-
import { EmotionCache } from '@emotion/
|
|
16621
|
+
import { EmotionCache } from '@emotion/css';
|
|
16407
16622
|
import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
16408
16623
|
import { EuiThemeProviderProps, EuiThemeSystem } from '@elastic/eui/src/services';
|
|
16409
16624
|
export interface EuiProviderProps<T> extends Omit<EuiThemeProviderProps<T>, 'children' | 'theme'>, EuiGlobalStylesProps {
|
|
@@ -16690,7 +16905,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
16690
16905
|
getFieldClauses(field?: string): FieldClause[];
|
|
16691
16906
|
getFieldClause(field: string, predicate: (c: FieldClause) => boolean): FieldClause | undefined;
|
|
16692
16907
|
hasOrFieldClause(field: string, value?: Value): boolean;
|
|
16693
|
-
getOrFieldClause(field: string, value?: Value): FieldClause | undefined;
|
|
16908
|
+
getOrFieldClause(field: string, value?: Value, must?: boolean, operator?: OperatorType): FieldClause | undefined;
|
|
16694
16909
|
addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): _AST;
|
|
16695
16910
|
removeOrFieldValue(field: string, value: Value): _AST;
|
|
16696
16911
|
removeOrFieldClauses(field: string): _AST;
|
|
@@ -18832,6 +19047,7 @@ declare module '@elastic/eui/src/components/tour/tour.styles' {
|
|
|
18832
19047
|
};
|
|
18833
19048
|
export const euiTourBeaconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
18834
19049
|
euiTourBeacon: import("@emotion/utils").SerializedStyles;
|
|
19050
|
+
isOpen: import("@emotion/utils").SerializedStyles;
|
|
18835
19051
|
right: import("@emotion/utils").SerializedStyles;
|
|
18836
19052
|
left: import("@emotion/utils").SerializedStyles;
|
|
18837
19053
|
top: import("@emotion/utils").SerializedStyles;
|
|
@@ -19570,6 +19786,11 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
19570
19786
|
defaultFields?: string[];
|
|
19571
19787
|
isClauseMatcher?: (...args: any) => boolean;
|
|
19572
19788
|
explain?: boolean;
|
|
19789
|
+
/**
|
|
19790
|
+
* When the search bar Query is controlled and passed to the `search` prop it is by default executed against the items passed to the table to filter them out.
|
|
19791
|
+
* If the filtering is already done before passing the `items` to the table we can disable the execution by setting `enabled` to `false`.
|
|
19792
|
+
*/
|
|
19793
|
+
enabled?: boolean;
|
|
19573
19794
|
};
|
|
19574
19795
|
/**
|
|
19575
19796
|
* Insert content between the search bar and table components.
|
|
@@ -20008,6 +20229,35 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_collap
|
|
|
20008
20229
|
};
|
|
20009
20230
|
export const EuiResizableCollapseButton: FunctionComponent<EuiResizableCollapseButtonProps>;
|
|
20010
20231
|
|
|
20232
|
+
}
|
|
20233
|
+
declare module '@elastic/eui/src/components/resizable_container/resizable_panel.styles' {
|
|
20234
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
20235
|
+
export const euiResizablePanelStyles: (euiThemeContext: UseEuiTheme) => {
|
|
20236
|
+
euiResizablePanel: import("@emotion/utils").SerializedStyles;
|
|
20237
|
+
collapsed: import("@emotion/utils").SerializedStyles;
|
|
20238
|
+
paddingSizes: {
|
|
20239
|
+
none: null;
|
|
20240
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
20241
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
20242
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
20243
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
20244
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
20245
|
+
};
|
|
20246
|
+
};
|
|
20247
|
+
export const euiResizablePanelContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
20248
|
+
euiResizablePanel__content: import("@emotion/utils").SerializedStyles;
|
|
20249
|
+
scrollable: import("@emotion/utils").SerializedStyles;
|
|
20250
|
+
collapsedChildren: import("@emotion/utils").SerializedStyles;
|
|
20251
|
+
horizontal: {
|
|
20252
|
+
collapsed: import("@emotion/utils").SerializedStyles;
|
|
20253
|
+
hasCollapsibleButton: import("@emotion/utils").SerializedStyles;
|
|
20254
|
+
};
|
|
20255
|
+
vertical: {
|
|
20256
|
+
collapsed: import("@emotion/utils").SerializedStyles;
|
|
20257
|
+
hasCollapsibleButton: import("@emotion/utils").SerializedStyles;
|
|
20258
|
+
};
|
|
20259
|
+
};
|
|
20260
|
+
|
|
20011
20261
|
}
|
|
20012
20262
|
declare module '@elastic/eui/src/components/resizable_container/resizable_panel' {
|
|
20013
20263
|
import { CSSProperties, ReactNode, FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -20111,21 +20361,26 @@ declare module '@elastic/eui/src/components/resizable_container/helpers' {
|
|
|
20111
20361
|
export const useContainerCallbacks: ({ initialState, containerRef, onPanelWidthChange, }: Params) => [EuiResizableContainerActions, EuiResizableContainerState];
|
|
20112
20362
|
export {};
|
|
20113
20363
|
|
|
20364
|
+
}
|
|
20365
|
+
declare module '@elastic/eui/src/components/resizable_container/resizable_container.styles' {
|
|
20366
|
+
export const euiResizableContainerStyles: () => {
|
|
20367
|
+
euiResizableContainer: import("@emotion/utils").SerializedStyles;
|
|
20368
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
20369
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
20370
|
+
};
|
|
20371
|
+
|
|
20114
20372
|
}
|
|
20115
20373
|
declare module '@elastic/eui/src/components/resizable_container/resizable_container' {
|
|
20116
20374
|
import { ReactNode, CSSProperties, FunctionComponent, HTMLAttributes, ComponentType } from 'react';
|
|
20117
20375
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
20118
20376
|
import { EuiResizableButtonProps } from '@elastic/eui/src/components/resizable_container/resizable_button';
|
|
20119
20377
|
import { EuiResizablePanelProps, ToggleCollapseCallback } from '@elastic/eui/src/components/resizable_container/resizable_panel';
|
|
20120
|
-
import { EuiResizableContainerActions, ResizeTrigger } from '@elastic/eui/src/components/resizable_container/types';
|
|
20121
|
-
vertical: string;
|
|
20122
|
-
horizontal: string;
|
|
20123
|
-
};
|
|
20378
|
+
import { EuiResizableContainerActions, ResizeTrigger } from '@elastic/eui/src/components/resizable_container/types';
|
|
20124
20379
|
export interface EuiResizableContainerProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
|
|
20125
20380
|
/**
|
|
20126
20381
|
* Specify the container direction
|
|
20127
20382
|
*/
|
|
20128
|
-
direction?:
|
|
20383
|
+
direction?: 'vertical' | 'horizontal';
|
|
20129
20384
|
/**
|
|
20130
20385
|
* Pure function which accepts Panel and Resizer components in arguments
|
|
20131
20386
|
* and returns a component tree
|
|
@@ -20150,7 +20405,6 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_contai
|
|
|
20150
20405
|
style?: CSSProperties;
|
|
20151
20406
|
}
|
|
20152
20407
|
export const EuiResizableContainer: FunctionComponent<EuiResizableContainerProps>;
|
|
20153
|
-
export {};
|
|
20154
20408
|
|
|
20155
20409
|
}
|
|
20156
20410
|
declare module '@elastic/eui/src/components/resizable_container' {
|
|
@@ -24965,9 +25219,9 @@ declare module '@elastic/eui' {
|
|
|
24965
25219
|
"euiCardSelect.selected": any;
|
|
24966
25220
|
"euiCardSelect.unavailable": any;
|
|
24967
25221
|
"euiCardSelect.select": any;
|
|
24968
|
-
"
|
|
24969
|
-
"
|
|
24970
|
-
"
|
|
25222
|
+
"euiCodeBlockCopy.copy": any;
|
|
25223
|
+
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
25224
|
+
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
24971
25225
|
"euiColorPickerSwatch.ariaLabel": any;
|
|
24972
25226
|
"euiColorPicker.popoverLabel": any;
|
|
24973
25227
|
"euiColorPicker.colorLabel": any;
|
package/i18ntokens.json
CHANGED
|
@@ -304,52 +304,52 @@
|
|
|
304
304
|
"filepath": "src/components/card/card_select/card_select.tsx"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
|
-
"token": "
|
|
307
|
+
"token": "euiCodeBlockCopy.copy",
|
|
308
308
|
"defString": "Copy",
|
|
309
309
|
"highlighting": "string",
|
|
310
310
|
"loc": {
|
|
311
311
|
"start": {
|
|
312
|
-
"line":
|
|
313
|
-
"column":
|
|
312
|
+
"line": 36,
|
|
313
|
+
"column": 24
|
|
314
314
|
},
|
|
315
315
|
"end": {
|
|
316
|
-
"line":
|
|
317
|
-
"column":
|
|
316
|
+
"line": 36,
|
|
317
|
+
"column": 67
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
|
-
"filepath": "src/components/code/
|
|
320
|
+
"filepath": "src/components/code/code_block_copy.tsx"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
"token": "
|
|
323
|
+
"token": "euiCodeBlockFullScreen.fullscreenCollapse",
|
|
324
324
|
"defString": "Collapse",
|
|
325
325
|
"highlighting": "string",
|
|
326
326
|
"loc": {
|
|
327
327
|
"start": {
|
|
328
|
-
"line":
|
|
328
|
+
"line": 47,
|
|
329
329
|
"column": 49
|
|
330
330
|
},
|
|
331
331
|
"end": {
|
|
332
|
-
"line":
|
|
332
|
+
"line": 53,
|
|
333
333
|
"column": 3
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
|
-
"filepath": "src/components/code/
|
|
336
|
+
"filepath": "src/components/code/code_block_full_screen.tsx"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
|
-
"token": "
|
|
339
|
+
"token": "euiCodeBlockFullScreen.fullscreenExpand",
|
|
340
340
|
"defString": "Expand",
|
|
341
341
|
"highlighting": "string",
|
|
342
342
|
"loc": {
|
|
343
343
|
"start": {
|
|
344
|
-
"line":
|
|
344
|
+
"line": 47,
|
|
345
345
|
"column": 49
|
|
346
346
|
},
|
|
347
347
|
"end": {
|
|
348
|
-
"line":
|
|
348
|
+
"line": 53,
|
|
349
349
|
"column": 3
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
|
-
"filepath": "src/components/code/
|
|
352
|
+
"filepath": "src/components/code/code_block_full_screen.tsx"
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
"token": "euiColorPickerSwatch.ariaLabel",
|
|
@@ -4725,11 +4725,11 @@
|
|
|
4725
4725
|
"highlighting": "string",
|
|
4726
4726
|
"loc": {
|
|
4727
4727
|
"start": {
|
|
4728
|
-
"line":
|
|
4728
|
+
"line": 314,
|
|
4729
4729
|
"column": 32
|
|
4730
4730
|
},
|
|
4731
4731
|
"end": {
|
|
4732
|
-
"line":
|
|
4732
|
+
"line": 317,
|
|
4733
4733
|
"column": 3
|
|
4734
4734
|
}
|
|
4735
4735
|
},
|
|
@@ -5605,11 +5605,11 @@
|
|
|
5605
5605
|
"highlighting": "string",
|
|
5606
5606
|
"loc": {
|
|
5607
5607
|
"start": {
|
|
5608
|
-
"line":
|
|
5608
|
+
"line": 234,
|
|
5609
5609
|
"column": 10
|
|
5610
5610
|
},
|
|
5611
5611
|
"end": {
|
|
5612
|
-
"line":
|
|
5612
|
+
"line": 241,
|
|
5613
5613
|
"column": 11
|
|
5614
5614
|
}
|
|
5615
5615
|
},
|
|
@@ -5621,11 +5621,11 @@
|
|
|
5621
5621
|
"highlighting": "string",
|
|
5622
5622
|
"loc": {
|
|
5623
5623
|
"start": {
|
|
5624
|
-
"line":
|
|
5624
|
+
"line": 234,
|
|
5625
5625
|
"column": 10
|
|
5626
5626
|
},
|
|
5627
5627
|
"end": {
|
|
5628
|
-
"line":
|
|
5628
|
+
"line": 241,
|
|
5629
5629
|
"column": 11
|
|
5630
5630
|
}
|
|
5631
5631
|
},
|
|
@@ -5637,11 +5637,11 @@
|
|
|
5637
5637
|
"highlighting": "string",
|
|
5638
5638
|
"loc": {
|
|
5639
5639
|
"start": {
|
|
5640
|
-
"line":
|
|
5640
|
+
"line": 234,
|
|
5641
5641
|
"column": 10
|
|
5642
5642
|
},
|
|
5643
5643
|
"end": {
|
|
5644
|
-
"line":
|
|
5644
|
+
"line": 241,
|
|
5645
5645
|
"column": 11
|
|
5646
5646
|
}
|
|
5647
5647
|
},
|
|
@@ -414,7 +414,7 @@ var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
414
414
|
sortName = _this$state2.sortName,
|
|
415
415
|
pageIndex = _this$state2.pageIndex,
|
|
416
416
|
pageSize = _this$state2.pageSize;
|
|
417
|
-
var matchingItems = query ? _search_bar.EuiSearchBar.Query.execute(query, items, executeQueryOptions) : items;
|
|
417
|
+
var matchingItems = query !== null && (executeQueryOptions === null || executeQueryOptions === void 0 ? void 0 : executeQueryOptions.enabled) !== false ? _search_bar.EuiSearchBar.Query.execute(query, items, executeQueryOptions) : items;
|
|
418
418
|
var sortedItems = sortName ? matchingItems.slice(0) // avoid mutating the source array
|
|
419
419
|
.sort(this.getItemSorter()) // sort, causes mutation
|
|
420
420
|
: matchingItems;
|
|
@@ -1219,7 +1219,13 @@ EuiInMemoryTable.propTypes = {
|
|
|
1219
1219
|
executeQueryOptions: _propTypes.default.shape({
|
|
1220
1220
|
defaultFields: _propTypes.default.arrayOf(_propTypes.default.string.isRequired),
|
|
1221
1221
|
isClauseMatcher: _propTypes.default.func,
|
|
1222
|
-
explain: _propTypes.default.bool
|
|
1222
|
+
explain: _propTypes.default.bool,
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* When the search bar Query is controlled and passed to the `search` prop it is by default executed against the items passed to the table to filter them out.
|
|
1226
|
+
* If the filtering is already done before passing the `items` to the table we can disable the execution by setting `enabled` to `false`.
|
|
1227
|
+
*/
|
|
1228
|
+
enabled: _propTypes.default.bool
|
|
1223
1229
|
}),
|
|
1224
1230
|
|
|
1225
1231
|
/**
|