@elastic/eui 109.2.0 → 110.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/es/components/basic_table/in_memory_table.js +87 -61
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +5 -1
- package/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/es/components/filter_group/filter_group.a11y.js +1 -1
- package/es/components/header/header_logo/header_logo.js +6 -1
- package/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/es/components/icon/icon.styles.js +4 -4
- package/es/components/page/page.js +11 -3
- package/es/components/page/page.styles.js +1 -2
- package/es/components/page/page_header/page_header.js +11 -3
- package/es/components/page_template/outer/page_outer.js +2 -3
- package/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/es/components/page_template/page_template.js +8 -2
- package/es/components/search_bar/search_bar.js +10 -4
- package/es/components/selectable/selectable.js +7 -2
- package/es/services/string/to_initials.js +26 -4
- package/eui.d.ts +41 -18
- package/lib/components/basic_table/in_memory_table.js +87 -61
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +5 -1
- package/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +6 -1
- package/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/lib/components/icon/icon.styles.js +4 -4
- package/lib/components/page/page.js +10 -2
- package/lib/components/page/page.styles.js +1 -2
- package/lib/components/page/page_header/page_header.js +10 -2
- package/lib/components/page_template/outer/page_outer.js +1 -2
- package/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/lib/components/page_template/page_template.js +8 -2
- package/lib/components/search_bar/search_bar.js +9 -4
- package/lib/components/selectable/selectable.js +7 -2
- package/lib/services/string/to_initials.js +26 -4
- package/optimize/es/components/basic_table/in_memory_table.js +71 -46
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +5 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/es/components/header/header_logo/header_logo.js +6 -1
- package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/es/components/icon/icon.styles.js +4 -4
- package/optimize/es/components/page/page.js +6 -3
- package/optimize/es/components/page/page.styles.js +1 -2
- package/optimize/es/components/page/page_header/page_header.js +6 -3
- package/optimize/es/components/page_template/outer/page_outer.js +2 -3
- package/optimize/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/es/components/page_template/page_template.js +2 -1
- package/optimize/es/components/search_bar/search_bar.js +6 -0
- package/optimize/es/components/selectable/selectable.js +7 -2
- package/optimize/es/services/string/to_initials.js +26 -4
- package/optimize/lib/components/basic_table/in_memory_table.js +71 -46
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/lib/components/header/header_logo/header_logo.js +6 -1
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/lib/components/icon/icon.styles.js +4 -4
- package/optimize/lib/components/page/page.js +5 -2
- package/optimize/lib/components/page/page.styles.js +1 -2
- package/optimize/lib/components/page/page_header/page_header.js +5 -2
- package/optimize/lib/components/page_template/outer/page_outer.js +1 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/lib/components/page_template/page_template.js +2 -1
- package/optimize/lib/components/search_bar/search_bar.js +5 -0
- package/optimize/lib/components/selectable/selectable.js +7 -2
- package/optimize/lib/services/string/to_initials.js +26 -4
- package/package.json +1 -1
- package/test-env/components/basic_table/in_memory_table.js +87 -61
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +5 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/test-env/components/filter_group/filter_group.a11y.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +6 -1
- package/test-env/components/header/header_logo/header_logo.styles.js +1 -1
- package/test-env/components/icon/icon.styles.js +4 -4
- package/test-env/components/page/page.js +10 -2
- package/test-env/components/page/page.styles.js +1 -2
- package/test-env/components/page/page_header/page_header.js +10 -2
- package/test-env/components/page_template/outer/page_outer.js +1 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +29 -35
- package/test-env/components/page_template/page_template.js +8 -2
- package/test-env/components/search_bar/search_bar.js +9 -4
- package/test-env/components/selectable/selectable.js +7 -2
- package/test-env/services/string/to_initials.js +26 -4
|
@@ -9,39 +9,33 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { logicalCSS } from '../../../global_styling';
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Grow
|
|
42
|
-
grow: _ref3,
|
|
43
|
-
// Direction
|
|
44
|
-
column: _ref2,
|
|
45
|
-
row: _ref
|
|
46
|
-
};
|
|
12
|
+
export var euiPageOuterStyles = {
|
|
13
|
+
euiPageOuter: /*#__PURE__*/css("display:flex;flex-shrink:0;", logicalCSS('max-width', '100%' // Ensures Firefox doesn't expand width beyond bounds
|
|
14
|
+
), ";;label:euiPageOuter;"),
|
|
15
|
+
// Grow
|
|
16
|
+
grow: process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "122lw0e-grow",
|
|
18
|
+
styles: "flex-grow:1;label:grow;"
|
|
19
|
+
} : {
|
|
20
|
+
name: "122lw0e-grow",
|
|
21
|
+
styles: "flex-grow:1;label:grow;",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
},
|
|
24
|
+
// Direction
|
|
25
|
+
column: process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "ll8kmq-column",
|
|
27
|
+
styles: "flex-direction:column;label:column;"
|
|
28
|
+
} : {
|
|
29
|
+
name: "ll8kmq-column",
|
|
30
|
+
styles: "flex-direction:column;label:column;",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
},
|
|
33
|
+
row: process.env.NODE_ENV === "production" ? {
|
|
34
|
+
name: "15mvjmo-row",
|
|
35
|
+
styles: "flex-direction:row;label:row;"
|
|
36
|
+
} : {
|
|
37
|
+
name: "15mvjmo-row",
|
|
38
|
+
styles: "flex-direction:row;label:row;",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
}
|
|
47
41
|
};
|
|
@@ -108,7 +108,8 @@ export var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
|
|
|
108
108
|
header: {
|
|
109
109
|
restrictWidth: restrictWidth,
|
|
110
110
|
paddingSize: paddingSize,
|
|
111
|
-
bottomBorder: headerBottomBorder
|
|
111
|
+
bottomBorder: headerBottomBorder,
|
|
112
|
+
color: panelled === false ? 'transparent' : 'plain'
|
|
112
113
|
},
|
|
113
114
|
section: {
|
|
114
115
|
restrictWidth: restrictWidth,
|
|
@@ -165,7 +166,7 @@ _EuiPageTemplate.propTypes = {
|
|
|
165
166
|
"data-test-subj": PropTypes.string,
|
|
166
167
|
css: PropTypes.any,
|
|
167
168
|
/**
|
|
168
|
-
* Adds a
|
|
169
|
+
* Adds a background and shadow to define the area.
|
|
169
170
|
*/
|
|
170
171
|
panelled: PropTypes.bool,
|
|
171
172
|
/**
|
|
@@ -313,6 +314,11 @@ _EuiPageHeader.propTypes = {
|
|
|
313
314
|
* Adjust the overall padding.
|
|
314
315
|
*/
|
|
315
316
|
paddingSize: PropTypes.any,
|
|
317
|
+
/**
|
|
318
|
+
* Define the header background color
|
|
319
|
+
* @default 'transparent'
|
|
320
|
+
*/
|
|
321
|
+
color: PropTypes.oneOf(["plain", "transparent"]),
|
|
316
322
|
className: PropTypes.string,
|
|
317
323
|
"aria-label": PropTypes.string,
|
|
318
324
|
"data-test-subj": PropTypes.string,
|
|
@@ -37,6 +37,12 @@ import { Query } from './query';
|
|
|
37
37
|
import { euiSearchBar__searchHolder, euiSearchBar__filtersHolder } from './search_bar.styles';
|
|
38
38
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
39
39
|
export { Query, AST as Ast } from './query';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* When `searchFormat` is 'text', `query` is null and the search is performed
|
|
43
|
+
* on the `queryText` directly without EQL parsing
|
|
44
|
+
*/
|
|
45
|
+
|
|
40
46
|
var parseQuery = function parseQuery(query, props) {
|
|
41
47
|
var _props$box, _props$box2;
|
|
42
48
|
var schema = undefined;
|
|
@@ -242,15 +248,15 @@ _defineProperty(EuiSearchBar, "Query", Query);
|
|
|
242
248
|
EuiSearchBar.propTypes = {
|
|
243
249
|
onChange: PropTypes.func,
|
|
244
250
|
/**
|
|
245
|
-
The initial query the bar will hold when first mounted
|
|
251
|
+
* The initial query the bar will hold when first mounted
|
|
246
252
|
*/
|
|
247
253
|
defaultQuery: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
248
254
|
/**
|
|
249
|
-
If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
255
|
+
* If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
250
256
|
*/
|
|
251
257
|
query: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
252
258
|
/**
|
|
253
|
-
Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
259
|
+
* Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
254
260
|
*/
|
|
255
261
|
box: PropTypes.shape({
|
|
256
262
|
name: PropTypes.string,
|
|
@@ -310,7 +316,7 @@ EuiSearchBar.propTypes = {
|
|
|
310
316
|
}).isRequired, PropTypes.bool.isRequired])
|
|
311
317
|
}),
|
|
312
318
|
/**
|
|
313
|
-
An array of search filters. See {@link SearchFilterConfig}.
|
|
319
|
+
* An array of search filters. See {@link SearchFilterConfig}.
|
|
314
320
|
*/
|
|
315
321
|
filters: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
316
322
|
type: PropTypes.oneOf(["is"]).isRequired,
|
|
@@ -91,6 +91,12 @@ export var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
91
91
|
_this.preventOnFocus = false;
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
+
if (event && _this.props.searchable && event.target === _this.inputRef) {
|
|
95
|
+
_this.setState({
|
|
96
|
+
isFocused: true
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
94
100
|
if (!_this.state.visibleOptions.length || _this.state.activeOptionIndex != null) {
|
|
95
101
|
return;
|
|
96
102
|
}
|
|
@@ -466,8 +472,7 @@ export var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
466
472
|
onChange: _this2.onSearchChange,
|
|
467
473
|
listId: _this2.optionsListRef.current ? _this2.listId : undefined // Only pass the listId if it exists on the page
|
|
468
474
|
,
|
|
469
|
-
"aria-activedescendant": _this2.makeOptionId(activeOptionIndex)
|
|
470
|
-
,
|
|
475
|
+
"aria-activedescendant": activeOptionIndex != null ? _this2.makeOptionId(activeOptionIndex) : undefined,
|
|
471
476
|
placeholder: placeholderName,
|
|
472
477
|
isPreFiltered: !!isPreFiltered,
|
|
473
478
|
optionMatcher: optionMatcher,
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
export var MAX_INITIALS = 2;
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* This function calculates the initials/acronym for a given name.
|
|
11
13
|
* It defaults to only 2 characters and will take the first character (of each word).
|
|
@@ -17,11 +19,20 @@
|
|
|
17
19
|
* @param {string} name The full name of the item to turn into initials
|
|
18
20
|
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
19
21
|
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
20
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
-
export var MAX_INITIALS = 2;
|
|
24
23
|
export function toInitials(name, initialsLength, initials) {
|
|
24
|
+
// If `initials` provided, check if it's a single emoji
|
|
25
|
+
// in order to support complex, "multi-character" ones
|
|
26
|
+
if (initials && typeof Intl !== 'undefined' && 'Segmenter' in Intl) {
|
|
27
|
+
var segmenter = new Intl.Segmenter('en', {
|
|
28
|
+
granularity: 'grapheme'
|
|
29
|
+
});
|
|
30
|
+
var segments = Array.from(segmenter.segment(initials));
|
|
31
|
+
if (segments.length === 1 && isEmoji(segments[0].segment)) {
|
|
32
|
+
return segments[0].segment;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
25
36
|
// Calculate the number of initials to show, maxing out at MAX_INITIALS
|
|
26
37
|
var calculatedInitialsLength = initials ? initials.split('').length : name.split(' ').length;
|
|
27
38
|
calculatedInitialsLength = calculatedInitialsLength > MAX_INITIALS ? MAX_INITIALS : calculatedInitialsLength;
|
|
@@ -44,5 +55,16 @@ export function toInitials(name, initialsLength, initials) {
|
|
|
44
55
|
calculatedInitials = name.substring(0, calculatedInitialsLength);
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
|
-
return calculatedInitials;
|
|
58
|
+
return calculatedInitials || '';
|
|
59
|
+
}
|
|
60
|
+
function isEmoji(str) {
|
|
61
|
+
/**
|
|
62
|
+
* The \p escape sequence allows matching a character based on its Unicode properties
|
|
63
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
|
|
64
|
+
* @see https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt
|
|
65
|
+
* @see https://www.unicode.org/reports/tr51/#Definitions
|
|
66
|
+
* @see https://util.unicode.org/UnicodeJsps/character.jsp?a=1F440&B1=Show
|
|
67
|
+
*/
|
|
68
|
+
var emojiRegex = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDFF\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFF]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])/;
|
|
69
|
+
return emojiRegex.test(str);
|
|
48
70
|
}
|
package/eui.d.ts
CHANGED
|
@@ -8916,6 +8916,7 @@ declare module '@elastic/eui/src/services/sort' {
|
|
|
8916
8916
|
|
|
8917
8917
|
}
|
|
8918
8918
|
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
8919
|
+
export const MAX_INITIALS = 2;
|
|
8919
8920
|
/**
|
|
8920
8921
|
* This function calculates the initials/acronym for a given name.
|
|
8921
8922
|
* It defaults to only 2 characters and will take the first character (of each word).
|
|
@@ -8927,10 +8928,8 @@ declare module '@elastic/eui/src/services/string/to_initials' {
|
|
|
8927
8928
|
* @param {string} name The full name of the item to turn into initials
|
|
8928
8929
|
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
8929
8930
|
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
8930
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
8931
8931
|
*/
|
|
8932
|
-
export
|
|
8933
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
8932
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string;
|
|
8934
8933
|
|
|
8935
8934
|
}
|
|
8936
8935
|
declare module '@elastic/eui/src/services/string/to_case' {
|
|
@@ -18421,7 +18420,12 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18421
18420
|
* `customRender` render function.
|
|
18422
18421
|
*/
|
|
18423
18422
|
type TimeZoneCustomDisplayRenderOptions = {
|
|
18423
|
+
/** Name with UTC offset and an icon */
|
|
18424
18424
|
nameDisplay?: ReactNode;
|
|
18425
|
+
/** UTC offset in hours, in plain text e.g. UTC+1 */
|
|
18426
|
+
utcOffset?: string;
|
|
18427
|
+
/** Time zone name e.g. Europe/Brussels */
|
|
18428
|
+
timeZoneName?: string;
|
|
18425
18429
|
};
|
|
18426
18430
|
export type EuiTimeZoneDisplayProps = ComponentPropsWithoutRef<'div'> & {
|
|
18427
18431
|
/**
|
|
@@ -18857,6 +18861,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
18857
18861
|
export { EuiQuickSelectPopover } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
18858
18862
|
export type { EuiQuickSelectProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
18859
18863
|
export { EuiQuickSelect } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
18864
|
+
export { EuiQuickSelectPanel } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_panel';
|
|
18860
18865
|
export type { EuiRecentlyUsedProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
18861
18866
|
export { EuiRecentlyUsed } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
18862
18867
|
|
|
@@ -21926,6 +21931,11 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
21926
21931
|
* Flip to `column` when not including a sidebar.
|
|
21927
21932
|
*/
|
|
21928
21933
|
direction?: 'row' | 'column';
|
|
21934
|
+
/**
|
|
21935
|
+
* Defines the page background color.
|
|
21936
|
+
* @default 'transparent'
|
|
21937
|
+
*/
|
|
21938
|
+
color?: 'plain' | 'transparent';
|
|
21929
21939
|
}
|
|
21930
21940
|
export const EuiPage: FunctionComponent<EuiPageProps>;
|
|
21931
21941
|
|
|
@@ -22133,6 +22143,11 @@ declare module '@elastic/eui/src/components/page/page_header/page_header' {
|
|
|
22133
22143
|
* Adjust the overall padding.
|
|
22134
22144
|
*/
|
|
22135
22145
|
paddingSize?: EuiPaddingSize;
|
|
22146
|
+
/**
|
|
22147
|
+
* Define the header background color
|
|
22148
|
+
* @default 'transparent'
|
|
22149
|
+
*/
|
|
22150
|
+
color?: 'plain' | 'transparent';
|
|
22136
22151
|
}
|
|
22137
22152
|
export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
|
|
22138
22153
|
|
|
@@ -22279,8 +22294,7 @@ declare module '@elastic/eui/src/components/page' {
|
|
|
22279
22294
|
|
|
22280
22295
|
}
|
|
22281
22296
|
declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
|
|
22282
|
-
|
|
22283
|
-
export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
22297
|
+
export const euiPageOuterStyles: {
|
|
22284
22298
|
euiPageOuter: import("@emotion/react").SerializedStyles;
|
|
22285
22299
|
grow: import("@emotion/react").SerializedStyles;
|
|
22286
22300
|
column: import("@emotion/react").SerializedStyles;
|
|
@@ -22342,7 +22356,7 @@ declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
|
|
|
22342
22356
|
*/
|
|
22343
22357
|
component?: T;
|
|
22344
22358
|
/**
|
|
22345
|
-
* Adds a
|
|
22359
|
+
* Adds a background and shadow to define the area.
|
|
22346
22360
|
*/
|
|
22347
22361
|
panelled?: boolean;
|
|
22348
22362
|
/**
|
|
@@ -24637,6 +24651,15 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
24637
24651
|
queryText: string;
|
|
24638
24652
|
error: null;
|
|
24639
24653
|
}
|
|
24654
|
+
/**
|
|
24655
|
+
* When `searchFormat` is 'text', `query` is null and the search is performed
|
|
24656
|
+
* on the `queryText` directly without EQL parsing
|
|
24657
|
+
*/
|
|
24658
|
+
interface ArgsWithPlainText {
|
|
24659
|
+
query: null;
|
|
24660
|
+
queryText: string;
|
|
24661
|
+
error: null;
|
|
24662
|
+
}
|
|
24640
24663
|
interface ArgsWithError {
|
|
24641
24664
|
query: null;
|
|
24642
24665
|
queryText: string;
|
|
@@ -24648,26 +24671,26 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
24648
24671
|
flags?: string[];
|
|
24649
24672
|
recognizedFields?: string[];
|
|
24650
24673
|
}
|
|
24651
|
-
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
|
|
24674
|
+
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithPlainText | ArgsWithError;
|
|
24652
24675
|
type HintPopOverProps = Partial<Pick<EuiInputPopoverProps, 'isOpen' | 'closePopover' | 'fullWidth' | 'disableFocusTrap' | 'panelClassName' | 'panelPaddingSize' | 'panelStyle' | 'panelProps' | 'popoverScreenReaderText' | 'repositionOnScroll' | 'zIndex' | 'data-test-subj'>>;
|
|
24653
24676
|
export interface EuiSearchBarProps extends CommonProps {
|
|
24654
24677
|
onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
|
|
24655
24678
|
/**
|
|
24656
|
-
The initial query the bar will hold when first mounted
|
|
24679
|
+
* The initial query the bar will hold when first mounted
|
|
24657
24680
|
*/
|
|
24658
24681
|
defaultQuery?: QueryType;
|
|
24659
24682
|
/**
|
|
24660
|
-
If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
24683
|
+
* If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
24661
24684
|
*/
|
|
24662
24685
|
query?: QueryType;
|
|
24663
24686
|
/**
|
|
24664
|
-
Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
24687
|
+
* Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
24665
24688
|
*/
|
|
24666
24689
|
box?: EuiFieldSearchProps & {
|
|
24667
24690
|
schema?: SchemaType | boolean;
|
|
24668
24691
|
};
|
|
24669
24692
|
/**
|
|
24670
|
-
An array of search filters. See {@link SearchFilterConfig}.
|
|
24693
|
+
* An array of search filters. See {@link SearchFilterConfig}.
|
|
24671
24694
|
*/
|
|
24672
24695
|
filters?: SearchFilterConfig[];
|
|
24673
24696
|
/**
|
|
@@ -25754,17 +25777,16 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25754
25777
|
}
|
|
25755
25778
|
type Sorting = boolean | SortingOptions;
|
|
25756
25779
|
type InMemoryTableProps<T extends object> = Omit<EuiBasicTableProps<T>, 'pagination' | 'sorting' | 'noItemsMessage' | 'onChange'> & {
|
|
25757
|
-
/**
|
|
25758
|
-
* Message to display if table is empty
|
|
25759
|
-
* @deprecated Use `noItemsMessage` instead.
|
|
25760
|
-
*/
|
|
25761
|
-
message?: ReactNode;
|
|
25762
25780
|
/**
|
|
25763
25781
|
* Message to display if table is empty
|
|
25764
25782
|
*/
|
|
25765
25783
|
noItemsMessage?: ReactNode;
|
|
25766
25784
|
/**
|
|
25767
|
-
* Configures
|
|
25785
|
+
* Configures the search bar. Can be `true` for defaults,
|
|
25786
|
+
* or an {@link EuiSearchBarProps} object.
|
|
25787
|
+
*
|
|
25788
|
+
* When `searchFormat="text"`, `query` and `defaultQuery` must be strings
|
|
25789
|
+
* ({@link Query} objects are ignored).
|
|
25768
25790
|
*/
|
|
25769
25791
|
search?: Search;
|
|
25770
25792
|
/**
|
|
@@ -25772,6 +25794,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25772
25794
|
*
|
|
25773
25795
|
* However, certain special characters (such as quotes, parentheses, and colons)
|
|
25774
25796
|
* are reserved for EQL syntax and will error if used.
|
|
25797
|
+
*
|
|
25775
25798
|
* If your table does not require filter search and instead requires searching for certain
|
|
25776
25799
|
* symbols, use a plain `text` search format instead (note that filters will be ignored
|
|
25777
25800
|
* in this format).
|
|
@@ -25831,7 +25854,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25831
25854
|
search?: Search;
|
|
25832
25855
|
};
|
|
25833
25856
|
search?: Search;
|
|
25834
|
-
query: Query | null;
|
|
25857
|
+
query: Query | string | null;
|
|
25835
25858
|
pageIndex: number;
|
|
25836
25859
|
pageSize?: number;
|
|
25837
25860
|
pageSizeOptions?: number[];
|