@elastic/eui 104.1.0 → 104.4.0-amsterdam.1
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_borealis_dark.json +1 -3
- package/dist/eui_theme_borealis_dark.json.d.ts +1 -3
- package/dist/eui_theme_borealis_light.json +1 -3
- package/dist/eui_theme_borealis_light.json.d.ts +1 -3
- package/es/components/basic_table/in_memory_table.js +2 -18
- package/es/components/code/code.styles.js +1 -1
- package/es/components/code/code_syntax.styles.js +0 -1
- package/es/components/datagrid/controls/column_selector.js +32 -3
- package/es/components/date_picker/date_picker.js +1 -2
- package/es/components/date_picker/date_picker_range.js +16 -18
- package/es/components/date_picker/super_date_picker/super_date_picker.js +9 -5
- package/es/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
- package/es/components/provider/provider.js +2 -2
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/es/themes/amsterdam/global_styling/variables/_components.js +310 -315
- package/es/themes/json/eui_theme_borealis_dark.json +1 -3
- package/es/themes/json/eui_theme_borealis_light.json +1 -3
- package/eui.d.ts +339 -352
- package/lib/components/basic_table/in_memory_table.js +2 -18
- package/lib/components/code/code.styles.js +1 -1
- package/lib/components/code/code_syntax.styles.js +0 -1
- package/lib/components/datagrid/controls/column_selector.js +32 -3
- package/lib/components/date_picker/date_picker.js +1 -2
- package/lib/components/date_picker/date_picker_range.js +16 -18
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +9 -5
- package/lib/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
- package/lib/components/provider/provider.js +2 -2
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/lib/themes/amsterdam/global_styling/variables/_components.js +310 -315
- package/lib/themes/json/eui_theme_borealis_dark.json +1 -3
- package/lib/themes/json/eui_theme_borealis_light.json +1 -3
- package/optimize/es/components/basic_table/in_memory_table.js +2 -3
- package/optimize/es/components/code/code.styles.js +1 -1
- package/optimize/es/components/code/code_syntax.styles.js +0 -1
- package/optimize/es/components/datagrid/controls/column_selector.js +34 -3
- package/optimize/es/components/date_picker/date_picker.js +1 -2
- package/optimize/es/components/date_picker/date_picker_range.js +14 -16
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +9 -5
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +2 -2
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +310 -315
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +1 -3
- package/optimize/es/themes/json/eui_theme_borealis_light.json +1 -3
- package/optimize/lib/components/basic_table/in_memory_table.js +2 -3
- package/optimize/lib/components/code/code.styles.js +1 -1
- package/optimize/lib/components/code/code_syntax.styles.js +0 -1
- package/optimize/lib/components/datagrid/controls/column_selector.js +34 -5
- package/optimize/lib/components/date_picker/date_picker.js +1 -2
- package/optimize/lib/components/date_picker/date_picker_range.js +14 -16
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +9 -5
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +2 -2
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +310 -315
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +1 -3
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +1 -3
- package/package.json +4 -4
- package/test-env/components/basic_table/in_memory_table.js +2 -18
- package/test-env/components/code/code.styles.js +1 -1
- package/test-env/components/code/code_syntax.styles.js +0 -1
- package/test-env/components/datagrid/controls/column_selector.js +34 -5
- package/test-env/components/date_picker/date_picker.js +1 -2
- package/test-env/components/date_picker/date_picker_range.js +16 -18
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +9 -5
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +310 -315
- package/test-env/themes/json/eui_theme_borealis_dark.json +1 -3
- package/test-env/themes/json/eui_theme_borealis_light.json +1 -3
|
@@ -377,7 +377,6 @@
|
|
|
377
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#2B394F",
|
|
378
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(255,255,255, 0.08)",
|
|
379
379
|
"euiColorBackgroundBaseInteractiveSelect": "#0D2F5E",
|
|
380
|
-
"euiColorBackgroundBaseInteractiveSelectHover": "#123778",
|
|
381
380
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(43,57,79, 0.7)",
|
|
382
381
|
"euiColorBackgroundBaseSkeletonEdge": "rgba(255,255,255, 0.16)",
|
|
383
382
|
"euiColorBackgroundBaseSkeletonMiddle": "rgba(255,255,255, 0.08)",
|
|
@@ -420,6 +419,5 @@
|
|
|
420
419
|
"euiColorBorderStrongSuccess": "#24C292",
|
|
421
420
|
"euiColorBorderStrongWarning": "#FACB3D",
|
|
422
421
|
"euiColorBorderStrongRisk": "#FC8544",
|
|
423
|
-
"euiColorBorderStrongDanger": "#F6726A"
|
|
424
|
-
"euiColorBorderStrongText": "#8E9FBC"
|
|
422
|
+
"euiColorBorderStrongDanger": "#F6726A"
|
|
425
423
|
}
|
|
@@ -377,7 +377,6 @@
|
|
|
377
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#CAD3E2",
|
|
378
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(23,80,186, 0.04)",
|
|
379
379
|
"euiColorBackgroundBaseInteractiveSelect": "#E8F1FF",
|
|
380
|
-
"euiColorBackgroundBaseInteractiveSelectHover": "#D9E8FF",
|
|
381
380
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(72,89,117, 0.7)",
|
|
382
381
|
"euiColorBackgroundBaseSkeletonEdge": "rgba(72,89,117, 0.16)",
|
|
383
382
|
"euiColorBackgroundBaseSkeletonMiddle": "rgba(72,89,117, 0.04)",
|
|
@@ -420,6 +419,5 @@
|
|
|
420
419
|
"euiColorBorderStrongSuccess": "#09724D",
|
|
421
420
|
"euiColorBorderStrongWarning": "#825803",
|
|
422
421
|
"euiColorBorderStrongRisk": "#9E3A16",
|
|
423
|
-
"euiColorBorderStrongDanger": "#A71627"
|
|
424
|
-
"euiColorBorderStrongText": "#5A6D8C"
|
|
422
|
+
"euiColorBorderStrongDanger": "#A71627"
|
|
425
423
|
}
|
|
@@ -8,7 +8,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
var _excluded = ["schema"],
|
|
10
10
|
_excluded2 = ["onChange"],
|
|
11
|
-
_excluded3 = ["columns", "loading", "message", "
|
|
11
|
+
_excluded3 = ["columns", "loading", "message", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -366,7 +366,6 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
366
366
|
columns = _this$props2.columns,
|
|
367
367
|
loading = _this$props2.loading,
|
|
368
368
|
message = _this$props2.message,
|
|
369
|
-
noItemsMessage = _this$props2.noItemsMessage,
|
|
370
369
|
error = _this$props2.error,
|
|
371
370
|
selection = _this$props2.selection,
|
|
372
371
|
compressed = _this$props2.compressed,
|
|
@@ -428,7 +427,7 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
428
427
|
onChange: this.onTableChange,
|
|
429
428
|
error: error,
|
|
430
429
|
loading: loading,
|
|
431
|
-
noItemsMessage:
|
|
430
|
+
noItemsMessage: message,
|
|
432
431
|
tableLayout: tableLayout,
|
|
433
432
|
compressed: compressed,
|
|
434
433
|
itemIdToExpandedRowMap: itemIdToExpandedRowMap
|
|
@@ -25,7 +25,7 @@ export var euiCodeStyles = function euiCodeStyles(euiThemeContext) {
|
|
|
25
25
|
/*
|
|
26
26
|
* 1. Size the code against the text its embedded within.
|
|
27
27
|
*/
|
|
28
|
-
euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background-color:", codeSyntaxVariables.
|
|
28
|
+
euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background-color:", codeSyntaxVariables.backgroundColor, ";", highContrastModeStyles(euiThemeContext, {
|
|
29
29
|
forced: "\n border: ".concat(euiTheme.border.thin, ";\n ")
|
|
30
30
|
}), " border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, " .token.atrule .token.rule,.token.keyword{color:", codeSyntaxVariables.inlineCodeKeywordColor, ";};label:euiCode;"),
|
|
31
31
|
transparentBackground: _ref
|
|
@@ -26,7 +26,6 @@ export var euiCodeSyntaxVariables = function euiCodeSyntaxVariables(euiThemeCont
|
|
|
26
26
|
return {
|
|
27
27
|
backgroundColor: backgroundColor,
|
|
28
28
|
color: color,
|
|
29
|
-
inlineBackgroundColor: euiTheme.components.codeInlineBackground,
|
|
30
29
|
inlineCodeColor: euiTheme.components.codeInlineColor,
|
|
31
30
|
selectedBackgroundColor: euiTheme.components.codeBackgroundSelected,
|
|
32
31
|
commentColor: euiTheme.components.codeCommentColor,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4
7
|
/*
|
|
5
8
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
9
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -27,17 +30,45 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
27
30
|
export var useDataGridColumnSelector = function useDataGridColumnSelector(availableColumns, columnVisibility, showColumnSelector, displayValues) {
|
|
28
31
|
var allowColumnHiding = getNestedObjectOptions(showColumnSelector, 'allowHide');
|
|
29
32
|
var allowColumnReorder = getNestedObjectOptions(showColumnSelector, 'allowReorder');
|
|
33
|
+
var visibleColumns = columnVisibility.visibleColumns,
|
|
34
|
+
setVisibleColumns = columnVisibility.setVisibleColumns;
|
|
30
35
|
var _useDependentState = useDependentState(function () {
|
|
31
|
-
|
|
36
|
+
var availableColumnIds = availableColumns.map(function (_ref) {
|
|
32
37
|
var id = _ref.id;
|
|
33
38
|
return id;
|
|
34
39
|
});
|
|
40
|
+
var availableSet = new Set(availableColumnIds);
|
|
41
|
+
// Filter visibleColumns to only include existing columns
|
|
42
|
+
var validVisibleColumns = visibleColumns.filter(function (id) {
|
|
43
|
+
return availableSet.has(id);
|
|
44
|
+
});
|
|
45
|
+
var visibleSet = new Set(validVisibleColumns);
|
|
46
|
+
var result = [];
|
|
47
|
+
var visibleIndex = 0;
|
|
48
|
+
var _iterator = _createForOfIteratorHelper(availableColumnIds),
|
|
49
|
+
_step;
|
|
50
|
+
try {
|
|
51
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
52
|
+
var columnId = _step.value;
|
|
53
|
+
if (visibleSet.has(columnId)) {
|
|
54
|
+
// Replace with next visible column in order
|
|
55
|
+
result.push(validVisibleColumns[visibleIndex++]);
|
|
56
|
+
} else {
|
|
57
|
+
// Keep hidden column in original position
|
|
58
|
+
result.push(columnId);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
} catch (err) {
|
|
62
|
+
_iterator.e(err);
|
|
63
|
+
} finally {
|
|
64
|
+
_iterator.f();
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
// doesn't depend on visibleColumns on purpose to keep it an initial state
|
|
35
68
|
}, [availableColumns]),
|
|
36
69
|
_useDependentState2 = _slicedToArray(_useDependentState, 2),
|
|
37
70
|
sortedColumns = _useDependentState2[0],
|
|
38
71
|
setSortedColumns = _useDependentState2[1];
|
|
39
|
-
var visibleColumns = columnVisibility.visibleColumns,
|
|
40
|
-
setVisibleColumns = columnVisibility.setVisibleColumns;
|
|
41
72
|
var visibleColumnIds = useMemo(function () {
|
|
42
73
|
return new Set(visibleColumns);
|
|
43
74
|
}, [visibleColumns]);
|
|
@@ -52,7 +52,6 @@ var unsupportedProps = [
|
|
|
52
52
|
// An internal EUI styling concern that consumers shouldn't need to access
|
|
53
53
|
'defaultInputProps'];
|
|
54
54
|
export var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
55
|
-
var _selected$isValid;
|
|
56
55
|
var _ref$adjustDateOnChan = _ref.adjustDateOnChange,
|
|
57
56
|
adjustDateOnChange = _ref$adjustDateOnChan === void 0 ? true : _ref$adjustDateOnChan,
|
|
58
57
|
append = _ref.append,
|
|
@@ -104,7 +103,7 @@ export var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
104
103
|
utcOffset = _ref.utcOffset,
|
|
105
104
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
106
105
|
// Check for whether the passed `selected` moment date is valid
|
|
107
|
-
var isInvalid = _isInvalid || ((selected === null || selected === void 0
|
|
106
|
+
var isInvalid = _isInvalid || ((selected === null || selected === void 0 ? void 0 : selected.isValid()) === false ? true : undefined);
|
|
108
107
|
var styles = useEuiMemoizedStyles(euiDatePickerStyles);
|
|
109
108
|
var cssStyles = [styles.euiDatePicker].concat(_toConsumableArray(inline ? [styles.inline.inline, isInvalid && !(disabled || readOnly) && styles.inline.invalid, shadow ? styles.inline.shadow : styles.inline.noShadow, disabled && styles.inline.disabled, readOnly && styles.inline.readOnly] : []));
|
|
110
109
|
var calendarStyles = useEuiMemoizedStyles(euiReactDatePickerStyles);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "startDateControl", "endDateControl", "iconType", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend"
|
|
3
|
+
var _excluded = ["children", "className", "startDateControl", "endDateControl", "iconType", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -36,7 +36,6 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
36
36
|
_onBlur = _ref.onBlur,
|
|
37
37
|
append = _ref.append,
|
|
38
38
|
prepend = _ref.prepend,
|
|
39
|
-
delimiter = _ref.delimiter,
|
|
40
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
40
|
// `fullWidth` and `compressed` should not affect inline datepickers (matches non-range behavior)
|
|
42
41
|
var fullWidth = _fullWidth && !inline;
|
|
@@ -45,50 +44,50 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
45
44
|
var inlineStyles = useEuiMemoizedStyles(euiDatePickerRangeInlineStyles);
|
|
46
45
|
var cssStyles = !inline ? styles.euiDatePickerRange : [inlineStyles.euiDatePickerRangeInline,
|
|
47
46
|
// Determine the inline container query to use based on the width of the react-datepicker
|
|
48
|
-
startDateControl
|
|
47
|
+
startDateControl.props.showTimeSelect || endDateControl.props.showTimeSelect ? inlineStyles.responsiveWithTimeSelect : inlineStyles.responsive, shadow && inlineStyles.shadow];
|
|
49
48
|
var startControl = startDateControl;
|
|
50
49
|
var endControl = endDateControl;
|
|
51
50
|
if (!isCustom) {
|
|
52
|
-
startControl =
|
|
51
|
+
startControl = /*#__PURE__*/cloneElement(startDateControl, {
|
|
53
52
|
controlOnly: true,
|
|
54
53
|
showIcon: false,
|
|
55
54
|
inline: inline,
|
|
56
55
|
compressed: compressed,
|
|
57
56
|
fullWidth: fullWidth,
|
|
58
57
|
readOnly: readOnly,
|
|
59
|
-
disabled: disabled ||
|
|
60
|
-
isInvalid: isInvalid ||
|
|
61
|
-
className: classNames('euiDatePickerRange__start', startDateControl
|
|
58
|
+
disabled: disabled || startDateControl.props.disabled,
|
|
59
|
+
isInvalid: isInvalid || startDateControl.props.isInvalid,
|
|
60
|
+
className: classNames('euiDatePickerRange__start', startDateControl.props.className),
|
|
62
61
|
onBlur: function onBlur(event) {
|
|
63
62
|
var _startDateControl$pro, _startDateControl$pro2;
|
|
64
|
-
|
|
63
|
+
(_startDateControl$pro = startDateControl.props) === null || _startDateControl$pro === void 0 || (_startDateControl$pro2 = _startDateControl$pro.onBlur) === null || _startDateControl$pro2 === void 0 || _startDateControl$pro2.call(_startDateControl$pro, event);
|
|
65
64
|
_onBlur === null || _onBlur === void 0 || _onBlur(event);
|
|
66
65
|
},
|
|
67
66
|
onFocus: function onFocus(event) {
|
|
68
67
|
var _startDateControl$pro3, _startDateControl$pro4;
|
|
69
|
-
|
|
68
|
+
(_startDateControl$pro3 = startDateControl.props) === null || _startDateControl$pro3 === void 0 || (_startDateControl$pro4 = _startDateControl$pro3.onFocus) === null || _startDateControl$pro4 === void 0 || _startDateControl$pro4.call(_startDateControl$pro3, event);
|
|
70
69
|
_onFocus === null || _onFocus === void 0 || _onFocus(event);
|
|
71
70
|
}
|
|
72
71
|
});
|
|
73
|
-
endControl =
|
|
72
|
+
endControl = /*#__PURE__*/cloneElement(endDateControl, {
|
|
74
73
|
controlOnly: true,
|
|
75
74
|
showIcon: false,
|
|
76
75
|
inline: inline,
|
|
77
76
|
compressed: compressed,
|
|
78
77
|
fullWidth: fullWidth,
|
|
79
78
|
readOnly: readOnly,
|
|
80
|
-
disabled: disabled ||
|
|
81
|
-
isInvalid: isInvalid ||
|
|
79
|
+
disabled: disabled || endDateControl.props.disabled,
|
|
80
|
+
isInvalid: isInvalid || endDateControl.props.isInvalid,
|
|
82
81
|
popoverPlacement: 'downRight',
|
|
83
|
-
className: classNames('euiDatePickerRange__end', endDateControl
|
|
82
|
+
className: classNames('euiDatePickerRange__end', endDateControl.props.className),
|
|
84
83
|
onBlur: function onBlur(event) {
|
|
85
84
|
var _endDateControl$props, _endDateControl$props2;
|
|
86
|
-
|
|
85
|
+
(_endDateControl$props = endDateControl.props) === null || _endDateControl$props === void 0 || (_endDateControl$props2 = _endDateControl$props.onBlur) === null || _endDateControl$props2 === void 0 || _endDateControl$props2.call(_endDateControl$props, event);
|
|
87
86
|
_onBlur === null || _onBlur === void 0 || _onBlur(event);
|
|
88
87
|
},
|
|
89
88
|
onFocus: function onFocus(event) {
|
|
90
89
|
var _endDateControl$props3, _endDateControl$props4;
|
|
91
|
-
|
|
90
|
+
(_endDateControl$props3 = endDateControl.props) === null || _endDateControl$props3 === void 0 || (_endDateControl$props4 = _endDateControl$props3.onFocus) === null || _endDateControl$props4 === void 0 || _endDateControl$props4.call(_endDateControl$props3, event);
|
|
92
91
|
_onFocus === null || _onFocus === void 0 || _onFocus(event);
|
|
93
92
|
}
|
|
94
93
|
});
|
|
@@ -103,7 +102,6 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
103
102
|
className: classes,
|
|
104
103
|
css: cssStyles
|
|
105
104
|
}, rest), ___EmotionJSX(EuiFormControlLayoutDelimited, {
|
|
106
|
-
delimiter: delimiter,
|
|
107
105
|
icon: icon,
|
|
108
106
|
startControl: startControl,
|
|
109
107
|
endControl: endControl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -288,9 +288,14 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
288
288
|
fullWidth: true,
|
|
289
289
|
css: [styles.states.euiSuperDatePicker__formControlLayout, isDisabled ? styles.states.disabled : isInvalid ? styles.states.invalid : hasChanged ? styles.states.needsUpdating : styles.states.default]
|
|
290
290
|
};
|
|
291
|
+
if (isQuickSelectOnly) {
|
|
292
|
+
return ___EmotionJSX(EuiFormControlLayout, _extends({
|
|
293
|
+
iconsPosition: "static"
|
|
294
|
+
}, formControlLayoutProps));
|
|
295
|
+
}
|
|
291
296
|
var isDisabledDisplay = isObject(isDisabled) && (isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled.display);
|
|
292
297
|
if (isDisabledDisplay || showPrettyDuration && !isStartDatePopoverOpen && !isEndDatePopoverOpen) {
|
|
293
|
-
return ___EmotionJSX(EuiFormControlLayout, formControlLayoutProps,
|
|
298
|
+
return ___EmotionJSX(EuiFormControlLayout, formControlLayoutProps, ___EmotionJSX("button", {
|
|
294
299
|
type: "button",
|
|
295
300
|
css: styles.euiSuperDatePicker__prettyFormat,
|
|
296
301
|
className: classNames('euiSuperDatePicker__prettyFormat', {
|
|
@@ -321,8 +326,7 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
321
326
|
css: rangeCssStyles,
|
|
322
327
|
isCustom: true,
|
|
323
328
|
iconType: false,
|
|
324
|
-
|
|
325
|
-
startDateControl: isQuickSelectOnly ? undefined : ___EmotionJSX(EuiDatePopoverButton, {
|
|
329
|
+
startDateControl: ___EmotionJSX(EuiDatePopoverButton, {
|
|
326
330
|
css: styles.euiSuperDatePicker__rangeInput,
|
|
327
331
|
className: "euiSuperDatePicker__startPopoverButton",
|
|
328
332
|
compressed: compressed,
|
|
@@ -347,7 +351,7 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
347
351
|
onFocus: onFocus
|
|
348
352
|
}
|
|
349
353
|
}),
|
|
350
|
-
endDateControl:
|
|
354
|
+
endDateControl: ___EmotionJSX(EuiDatePopoverButton, {
|
|
351
355
|
css: styles.euiSuperDatePicker__rangeInput,
|
|
352
356
|
position: "end",
|
|
353
357
|
compressed: compressed,
|
|
@@ -57,10 +57,10 @@ export var EuiFormControlLayoutDelimited = function EuiFormControlLayoutDelimite
|
|
|
57
57
|
value: {
|
|
58
58
|
defaultFullWidth: fullWidth
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, addClassesToControl(startControl), ___EmotionJSX(EuiFormControlDelimiter, {
|
|
61
61
|
delimiter: delimiter,
|
|
62
62
|
isInvalid: showInvalidState
|
|
63
|
-
}),
|
|
63
|
+
}), addClassesToControl(endControl)));
|
|
64
64
|
};
|
|
65
65
|
var addClassesToControl = function addClassesToControl(control) {
|
|
66
66
|
return cloneElementWithCss(control, {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeAmsterdam } from '../../themes';
|
|
11
11
|
import { EuiThemeProvider } from '../../services';
|
|
12
12
|
import { emitEuiProviderWarning } from '../../services/theme/warning';
|
|
13
13
|
import { cache as fallbackCache } from '../../services/emotion/css';
|
|
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
|
|
|
26
26
|
var _ref$cache = _ref.cache,
|
|
27
27
|
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
28
28
|
_ref$theme = _ref.theme,
|
|
29
|
-
theme = _ref$theme === void 0 ?
|
|
29
|
+
theme = _ref$theme === void 0 ? EuiThemeAmsterdam : _ref$theme,
|
|
30
30
|
_ref$globalStyles = _ref.globalStyles,
|
|
31
31
|
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
32
32
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
10
|
-
import { colorVis } from '
|
|
10
|
+
import { colorVisLight as colorVis } from '../../themes/amsterdam/global_styling/variables/_colors_vis_light';
|
|
11
11
|
|
|
12
12
|
// initialsetup of Vis color storage with default colors
|
|
13
13
|
export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeAmsterdam } from '../../themes/amsterdam/theme';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeAmsterdam,
|
|
14
14
|
modifications: {},
|
|
15
15
|
colorMode: DEFAULT_COLOR_MODE,
|
|
16
16
|
highContrastMode: false
|