@elastic/eui 94.5.1 → 94.5.2
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/date_picker/date_picker.js +4 -1
- package/es/components/date_picker/react-datepicker/src/index.js +7 -2
- package/es/components/drag_and_drop/drag_drop_context.js +0 -2
- package/es/components/flex/flex_group.js +4 -3
- package/es/components/flex/flex_item.js +4 -3
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/table/table_header_cell_checkbox.js +2 -1
- package/es/components/table/table_header_cell_shared.js +9 -0
- package/eui.d.ts +29 -24
- package/i18ntokens.json +6 -6
- package/lib/components/date_picker/date_picker.js +4 -1
- package/lib/components/date_picker/react-datepicker/src/index.js +7 -2
- package/lib/components/drag_and_drop/drag_drop_context.js +0 -1
- package/lib/components/flex/flex_group.js +4 -3
- package/lib/components/flex/flex_item.js +4 -3
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/table/table_header_cell_checkbox.js +2 -1
- package/lib/components/table/table_header_cell_shared.js +16 -0
- package/optimize/es/components/date_picker/date_picker.js +4 -1
- package/optimize/es/components/date_picker/react-datepicker/src/index.js +7 -2
- package/optimize/es/components/drag_and_drop/drag_drop_context.js +0 -2
- package/optimize/es/components/flex/flex_group.js +4 -3
- package/optimize/es/components/flex/flex_item.js +4 -3
- package/optimize/es/components/table/table_header_cell_checkbox.js +1 -0
- package/optimize/es/components/table/table_header_cell_shared.js +9 -0
- package/optimize/lib/components/date_picker/date_picker.js +4 -1
- package/optimize/lib/components/date_picker/react-datepicker/src/index.js +7 -2
- package/optimize/lib/components/drag_and_drop/drag_drop_context.js +0 -1
- package/optimize/lib/components/flex/flex_group.js +4 -3
- package/optimize/lib/components/flex/flex_item.js +4 -3
- package/optimize/lib/components/table/table_header_cell_checkbox.js +1 -0
- package/optimize/lib/components/table/table_header_cell_shared.js +16 -0
- package/package.json +1 -1
- package/test-env/components/date_picker/date_picker.js +4 -1
- package/test-env/components/date_picker/react-datepicker/src/index.js +7 -2
- package/test-env/components/drag_and_drop/drag_drop_context.js +0 -1
- package/test-env/components/flex/flex_group.js +4 -3
- package/test-env/components/flex/flex_item.js +4 -3
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/table/table_header_cell_checkbox.js +2 -1
- package/test-env/components/table/table_header_cell_shared.js +16 -0
- package/src/components/date_picker/react-datepicker/LICENSE +0 -21
- package/src/components/date_picker/react-datepicker/README.md +0 -168
- package/src/services/theme/README.md +0 -153
- package/src/test/README.md +0 -44
|
@@ -76,7 +76,7 @@ export var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
76
76
|
injectTimes = _ref.injectTimes,
|
|
77
77
|
inline = _ref.inline,
|
|
78
78
|
inputRef = _ref.inputRef,
|
|
79
|
-
|
|
79
|
+
_isInvalid = _ref.isInvalid,
|
|
80
80
|
isLoading = _ref.isLoading,
|
|
81
81
|
locale = _ref.locale,
|
|
82
82
|
maxDate = _ref.maxDate,
|
|
@@ -109,6 +109,9 @@ export var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
109
109
|
'euiDatePicker--inline': inline,
|
|
110
110
|
'euiDatePicker--shadow': inline && shadow
|
|
111
111
|
});
|
|
112
|
+
|
|
113
|
+
// Check for whether the passed `selected` moment date is valid
|
|
114
|
+
var isInvalid = _isInvalid || ((selected === null || selected === void 0 ? void 0 : selected.isValid()) === false ? true : undefined);
|
|
112
115
|
var numIconsClass = controlOnly ? false : getFormControlClassNameForIconCount({
|
|
113
116
|
isInvalid: isInvalid,
|
|
114
117
|
isLoading: isLoading
|
|
@@ -57,6 +57,9 @@ function hasPreSelectionChanged(date1, date2) {
|
|
|
57
57
|
}
|
|
58
58
|
function hasSelectionChanged(date1, date2) {
|
|
59
59
|
if (date1 && date2) {
|
|
60
|
+
if (date1._isValid === false && date2._isValid === false) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
60
63
|
return !equals(date1, date2);
|
|
61
64
|
}
|
|
62
65
|
return false;
|
|
@@ -77,6 +80,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
77
80
|
return _this.props.openToDate ? newDate(_this.props.openToDate) : _this.props.selectsEnd && _this.props.startDate ? newDate(_this.props.startDate) : _this.props.selectsStart && _this.props.endDate ? newDate(_this.props.endDate) : now(_this.props.utcOffset);
|
|
78
81
|
});
|
|
79
82
|
_defineProperty(_assertThisInitialized(_this), "calcInitialState", function () {
|
|
83
|
+
var _this$props$selected;
|
|
80
84
|
var defaultPreSelection = _this.getPreSelection();
|
|
81
85
|
var minDate = getEffectiveMinDate(_this.props);
|
|
82
86
|
var maxDate = getEffectiveMaxDate(_this.props);
|
|
@@ -84,7 +88,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
84
88
|
return {
|
|
85
89
|
open: _this.props.startOpen || false,
|
|
86
90
|
preventFocus: false,
|
|
87
|
-
preSelection: _this.props.selected ? newDate(_this.props.selected) : boundedPreSelection,
|
|
91
|
+
preSelection: (_this$props$selected = _this.props.selected) !== null && _this$props$selected !== void 0 && _this$props$selected._isValid ? newDate(_this.props.selected) : boundedPreSelection,
|
|
88
92
|
// transforming highlighted days (perhaps nested array)
|
|
89
93
|
// to flat Map for faster access in day.jsx
|
|
90
94
|
highlightDates: getHightLightDaysMap(_this.props.highlightDates),
|
|
@@ -436,6 +440,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
436
440
|
_this.onClearClick();
|
|
437
441
|
});
|
|
438
442
|
_defineProperty(_assertThisInitialized(_this), "renderCalendar", function () {
|
|
443
|
+
var _this$props$selected2;
|
|
439
444
|
if (!_this.props.inline && !_this.isCalendarOpen()) {
|
|
440
445
|
return null;
|
|
441
446
|
}
|
|
@@ -451,7 +456,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
451
456
|
useWeekdaysShort: _this.props.useWeekdaysShort,
|
|
452
457
|
formatWeekDay: _this.props.formatWeekDay,
|
|
453
458
|
dropdownMode: _this.props.dropdownMode,
|
|
454
|
-
selected: _this.props.selected,
|
|
459
|
+
selected: (_this$props$selected2 = _this.props.selected) !== null && _this$props$selected2 !== void 0 && _this$props$selected2._isValid ? _this.props.selected : undefined,
|
|
455
460
|
preSelection: _this.state.preSelection,
|
|
456
461
|
onSelect: _this.handleSelect,
|
|
457
462
|
onWeekSelect: _this.props.onWeekSelect,
|
|
@@ -18,8 +18,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
|
|
19
19
|
import React, { useState, createContext } from 'react';
|
|
20
20
|
import { DragDropContext } from '@hello-pangea/dnd';
|
|
21
|
-
|
|
22
|
-
// export interface EuiDragDropContextProps extends DragDropContextProps {}
|
|
23
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
22
|
export var EuiDragDropContextContext = /*#__PURE__*/createContext({
|
|
25
23
|
isDraggingType: null
|
|
@@ -40,9 +40,10 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
|
|
|
40
40
|
var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
|
|
41
41
|
var classes = classNames('euiFlexGroup', className);
|
|
42
42
|
|
|
43
|
-
// Cast
|
|
44
|
-
//
|
|
45
|
-
//
|
|
43
|
+
// Cast `component` to FunctionComponent to simplify its type.
|
|
44
|
+
// Note that FunctionComponent type is used here for purely typing
|
|
45
|
+
// convenience since we specify the return type above, and function
|
|
46
|
+
// components don't support `ref`s, but that doesn't matter in this case.
|
|
46
47
|
var Component = component;
|
|
47
48
|
return ___EmotionJSX(Component, _extends({}, rest, {
|
|
48
49
|
ref: ref,
|
|
@@ -31,9 +31,10 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
|
|
|
31
31
|
var cssStyles = [styles.euiFlexItem, !grow ? styles.growZero : styles.grow, grow && (typeof grow === 'number' ? styles.growSizes[grow] : styles.growSizes['1'])];
|
|
32
32
|
var classes = classNames('euiFlexItem', className);
|
|
33
33
|
|
|
34
|
-
// Cast
|
|
35
|
-
//
|
|
36
|
-
//
|
|
34
|
+
// Cast `component` to FunctionComponent to simplify its type.
|
|
35
|
+
// Note that FunctionComponent type is used here for purely typing
|
|
36
|
+
// convenience since we specify the return type above, and function
|
|
37
|
+
// components don't support `ref`s, but that doesn't matter in this case.
|
|
37
38
|
var Component = component;
|
|
38
39
|
return ___EmotionJSX(Component, _extends({}, rest, {
|
|
39
40
|
ref: ref,
|
|
@@ -130,7 +130,7 @@ EuiTableHeaderCell.propTypes = {
|
|
|
130
130
|
isSorted: PropTypes.bool,
|
|
131
131
|
mobileOptions: PropTypes.any,
|
|
132
132
|
onSort: PropTypes.func,
|
|
133
|
-
scope: PropTypes.
|
|
133
|
+
scope: PropTypes.any,
|
|
134
134
|
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
135
135
|
description: PropTypes.string,
|
|
136
136
|
/**
|
|
@@ -28,6 +28,7 @@ export var EuiTableHeaderCellCheckbox = function EuiTableHeaderCellCheckbox(_ref
|
|
|
28
28
|
var classes = classNames('euiTableHeaderCellCheckbox', className);
|
|
29
29
|
var styles = useEuiMemoizedStyles(euiTableCellCheckboxStyles);
|
|
30
30
|
var inlineStyles = resolveWidthAsStyle(style, width);
|
|
31
|
+
console.log('inlineStyles', inlineStyles);
|
|
31
32
|
return ___EmotionJSX("th", _extends({
|
|
32
33
|
css: styles.euiTableHeaderCellCheckbox,
|
|
33
34
|
className: classes,
|
|
@@ -43,5 +44,5 @@ EuiTableHeaderCellCheckbox.propTypes = {
|
|
|
43
44
|
"data-test-subj": PropTypes.string,
|
|
44
45
|
css: PropTypes.any,
|
|
45
46
|
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
46
|
-
scope: PropTypes.
|
|
47
|
+
scope: PropTypes.any
|
|
47
48
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export var HEADER_CELL_SCOPE = ['col', 'row', 'colgroup', 'rowgroup'];
|
package/eui.d.ts
CHANGED
|
@@ -1866,15 +1866,15 @@ declare module '@elastic/eui/src/components/flex/flex_group.styles' {
|
|
|
1866
1866
|
|
|
1867
1867
|
}
|
|
1868
1868
|
declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
1869
|
-
import React, { ComponentPropsWithoutRef, ElementType,
|
|
1869
|
+
import React, { ComponentPropsWithoutRef, ElementType, PropsWithChildren, ReactElement, Ref } from 'react';
|
|
1870
1870
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1871
1871
|
export const GUTTER_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1872
1872
|
export type EuiFlexGroupGutterSize = (typeof GUTTER_SIZES)[number];
|
|
1873
1873
|
export const ALIGN_ITEMS: readonly ["stretch", "flexStart", "flexEnd", "center", "baseline"];
|
|
1874
1874
|
export type FlexGroupAlignItems = (typeof ALIGN_ITEMS)[number];
|
|
1875
1875
|
export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"]; type FlexGroupJustifyContent = (typeof JUSTIFY_CONTENTS)[number];
|
|
1876
|
-
export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"]; type FlexGroupDirection = (typeof DIRECTIONS)[number];
|
|
1877
|
-
export type EuiFlexGroupProps<TComponent extends
|
|
1876
|
+
export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"]; type FlexGroupDirection = (typeof DIRECTIONS)[number];
|
|
1877
|
+
export type EuiFlexGroupProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
1878
1878
|
alignItems?: FlexGroupAlignItems;
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Customize the component type that is rendered.
|
|
@@ -1899,8 +1899,8 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
1899
1899
|
justifyContent?: FlexGroupJustifyContent;
|
|
1900
1900
|
responsive?: boolean;
|
|
1901
1901
|
wrap?: boolean;
|
|
1902
|
-
};
|
|
1903
|
-
export const EuiFlexGroup: (<TComponent extends
|
|
1902
|
+
};
|
|
1903
|
+
export const EuiFlexGroup: (<TComponent extends React.ElementType = "div", TComponentRef = React.ReactElement<any, TComponent>>(props: {
|
|
1904
1904
|
children?: React.ReactNode;
|
|
1905
1905
|
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
1906
1906
|
alignItems?: "center" | "stretch" | "baseline" | "flexStart" | "flexEnd" | undefined;
|
|
@@ -1929,7 +1929,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
1929
1929
|
wrap?: boolean | undefined;
|
|
1930
1930
|
} & {
|
|
1931
1931
|
ref?: React.Ref<TComponentRef> | undefined;
|
|
1932
|
-
}) =>
|
|
1932
|
+
}) => ReactElement) & {
|
|
1933
1933
|
displayName?: string | undefined;
|
|
1934
1934
|
};
|
|
1935
1935
|
export {};
|
|
@@ -2032,9 +2032,9 @@ declare module '@elastic/eui/src/components/flex/flex_item.styles' {
|
|
|
2032
2032
|
|
|
2033
2033
|
}
|
|
2034
2034
|
declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
2035
|
-
import React, { ElementType, ComponentPropsWithoutRef, PropsWithChildren,
|
|
2036
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2037
|
-
export type EuiFlexItemProps<TComponent extends
|
|
2035
|
+
import React, { ElementType, ComponentPropsWithoutRef, PropsWithChildren, Ref, ReactElement } from 'react';
|
|
2036
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2037
|
+
export type EuiFlexItemProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
2038
2038
|
grow?: boolean | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null;
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Customize the component type that is rendered.
|
|
@@ -2043,19 +2043,19 @@ declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
|
2043
2043
|
* such as `'div'` or `'span'`, a React component (a function, a class,
|
|
2044
2044
|
* or an exotic component like `memo()`).
|
|
2045
2045
|
*
|
|
2046
|
-
* `<
|
|
2046
|
+
* `<EuiFlexItem>` accepts and forwards all extra props to the custom
|
|
2047
2047
|
* component.
|
|
2048
2048
|
*
|
|
2049
2049
|
* @example
|
|
2050
2050
|
* // Renders a <button> element
|
|
2051
2051
|
* <EuiFlexItem component="button">
|
|
2052
2052
|
* Submit form
|
|
2053
|
-
* </
|
|
2053
|
+
* </EuiFlexItem>
|
|
2054
2054
|
* @default "div"
|
|
2055
2055
|
*/
|
|
2056
2056
|
component?: TComponent;
|
|
2057
|
-
};
|
|
2058
|
-
export const EuiFlexItem: (<TComponent extends
|
|
2057
|
+
};
|
|
2058
|
+
export const EuiFlexItem: (<TComponent extends React.ElementType, TComponentRef = React.ReactElement<any, TComponent>>(props: {
|
|
2059
2059
|
children?: React.ReactNode;
|
|
2060
2060
|
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
2061
2061
|
grow?: boolean | 0 | 5 | 2 | 10 | 3 | 8 | 9 | 1 | 4 | 6 | 7 | null | undefined;
|
|
@@ -2066,23 +2066,22 @@ declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
|
2066
2066
|
* such as `'div'` or `'span'`, a React component (a function, a class,
|
|
2067
2067
|
* or an exotic component like `memo()`).
|
|
2068
2068
|
*
|
|
2069
|
-
* `<
|
|
2069
|
+
* `<EuiFlexItem>` accepts and forwards all extra props to the custom
|
|
2070
2070
|
* component.
|
|
2071
2071
|
*
|
|
2072
2072
|
* @example
|
|
2073
2073
|
* // Renders a <button> element
|
|
2074
2074
|
* <EuiFlexItem component="button">
|
|
2075
2075
|
* Submit form
|
|
2076
|
-
* </
|
|
2076
|
+
* </EuiFlexItem>
|
|
2077
2077
|
* @default "div"
|
|
2078
2078
|
*/
|
|
2079
2079
|
component?: TComponent | undefined;
|
|
2080
2080
|
} & {
|
|
2081
2081
|
ref?: React.Ref<TComponentRef> | undefined;
|
|
2082
|
-
}) =>
|
|
2082
|
+
}) => ReactElement) & {
|
|
2083
2083
|
displayName?: string | undefined;
|
|
2084
2084
|
};
|
|
2085
|
-
export {};
|
|
2086
2085
|
|
|
2087
2086
|
}
|
|
2088
2087
|
declare module '@elastic/eui/src/components/flex' {
|
|
@@ -2755,7 +2754,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2755
2754
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2756
2755
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2757
2756
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2758
|
-
export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "home" | "mobile" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "
|
|
2757
|
+
export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "home" | "mobile" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "warningFilled" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
|
|
2759
2758
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2760
2759
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2761
2760
|
export type IconColor = string | NamedColor;
|
|
@@ -2798,7 +2797,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2798
2797
|
isLoading: boolean;
|
|
2799
2798
|
neededLoading: boolean;
|
|
2800
2799
|
}
|
|
2801
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "home" | "mobile" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "
|
|
2800
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "home" | "mobile" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "warningFilled" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector" | undefined) => void;
|
|
2802
2801
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
2803
2802
|
[iconType: string]: React.ComponentType<{}>;
|
|
2804
2803
|
}) => void;
|
|
@@ -4462,13 +4461,18 @@ declare module '@elastic/eui/src/components/inner_text' {
|
|
|
4462
4461
|
export type { EuiInnerTextProps } from '@elastic/eui/src/components/inner_text/inner_text';
|
|
4463
4462
|
export { useInnerText, EuiInnerText } from '@elastic/eui/src/components/inner_text/inner_text';
|
|
4464
4463
|
|
|
4464
|
+
}
|
|
4465
|
+
declare module '@elastic/eui/src/components/table/table_header_cell_shared' {
|
|
4466
|
+
export const HEADER_CELL_SCOPE: readonly ["col", "row", "colgroup", "rowgroup"];
|
|
4467
|
+
|
|
4465
4468
|
}
|
|
4466
4469
|
declare module '@elastic/eui/src/components/table/table_header_cell' {
|
|
4467
4470
|
import { FunctionComponent, ThHTMLAttributes } from 'react';
|
|
4468
4471
|
import { HorizontalAlignment } from '@elastic/eui/src/services';
|
|
4469
4472
|
import { CommonProps, NoArgCallback } from '@elastic/eui/src/components/common';
|
|
4470
4473
|
import type { EuiTableRowCellMobileOptionsShape } from '@elastic/eui/src/components/table/table_row_cell';
|
|
4471
|
-
|
|
4474
|
+
import { HEADER_CELL_SCOPE } from '@elastic/eui/src/components/table/table_header_cell_shared';
|
|
4475
|
+
export type TableHeaderCellScope = (typeof HEADER_CELL_SCOPE)[number];
|
|
4472
4476
|
export type EuiTableHeaderCellProps = CommonProps & Omit<ThHTMLAttributes<HTMLTableHeaderCellElement>, 'align' | 'scope'> & {
|
|
4473
4477
|
align?: HorizontalAlignment;
|
|
4474
4478
|
isSortAscending?: boolean;
|
|
@@ -4489,7 +4493,8 @@ declare module '@elastic/eui/src/components/table/table_header_cell' {
|
|
|
4489
4493
|
declare module '@elastic/eui/src/components/table/table_header_cell_checkbox' {
|
|
4490
4494
|
import { FunctionComponent, ThHTMLAttributes } from 'react';
|
|
4491
4495
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4492
|
-
|
|
4496
|
+
import { HEADER_CELL_SCOPE } from '@elastic/eui/src/components/table/table_header_cell_shared';
|
|
4497
|
+
export type EuiTableHeaderCellCheckboxScope = (typeof HEADER_CELL_SCOPE)[number];
|
|
4493
4498
|
export interface EuiTableHeaderCellCheckboxProps {
|
|
4494
4499
|
width?: string | number;
|
|
4495
4500
|
scope?: EuiTableHeaderCellCheckboxScope;
|
|
@@ -6189,12 +6194,12 @@ declare module '@elastic/eui/src/components/tool_tip/icon_tip' {
|
|
|
6189
6194
|
iconProps?: Omit<PropsOf<typeof EuiIcon>, 'type'> & {
|
|
6190
6195
|
type?: never;
|
|
6191
6196
|
};
|
|
6192
|
-
}
|
|
6197
|
+
}
|
|
6198
|
+
export type Props = Omit<EuiToolTipProps, 'children' | 'delay' | 'position'> & EuiIconTipProps & {
|
|
6193
6199
|
delay?: EuiToolTipProps['delay'];
|
|
6194
6200
|
position?: EuiToolTipProps['position'];
|
|
6195
6201
|
};
|
|
6196
6202
|
export const EuiIconTip: FunctionComponent<Props>;
|
|
6197
|
-
export {};
|
|
6198
6203
|
|
|
6199
6204
|
}
|
|
6200
6205
|
declare module '@elastic/eui/src/components/tool_tip' {
|
|
@@ -11142,7 +11147,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
11142
11147
|
as?: T;
|
|
11143
11148
|
} & _EuiFlyoutProps & Omit<PropsOfElement<T>, keyof _EuiFlyoutProps>;
|
|
11144
11149
|
export type EuiFlyoutProps<T extends ElementType = typeof defaultElement> = Props<T> & Omit<ComponentPropsWithRef<T>, keyof Props<T>>;
|
|
11145
|
-
export const EuiFlyout: <T extends React.ElementType
|
|
11150
|
+
export const EuiFlyout: <T extends React.ElementType = "div">(props: EuiFlyoutProps<T>) => JSX.Element;
|
|
11146
11151
|
export {};
|
|
11147
11152
|
|
|
11148
11153
|
}
|
package/i18ntokens.json
CHANGED
|
@@ -6665,14 +6665,14 @@
|
|
|
6665
6665
|
"highlighting": "string",
|
|
6666
6666
|
"loc": {
|
|
6667
6667
|
"start": {
|
|
6668
|
-
"line":
|
|
6668
|
+
"line": 78,
|
|
6669
6669
|
"column": 10,
|
|
6670
|
-
"index":
|
|
6670
|
+
"index": 2418
|
|
6671
6671
|
},
|
|
6672
6672
|
"end": {
|
|
6673
|
-
"line":
|
|
6673
|
+
"line": 82,
|
|
6674
6674
|
"column": 11,
|
|
6675
|
-
"index":
|
|
6675
|
+
"index": 2592
|
|
6676
6676
|
}
|
|
6677
6677
|
},
|
|
6678
6678
|
"filepath": "src/components/table/table_header_cell.tsx"
|
|
@@ -6847,12 +6847,12 @@
|
|
|
6847
6847
|
"start": {
|
|
6848
6848
|
"line": 65,
|
|
6849
6849
|
"column": 27,
|
|
6850
|
-
"index":
|
|
6850
|
+
"index": 1862
|
|
6851
6851
|
},
|
|
6852
6852
|
"end": {
|
|
6853
6853
|
"line": 65,
|
|
6854
6854
|
"column": 76,
|
|
6855
|
-
"index":
|
|
6855
|
+
"index": 1911
|
|
6856
6856
|
}
|
|
6857
6857
|
},
|
|
6858
6858
|
"filepath": "src/components/tool_tip/icon_tip.tsx"
|
|
@@ -86,7 +86,7 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
86
86
|
injectTimes = _ref.injectTimes,
|
|
87
87
|
inline = _ref.inline,
|
|
88
88
|
inputRef = _ref.inputRef,
|
|
89
|
-
|
|
89
|
+
_isInvalid = _ref.isInvalid,
|
|
90
90
|
isLoading = _ref.isLoading,
|
|
91
91
|
locale = _ref.locale,
|
|
92
92
|
maxDate = _ref.maxDate,
|
|
@@ -119,6 +119,9 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
119
119
|
'euiDatePicker--inline': inline,
|
|
120
120
|
'euiDatePicker--shadow': inline && shadow
|
|
121
121
|
});
|
|
122
|
+
|
|
123
|
+
// Check for whether the passed `selected` moment date is valid
|
|
124
|
+
var isInvalid = _isInvalid || ((selected === null || selected === void 0 ? void 0 : selected.isValid()) === false ? true : undefined);
|
|
122
125
|
var numIconsClass = controlOnly ? false : (0, _num_icons.getFormControlClassNameForIconCount)({
|
|
123
126
|
isInvalid: isInvalid,
|
|
124
127
|
isLoading: isLoading
|
|
@@ -68,6 +68,9 @@ function hasPreSelectionChanged(date1, date2) {
|
|
|
68
68
|
}
|
|
69
69
|
function hasSelectionChanged(date1, date2) {
|
|
70
70
|
if (date1 && date2) {
|
|
71
|
+
if (date1._isValid === false && date2._isValid === false) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
71
74
|
return !(0, _date_utils.equals)(date1, date2);
|
|
72
75
|
}
|
|
73
76
|
return false;
|
|
@@ -88,6 +91,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
88
91
|
return _this.props.openToDate ? (0, _date_utils.newDate)(_this.props.openToDate) : _this.props.selectsEnd && _this.props.startDate ? (0, _date_utils.newDate)(_this.props.startDate) : _this.props.selectsStart && _this.props.endDate ? (0, _date_utils.newDate)(_this.props.endDate) : (0, _date_utils.now)(_this.props.utcOffset);
|
|
89
92
|
});
|
|
90
93
|
_defineProperty(_assertThisInitialized(_this), "calcInitialState", function () {
|
|
94
|
+
var _this$props$selected;
|
|
91
95
|
var defaultPreSelection = _this.getPreSelection();
|
|
92
96
|
var minDate = (0, _date_utils.getEffectiveMinDate)(_this.props);
|
|
93
97
|
var maxDate = (0, _date_utils.getEffectiveMaxDate)(_this.props);
|
|
@@ -95,7 +99,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
95
99
|
return {
|
|
96
100
|
open: _this.props.startOpen || false,
|
|
97
101
|
preventFocus: false,
|
|
98
|
-
preSelection: _this.props.selected ? (0, _date_utils.newDate)(_this.props.selected) : boundedPreSelection,
|
|
102
|
+
preSelection: (_this$props$selected = _this.props.selected) !== null && _this$props$selected !== void 0 && _this$props$selected._isValid ? (0, _date_utils.newDate)(_this.props.selected) : boundedPreSelection,
|
|
99
103
|
// transforming highlighted days (perhaps nested array)
|
|
100
104
|
// to flat Map for faster access in day.jsx
|
|
101
105
|
highlightDates: (0, _date_utils.getHightLightDaysMap)(_this.props.highlightDates),
|
|
@@ -447,6 +451,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
447
451
|
_this.onClearClick();
|
|
448
452
|
});
|
|
449
453
|
_defineProperty(_assertThisInitialized(_this), "renderCalendar", function () {
|
|
454
|
+
var _this$props$selected2;
|
|
450
455
|
if (!_this.props.inline && !_this.isCalendarOpen()) {
|
|
451
456
|
return null;
|
|
452
457
|
}
|
|
@@ -462,7 +467,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
462
467
|
useWeekdaysShort: _this.props.useWeekdaysShort,
|
|
463
468
|
formatWeekDay: _this.props.formatWeekDay,
|
|
464
469
|
dropdownMode: _this.props.dropdownMode,
|
|
465
|
-
selected: _this.props.selected,
|
|
470
|
+
selected: (_this$props$selected2 = _this.props.selected) !== null && _this$props$selected2 !== void 0 && _this$props$selected2._isValid ? _this.props.selected : undefined,
|
|
466
471
|
preSelection: _this.state.preSelection,
|
|
467
472
|
onSelect: _this.handleSelect,
|
|
468
473
|
onWeekSelect: _this.props.onWeekSelect,
|
|
@@ -16,7 +16,6 @@ var _excluded = ["onBeforeDragStart", "onDragStart", "onDragUpdate", "onDragEnd"
|
|
|
16
16
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
17
17
|
* Side Public License, v 1.
|
|
18
18
|
*/
|
|
19
|
-
// export interface EuiDragDropContextProps extends DragDropContextProps {}
|
|
20
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
21
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -53,9 +53,10 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
|
|
|
53
53
|
var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
|
|
54
54
|
var classes = (0, _classnames.default)('euiFlexGroup', className);
|
|
55
55
|
|
|
56
|
-
// Cast
|
|
57
|
-
//
|
|
58
|
-
//
|
|
56
|
+
// Cast `component` to FunctionComponent to simplify its type.
|
|
57
|
+
// Note that FunctionComponent type is used here for purely typing
|
|
58
|
+
// convenience since we specify the return type above, and function
|
|
59
|
+
// components don't support `ref`s, but that doesn't matter in this case.
|
|
59
60
|
var Component = component;
|
|
60
61
|
return (0, _react2.jsx)(Component, _extends({}, rest, {
|
|
61
62
|
ref: ref,
|
|
@@ -40,9 +40,10 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
|
|
|
40
40
|
var cssStyles = [_flex_item.euiFlexItemStyles.euiFlexItem, !grow ? _flex_item.euiFlexItemStyles.growZero : _flex_item.euiFlexItemStyles.grow, grow && (typeof grow === 'number' ? _flex_item.euiFlexItemStyles.growSizes[grow] : _flex_item.euiFlexItemStyles.growSizes['1'])];
|
|
41
41
|
var classes = (0, _classnames.default)('euiFlexItem', className);
|
|
42
42
|
|
|
43
|
-
// Cast
|
|
44
|
-
//
|
|
45
|
-
//
|
|
43
|
+
// Cast `component` to FunctionComponent to simplify its type.
|
|
44
|
+
// Note that FunctionComponent type is used here for purely typing
|
|
45
|
+
// convenience since we specify the return type above, and function
|
|
46
|
+
// components don't support `ref`s, but that doesn't matter in this case.
|
|
46
47
|
var Component = component;
|
|
47
48
|
return (0, _react2.jsx)(Component, _extends({}, rest, {
|
|
48
49
|
ref: ref,
|
|
@@ -137,7 +137,7 @@ EuiTableHeaderCell.propTypes = {
|
|
|
137
137
|
isSorted: _propTypes.default.bool,
|
|
138
138
|
mobileOptions: _propTypes.default.any,
|
|
139
139
|
onSort: _propTypes.default.func,
|
|
140
|
-
scope: _propTypes.default.
|
|
140
|
+
scope: _propTypes.default.any,
|
|
141
141
|
width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
|
|
142
142
|
description: _propTypes.default.string,
|
|
143
143
|
/**
|
|
@@ -34,6 +34,7 @@ var EuiTableHeaderCellCheckbox = function EuiTableHeaderCellCheckbox(_ref) {
|
|
|
34
34
|
var classes = (0, _classnames.default)('euiTableHeaderCellCheckbox', className);
|
|
35
35
|
var styles = (0, _services.useEuiMemoizedStyles)(_table_cells_shared.euiTableCellCheckboxStyles);
|
|
36
36
|
var inlineStyles = (0, _utils.resolveWidthAsStyle)(style, width);
|
|
37
|
+
console.log('inlineStyles', inlineStyles);
|
|
37
38
|
return (0, _react2.jsx)("th", _extends({
|
|
38
39
|
css: styles.euiTableHeaderCellCheckbox,
|
|
39
40
|
className: classes,
|
|
@@ -50,5 +51,5 @@ EuiTableHeaderCellCheckbox.propTypes = {
|
|
|
50
51
|
"data-test-subj": _propTypes.default.string,
|
|
51
52
|
css: _propTypes.default.any,
|
|
52
53
|
width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
|
|
53
|
-
scope: _propTypes.default.
|
|
54
|
+
scope: _propTypes.default.any
|
|
54
55
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HEADER_CELL_SCOPE = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
10
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
+
* Side Public License, v 1.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var HEADER_CELL_SCOPE = ['col', 'row', 'colgroup', 'rowgroup'];
|
|
16
|
+
exports.HEADER_CELL_SCOPE = HEADER_CELL_SCOPE;
|