@elastic/eui 91.3.0 → 92.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +0 -513
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -513
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +25 -22
- package/es/components/basic_table/collapsed_item_actions.js +14 -15
- package/es/components/basic_table/expanded_item_actions.js +4 -4
- package/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/es/components/filter_group/filter_button.js +20 -13
- package/es/components/filter_group/filter_button.styles.js +11 -20
- package/es/components/flyout/flyout.js +4 -4
- package/es/components/flyout/flyout_resizable.js +127 -0
- package/es/components/flyout/flyout_resizable.styles.js +27 -0
- package/es/components/flyout/index.js +2 -1
- package/es/components/form/range/dual_range.js +15 -66
- package/es/components/form/range/range.js +6 -5
- package/es/components/form/range/range_slider.js +28 -22
- package/es/components/form/text_area/text_area.js +39 -3
- package/es/components/index.js +0 -2
- package/es/components/markdown_editor/markdown_editor.js +12 -13
- package/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -0
- package/es/components/tree_view/tree_view.js +23 -25
- package/es/utils/prop_types/is.js +2 -2
- package/eui.d.ts +830 -1145
- package/i18ntokens.json +121 -373
- package/lib/components/basic_table/basic_table.js +25 -22
- package/lib/components/basic_table/collapsed_item_actions.js +14 -15
- package/lib/components/basic_table/expanded_item_actions.js +4 -4
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/lib/components/filter_group/filter_button.js +20 -13
- package/lib/components/filter_group/filter_button.styles.js +11 -20
- package/lib/components/flyout/flyout.js +4 -4
- package/lib/components/flyout/flyout_resizable.js +136 -0
- package/lib/components/flyout/flyout_resizable.styles.js +32 -0
- package/lib/components/flyout/index.js +8 -1
- package/lib/components/form/range/dual_range.js +15 -66
- package/lib/components/form/range/range.js +6 -5
- package/lib/components/form/range/range_slider.js +27 -21
- package/lib/components/form/text_area/text_area.js +42 -3
- package/lib/components/index.js +0 -22
- package/lib/components/markdown_editor/markdown_editor.js +12 -13
- package/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/lib/components/pagination/pagination_button.js +79 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/tree_view/tree_view.js +23 -25
- package/lib/utils/prop_types/is.js +2 -2
- package/optimize/es/components/basic_table/basic_table.js +25 -22
- package/optimize/es/components/basic_table/collapsed_item_actions.js +14 -15
- package/optimize/es/components/basic_table/expanded_item_actions.js +4 -4
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/optimize/es/components/filter_group/filter_button.js +20 -13
- package/optimize/es/components/filter_group/filter_button.styles.js +11 -20
- package/optimize/es/components/flyout/flyout.js +4 -4
- package/optimize/es/components/flyout/flyout_resizable.js +121 -0
- package/optimize/es/components/flyout/flyout_resizable.styles.js +27 -0
- package/optimize/es/components/flyout/index.js +2 -1
- package/optimize/es/components/form/range/dual_range.js +15 -66
- package/optimize/es/components/form/range/range.js +6 -5
- package/optimize/es/components/form/range/range_slider.js +26 -21
- package/optimize/es/components/form/text_area/text_area.js +29 -3
- package/optimize/es/components/index.js +0 -2
- package/optimize/es/components/markdown_editor/markdown_editor.js +12 -13
- package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/es/components/tree_view/tree_view.js +23 -25
- package/optimize/es/utils/prop_types/is.js +2 -2
- package/optimize/lib/components/basic_table/basic_table.js +25 -22
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +14 -15
- package/optimize/lib/components/basic_table/expanded_item_actions.js +4 -4
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/optimize/lib/components/filter_group/filter_button.js +20 -13
- package/optimize/lib/components/filter_group/filter_button.styles.js +11 -20
- package/optimize/lib/components/flyout/flyout.js +4 -4
- package/optimize/lib/components/flyout/flyout_resizable.js +131 -0
- package/optimize/lib/components/flyout/flyout_resizable.styles.js +32 -0
- package/optimize/lib/components/flyout/index.js +8 -1
- package/optimize/lib/components/form/range/dual_range.js +15 -66
- package/optimize/lib/components/form/range/range.js +6 -5
- package/optimize/lib/components/form/range/range_slider.js +26 -21
- package/optimize/lib/components/form/text_area/text_area.js +32 -3
- package/optimize/lib/components/index.js +0 -22
- package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -13
- package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/lib/components/tree_view/tree_view.js +23 -25
- package/optimize/lib/utils/prop_types/is.js +2 -2
- package/package.json +3 -5
- package/src/components/index.scss +0 -2
- package/test-env/components/basic_table/basic_table.js +25 -22
- package/test-env/components/basic_table/collapsed_item_actions.js +14 -15
- package/test-env/components/basic_table/expanded_item_actions.js +4 -4
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/test-env/components/filter_group/filter_button.js +20 -13
- package/test-env/components/filter_group/filter_button.styles.js +11 -20
- package/test-env/components/flyout/flyout_resizable.js +131 -0
- package/test-env/components/flyout/flyout_resizable.styles.js +32 -0
- package/test-env/components/flyout/index.js +8 -1
- package/test-env/components/form/range/dual_range.js +15 -66
- package/test-env/components/form/range/range.js +6 -5
- package/test-env/components/form/range/range_slider.js +27 -21
- package/test-env/components/form/text_area/text_area.js +42 -3
- package/test-env/components/index.js +0 -22
- package/test-env/components/markdown_editor/markdown_editor.js +12 -13
- package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/test-env/components/pagination/pagination_button.js +79 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/tree_view/tree_view.js +23 -25
- package/test-env/utils/prop_types/is.js +2 -2
- package/es/components/control_bar/control_bar.a11y.js +0 -133
- package/es/components/control_bar/control_bar.js +0 -609
- package/es/components/control_bar/index.js +0 -9
- package/es/components/notification/index.js +0 -9
- package/es/components/notification/notification_event.a11y.js +0 -104
- package/es/components/notification/notification_event.js +0 -288
- package/es/components/notification/notification_event_messages.js +0 -79
- package/es/components/notification/notification_event_meta.js +0 -148
- package/es/components/notification/notification_event_read_button.js +0 -86
- package/es/components/notification/notification_event_read_icon.js +0 -77
- package/lib/components/control_bar/control_bar.a11y.js +0 -134
- package/lib/components/control_bar/control_bar.js +0 -441
- package/lib/components/control_bar/index.js +0 -12
- package/lib/components/notification/index.js +0 -12
- package/lib/components/notification/notification_event.a11y.js +0 -105
- package/lib/components/notification/notification_event.js +0 -297
- package/lib/components/notification/notification_event_messages.js +0 -88
- package/lib/components/notification/notification_event_meta.js +0 -157
- package/lib/components/notification/notification_event_read_button.js +0 -93
- package/lib/components/notification/notification_event_read_icon.js +0 -64
- package/optimize/es/components/control_bar/control_bar.a11y.js +0 -128
- package/optimize/es/components/control_bar/control_bar.js +0 -308
- package/optimize/es/components/control_bar/index.js +0 -9
- package/optimize/es/components/notification/index.js +0 -9
- package/optimize/es/components/notification/notification_event.a11y.js +0 -99
- package/optimize/es/components/notification/notification_event.js +0 -114
- package/optimize/es/components/notification/notification_event_messages.js +0 -63
- package/optimize/es/components/notification/notification_event_meta.js +0 -106
- package/optimize/es/components/notification/notification_event_read_button.js +0 -44
- package/optimize/es/components/notification/notification_event_read_icon.js +0 -44
- package/optimize/lib/components/control_bar/control_bar.a11y.js +0 -134
- package/optimize/lib/components/control_bar/control_bar.js +0 -301
- package/optimize/lib/components/control_bar/index.js +0 -12
- package/optimize/lib/components/notification/index.js +0 -12
- package/optimize/lib/components/notification/notification_event.a11y.js +0 -105
- package/optimize/lib/components/notification/notification_event.js +0 -123
- package/optimize/lib/components/notification/notification_event_messages.js +0 -74
- package/optimize/lib/components/notification/notification_event_meta.js +0 -117
- package/optimize/lib/components/notification/notification_event_read_button.js +0 -51
- package/optimize/lib/components/notification/notification_event_read_icon.js +0 -51
- package/src/components/control_bar/_control_bar.scss +0 -232
- package/src/components/control_bar/_index.scss +0 -2
- package/src/components/control_bar/_variables.scss +0 -12
- package/src/components/notification/_index.scss +0 -5
- package/src/components/notification/_notification_event.scss +0 -40
- package/src/components/notification/_notification_event_messages.scss +0 -17
- package/src/components/notification/_notification_event_meta.scss +0 -44
- package/src/components/notification/_notification_event_read_button.scss +0 -5
- package/src/components/notification/_notification_event_read_icon.scss +0 -12
- package/test-env/components/control_bar/control_bar.a11y.js +0 -134
- package/test-env/components/control_bar/control_bar.js +0 -436
- package/test-env/components/control_bar/index.js +0 -12
- package/test-env/components/notification/index.js +0 -12
- package/test-env/components/notification/notification_event.a11y.js +0 -105
- package/test-env/components/notification/notification_event.js +0 -296
- package/test-env/components/notification/notification_event_messages.js +0 -85
- package/test-env/components/notification/notification_event_meta.js +0 -154
- package/test-env/components/notification/notification_event_read_button.js +0 -92
- package/test-env/components/notification/notification_event_read_icon.js +0 -63
|
@@ -10,4 +10,5 @@ export { EuiFlyout } from './flyout';
|
|
|
10
10
|
export { EuiFlyoutBody } from './flyout_body';
|
|
11
11
|
export { EuiFlyoutFooter } from './flyout_footer';
|
|
12
12
|
export { EuiFlyoutHeader } from './flyout_header';
|
|
13
|
-
export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from './flyout.styles';
|
|
13
|
+
export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from './flyout.styles';
|
|
14
|
+
export { EuiFlyoutResizable } from './flyout_resizable';
|
|
@@ -54,38 +54,10 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
54
54
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
56
56
|
id: _this.props.id || htmlIdGenerator()(),
|
|
57
|
-
rangeSliderRefAvailable: false,
|
|
58
57
|
isPopoverOpen: false,
|
|
59
|
-
rangeWidth: 0
|
|
60
|
-
isVisible: true // used to trigger a rerender if initial element width is 0
|
|
58
|
+
rangeWidth: 0
|
|
61
59
|
});
|
|
62
60
|
_defineProperty(_assertThisInitialized(_this), "preventPopoverClose", false);
|
|
63
|
-
_defineProperty(_assertThisInitialized(_this), "rangeSliderRef", null);
|
|
64
|
-
_defineProperty(_assertThisInitialized(_this), "handleRangeSliderRefUpdate", function (ref) {
|
|
65
|
-
_this.rangeSliderRef = ref;
|
|
66
|
-
if (ref) {
|
|
67
|
-
if (_this.isInPopover) {
|
|
68
|
-
// Wait a tick for popover rendering to settle
|
|
69
|
-
requestAnimationFrame(function () {
|
|
70
|
-
_this.setState({
|
|
71
|
-
rangeSliderRefAvailable: true,
|
|
72
|
-
rangeWidth: ref.clientWidth
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
} else {
|
|
76
|
-
// If not in a popover, no need to wait
|
|
77
|
-
_this.setState({
|
|
78
|
-
rangeSliderRefAvailable: true,
|
|
79
|
-
rangeWidth: ref.clientWidth
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
} else {
|
|
83
|
-
_this.setState({
|
|
84
|
-
rangeSliderRefAvailable: false,
|
|
85
|
-
rangeWidth: 0
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
61
|
_defineProperty(_assertThisInitialized(_this), "leftPosition", 0);
|
|
90
62
|
_defineProperty(_assertThisInitialized(_this), "dragAcc", 0);
|
|
91
63
|
_defineProperty(_assertThisInitialized(_this), "_determineInvalidThumbMovement", function (newVal, lower, upper, e) {
|
|
@@ -276,14 +248,11 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
276
248
|
isPopoverOpen: false
|
|
277
249
|
});
|
|
278
250
|
});
|
|
279
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
(_this$props$inputPopo = _this.props.inputPopoverProps) === null || _this$props$inputPopo === void 0 ? void 0 : (_this$props$inputPopo2 = _this$props$inputPopo.onPanelResize) === null || _this$props$inputPopo2 === void 0 ? void 0 : _this$props$inputPopo2.call(_this$props$inputPopo, width);
|
|
251
|
+
_defineProperty(_assertThisInitialized(_this), "setRangeWidth", function (_ref) {
|
|
252
|
+
var width = _ref.width;
|
|
253
|
+
_this.setState({
|
|
254
|
+
rangeWidth: width
|
|
255
|
+
});
|
|
287
256
|
});
|
|
288
257
|
_defineProperty(_assertThisInitialized(_this), "getNearestStep", function (value) {
|
|
289
258
|
var min = _this.props.min;
|
|
@@ -306,7 +275,7 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
306
275
|
var delta = _this.leftPosition - x;
|
|
307
276
|
_this.leftPosition = x;
|
|
308
277
|
_this.dragAcc = _this.dragAcc + delta;
|
|
309
|
-
var percentageOfArea = _this.dragAcc / _this.
|
|
278
|
+
var percentageOfArea = _this.dragAcc / _this.state.rangeWidth;
|
|
310
279
|
var percentageOfRange = percentageOfArea * (max - min);
|
|
311
280
|
var newLower = _this.getNearestStep(lowerValue - percentageOfRange);
|
|
312
281
|
var newUpper = _this.getNearestStep(upperValue - percentageOfRange);
|
|
@@ -350,32 +319,12 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
350
319
|
get: function get() {
|
|
351
320
|
return this.lowerValueIsValid && this.upperValueIsValid;
|
|
352
321
|
}
|
|
353
|
-
}, {
|
|
354
|
-
key: "componentDidMount",
|
|
355
|
-
value: function componentDidMount() {
|
|
356
|
-
var _this$rangeSliderRef;
|
|
357
|
-
if (((_this$rangeSliderRef = this.rangeSliderRef) === null || _this$rangeSliderRef === void 0 ? void 0 : _this$rangeSliderRef.clientWidth) === 0) {
|
|
358
|
-
this.setState({
|
|
359
|
-
isVisible: false
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
key: "componentDidUpdate",
|
|
365
|
-
value: function componentDidUpdate() {
|
|
366
|
-
var _this$rangeSliderRef2;
|
|
367
|
-
if ((_this$rangeSliderRef2 = this.rangeSliderRef) !== null && _this$rangeSliderRef2 !== void 0 && _this$rangeSliderRef2.clientWidth && !this.state.isVisible) {
|
|
368
|
-
this.setState({
|
|
369
|
-
isVisible: true
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
322
|
}, {
|
|
374
323
|
key: "render",
|
|
375
324
|
value: function render() {
|
|
376
325
|
var _this2 = this;
|
|
377
|
-
var
|
|
378
|
-
defaultFullWidth =
|
|
326
|
+
var _ref2 = this.context,
|
|
327
|
+
defaultFullWidth = _ref2.defaultFullWidth;
|
|
379
328
|
var _this$props = this.props,
|
|
380
329
|
className = _this$props.className,
|
|
381
330
|
customCss = _this$props.css,
|
|
@@ -531,10 +480,10 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
531
480
|
var classes = classNames('euiDualRange', className);
|
|
532
481
|
var dualRangeStyles = euiDualRangeStyles();
|
|
533
482
|
var cssStyles = [dualRangeStyles.euiDualRange, customCss];
|
|
534
|
-
var leftThumbPosition = this.state.
|
|
483
|
+
var leftThumbPosition = this.state.rangeWidth ? this.calculateThumbPositionStyle(Number(this.lowerValue) || min, this.state.rangeWidth) : {
|
|
535
484
|
left: '0'
|
|
536
485
|
};
|
|
537
|
-
var rightThumbPosition = this.state.
|
|
486
|
+
var rightThumbPosition = this.state.rangeWidth ? this.calculateThumbPositionStyle(Number(this.upperValue) || max, this.state.rangeWidth) : {
|
|
538
487
|
left: '0'
|
|
539
488
|
};
|
|
540
489
|
var leftThumbColor = levels && getLevelColor(levels, Number(this.lowerValue));
|
|
@@ -578,7 +527,6 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
578
527
|
}, ___EmotionJSX(EuiRangeSlider, _extends({
|
|
579
528
|
className: "euiDualRange__slider",
|
|
580
529
|
css: dualRangeStyles.euiDualRange__slider,
|
|
581
|
-
ref: this.handleRangeSliderRefUpdate,
|
|
582
530
|
id: id,
|
|
583
531
|
name: name,
|
|
584
532
|
min: min,
|
|
@@ -592,7 +540,9 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
592
540
|
showRange: showRange,
|
|
593
541
|
onFocus: _onFocus,
|
|
594
542
|
onBlur: _onBlur
|
|
595
|
-
}, rest
|
|
543
|
+
}, rest, {
|
|
544
|
+
onResize: this.setRangeWidth
|
|
545
|
+
})), isDraggable && this.isValid && ___EmotionJSX(EuiRangeDraggable, {
|
|
596
546
|
min: min,
|
|
597
547
|
max: max,
|
|
598
548
|
value: [this.lowerValue, this.upperValue],
|
|
@@ -632,7 +582,7 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
632
582
|
style: logicalStyles(rightThumbStyles),
|
|
633
583
|
"aria-describedby": showInputOnly ? undefined : this.props['aria-describedby'],
|
|
634
584
|
"aria-label": showInputOnly ? undefined : this.props['aria-label']
|
|
635
|
-
})
|
|
585
|
+
}), showRange && this.isValid && ___EmotionJSX(EuiRangeHighlight, {
|
|
636
586
|
showTicks: showTicks,
|
|
637
587
|
min: Number(min),
|
|
638
588
|
max: Number(max),
|
|
@@ -664,7 +614,6 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
664
614
|
isOpen: this.state.isPopoverOpen,
|
|
665
615
|
closePopover: this.closePopover,
|
|
666
616
|
disableFocusTrap: true,
|
|
667
|
-
onPanelResize: this.onResize,
|
|
668
617
|
popoverScreenReaderText: dualSliderScreenReaderInstructions
|
|
669
618
|
}), theRange) : undefined;
|
|
670
619
|
return thePopover || theRange;
|
|
@@ -57,9 +57,10 @@ export var EuiRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
57
57
|
_this.props.onChange(e, isValid);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
60
|
+
_defineProperty(_assertThisInitialized(_this), "setTrackWidth", function (_ref) {
|
|
61
|
+
var width = _ref.width;
|
|
61
62
|
_this.setState({
|
|
62
|
-
trackWidth:
|
|
63
|
+
trackWidth: width
|
|
63
64
|
});
|
|
64
65
|
});
|
|
65
66
|
_defineProperty(_assertThisInitialized(_this), "onInputFocus", function (e) {
|
|
@@ -103,8 +104,8 @@ export var EuiRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
103
104
|
key: "render",
|
|
104
105
|
value: function render() {
|
|
105
106
|
var _this2 = this;
|
|
106
|
-
var
|
|
107
|
-
defaultFullWidth =
|
|
107
|
+
var _ref2 = this.context,
|
|
108
|
+
defaultFullWidth = _ref2.defaultFullWidth;
|
|
108
109
|
var _this$props = this.props,
|
|
109
110
|
className = _this$props.className,
|
|
110
111
|
compressed = _this$props.compressed,
|
|
@@ -210,7 +211,7 @@ export var EuiRangeClass = /*#__PURE__*/function (_Component) {
|
|
|
210
211
|
"aria-hidden": !!showInput,
|
|
211
212
|
thumbColor: thumbColor
|
|
212
213
|
}, rest, {
|
|
213
|
-
|
|
214
|
+
onResize: this.setTrackWidth
|
|
214
215
|
})), showRange && this.isValid && ___EmotionJSX(EuiRangeHighlight, {
|
|
215
216
|
showTicks: showTicks,
|
|
216
217
|
min: Number(min),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["className", "disabled", "id", "max", "min", "name", "step", "onChange", "tabIndex", "value", "style", "showTicks", "showRange", "thumbColor"];
|
|
4
|
+
var _excluded = ["className", "disabled", "id", "max", "min", "name", "step", "onChange", "tabIndex", "value", "style", "showTicks", "showRange", "thumbColor", "onResize"];
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
/*
|
|
@@ -12,14 +12,15 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
* Side Public License, v 1.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import React, {
|
|
15
|
+
import React, { useMemo } from 'react';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { useEuiTheme } from '../../../services';
|
|
18
18
|
import { logicalStyles } from '../../../global_styling';
|
|
19
|
+
import { EuiResizeObserver } from '../../observer/resize_observer';
|
|
19
20
|
import { euiRangeLevelColor } from './range_levels_colors';
|
|
20
21
|
import { euiRangeSliderStyles, euiRangeSliderThumbStyles } from './range_slider.styles';
|
|
21
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
|
-
export var EuiRangeSlider =
|
|
23
|
+
export var EuiRangeSlider = function EuiRangeSlider(_ref) {
|
|
23
24
|
var className = _ref.className,
|
|
24
25
|
disabled = _ref.disabled,
|
|
25
26
|
id = _ref.id,
|
|
@@ -34,6 +35,7 @@ export var EuiRangeSlider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
34
35
|
showTicks = _ref.showTicks,
|
|
35
36
|
showRange = _ref.showRange,
|
|
36
37
|
thumbColor = _ref.thumbColor,
|
|
38
|
+
onResize = _ref.onResize,
|
|
37
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
40
|
var classes = classNames('euiRangeSlider', className);
|
|
39
41
|
var euiTheme = useEuiTheme();
|
|
@@ -45,21 +47,24 @@ export var EuiRangeSlider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
45
47
|
color: thumbColor && euiRangeLevelColor(thumbColor, euiTheme.euiTheme)
|
|
46
48
|
}, style));
|
|
47
49
|
}, [thumbColor, euiTheme, style]);
|
|
48
|
-
return ___EmotionJSX(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
return ___EmotionJSX(EuiResizeObserver, {
|
|
51
|
+
onResize: onResize
|
|
52
|
+
}, function (resizeRef) {
|
|
53
|
+
return ___EmotionJSX("input", _extends({
|
|
54
|
+
ref: resizeRef,
|
|
55
|
+
type: "range",
|
|
56
|
+
id: id,
|
|
57
|
+
name: name,
|
|
58
|
+
className: classes,
|
|
59
|
+
css: cssStyles,
|
|
60
|
+
min: min,
|
|
61
|
+
max: max,
|
|
62
|
+
step: step,
|
|
63
|
+
value: value,
|
|
64
|
+
disabled: disabled,
|
|
65
|
+
onChange: onChange,
|
|
66
|
+
style: sliderStyle,
|
|
67
|
+
tabIndex: tabIndex
|
|
68
|
+
}, rest));
|
|
69
|
+
});
|
|
70
|
+
};
|
|
@@ -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", "compressed", "fullWidth", "id", "inputRef", "isLoading", "isInvalid", "name", "placeholder", "resize", "rows"];
|
|
3
|
+
var _excluded = ["children", "className", "compressed", "fullWidth", "id", "icon", "inputRef", "isLoading", "isInvalid", "isClearable", "name", "placeholder", "resize", "rows"];
|
|
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
|
|
@@ -9,8 +9,9 @@ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inpu
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import React from 'react';
|
|
12
|
+
import React, { useRef, useMemo } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
+
import { useCombinedRefs } from '../../../services';
|
|
14
15
|
import { EuiFormControlLayout } from '../form_control_layout';
|
|
15
16
|
import { EuiValidatableControl } from '../validatable_control';
|
|
16
17
|
import { useFormContext } from '../eui_form_context';
|
|
@@ -31,9 +32,11 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
31
32
|
_props$fullWidth = props.fullWidth,
|
|
32
33
|
fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
|
|
33
34
|
id = props.id,
|
|
35
|
+
icon = props.icon,
|
|
34
36
|
inputRef = props.inputRef,
|
|
35
37
|
isLoading = props.isLoading,
|
|
36
38
|
isInvalid = props.isInvalid,
|
|
39
|
+
isClearable = props.isClearable,
|
|
37
40
|
name = props.name,
|
|
38
41
|
placeholder = props.placeholder,
|
|
39
42
|
_props$resize = props.resize,
|
|
@@ -52,10 +55,33 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
52
55
|
} else {
|
|
53
56
|
definedRows = 6;
|
|
54
57
|
}
|
|
58
|
+
var ref = useRef(null);
|
|
59
|
+
var refs = useCombinedRefs([ref, inputRef]);
|
|
60
|
+
var clear = useMemo(function () {
|
|
61
|
+
if (isClearable) {
|
|
62
|
+
return {
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
if (ref.current) {
|
|
65
|
+
ref.current.value = '';
|
|
66
|
+
var event = new Event('input', {
|
|
67
|
+
bubbles: true,
|
|
68
|
+
cancelable: false
|
|
69
|
+
});
|
|
70
|
+
ref.current.dispatchEvent(event);
|
|
71
|
+
ref.current.focus(); // set focus back to the textarea
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
'data-test-subj': 'clearTextAreaButton'
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}, [isClearable]);
|
|
55
79
|
return ___EmotionJSX(EuiFormControlLayout, {
|
|
56
80
|
fullWidth: fullWidth,
|
|
57
81
|
isLoading: isLoading,
|
|
58
82
|
isInvalid: isInvalid,
|
|
83
|
+
clear: clear,
|
|
84
|
+
icon: icon,
|
|
59
85
|
className: "euiFormControlLayout--euiTextArea"
|
|
60
86
|
}, ___EmotionJSX(EuiValidatableControl, {
|
|
61
87
|
isInvalid: isInvalid
|
|
@@ -65,7 +91,7 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
65
91
|
rows: definedRows,
|
|
66
92
|
name: name,
|
|
67
93
|
id: id,
|
|
68
|
-
ref:
|
|
94
|
+
ref: refs,
|
|
69
95
|
placeholder: placeholder
|
|
70
96
|
}), children)));
|
|
71
97
|
};
|
|
@@ -26,7 +26,6 @@ export * from './combo_box';
|
|
|
26
26
|
export * from './comment_list';
|
|
27
27
|
export * from './context';
|
|
28
28
|
export * from './context_menu';
|
|
29
|
-
export * from './control_bar';
|
|
30
29
|
export * from './copy';
|
|
31
30
|
export * from './datagrid';
|
|
32
31
|
export * from './date_picker';
|
|
@@ -60,7 +59,6 @@ export * from './markdown_editor';
|
|
|
60
59
|
export * from './mark';
|
|
61
60
|
export * from './modal';
|
|
62
61
|
export * from './observer/mutation_observer';
|
|
63
|
-
export * from './notification';
|
|
64
62
|
export * from './outside_click_detector';
|
|
65
63
|
export * from './overlay_mask';
|
|
66
64
|
export * from './page';
|
|
@@ -258,20 +258,19 @@ export var EuiMarkdownEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
258
258
|
setEditorToolbarHeight(editorToolbarRef.current.offsetHeight);
|
|
259
259
|
}, [setEditorToolbarHeight]);
|
|
260
260
|
useEffect(function () {
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
261
|
+
if (height === 'full' || currentHeight === 'full') return;
|
|
262
|
+
if (isPreviewing && autoExpandPreview && previewRef.current.scrollHeight > currentHeight) {
|
|
263
|
+
// scrollHeight does not include the border or margin
|
|
264
|
+
// so we ask for the computed value for those,
|
|
265
|
+
// which is always in pixels because getComputedValue
|
|
266
|
+
// returns the resolved values
|
|
267
|
+
var elementComputedStyle = window.getComputedStyle(previewRef.current);
|
|
268
|
+
var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
|
|
269
|
+
var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
|
|
270
270
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
271
|
+
// then add an extra pixel for safety and because the scrollHeight value is rounded
|
|
272
|
+
var extraHeight = borderWidth + marginWidth + 1;
|
|
273
|
+
setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
|
|
275
274
|
}
|
|
276
275
|
}, [currentHeight, isPreviewing, height, autoExpandPreview]);
|
|
277
276
|
var previewHeight = height === 'full' ? "calc(100% - ".concat(editorFooterHeight, "px)") : currentHeight;
|
|
@@ -55,7 +55,7 @@ export var _EuiPageBottomBar = function _EuiPageBottomBar(_ref2) {
|
|
|
55
55
|
// Hide the overflow in case of larger flex margins than padding
|
|
56
56
|
,
|
|
57
57
|
css: _ref
|
|
58
|
-
// Using
|
|
58
|
+
// Using object here because of the possible conflict with overriding props and position `sticky`
|
|
59
59
|
}, rest), ___EmotionJSX(EuiPageSection, {
|
|
60
60
|
paddingSize: paddingSize,
|
|
61
61
|
restrictWidth: restrictWidth
|
|
@@ -208,7 +208,7 @@ export var EuiSelectableListItem = /*#__PURE__*/function (_Component) {
|
|
|
208
208
|
onFocusBadgeNode = ___EmotionJSX(EuiBadge, _extends({
|
|
209
209
|
className: "euiSelectableListItem__onFocusBadge"
|
|
210
210
|
}, defaultOnFocusBadgeProps));
|
|
211
|
-
} else if (
|
|
211
|
+
} else if (typeof onFocusBadge !== 'boolean' && !!onFocusBadge) {
|
|
212
212
|
var _children = onFocusBadge.children,
|
|
213
213
|
_className = onFocusBadge.className,
|
|
214
214
|
restBadgeProps = _objectWithoutProperties(onFocusBadge, _excluded2);
|
|
@@ -42,34 +42,12 @@ var displayToClassNameMap = {
|
|
|
42
42
|
export var EuiTreeView = /*#__PURE__*/function (_Component) {
|
|
43
43
|
_inherits(EuiTreeView, _Component);
|
|
44
44
|
var _super = _createSuper(EuiTreeView);
|
|
45
|
-
function EuiTreeView() {
|
|
45
|
+
function EuiTreeView(props, context) {
|
|
46
46
|
var _this;
|
|
47
47
|
_classCallCheck(this, EuiTreeView);
|
|
48
|
-
|
|
49
|
-
args[_key] = arguments[_key];
|
|
50
|
-
}
|
|
51
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
48
|
+
_this = _super.call(this, props, context);
|
|
52
49
|
_defineProperty(_assertThisInitialized(_this), "treeIdGenerator", htmlIdGenerator('euiTreeView'));
|
|
53
|
-
_defineProperty(_assertThisInitialized(_this), "isNested",
|
|
54
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
55
|
-
openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
|
|
56
|
-
var id = _ref.id,
|
|
57
|
-
children = _ref.children;
|
|
58
|
-
return children ? id : null;
|
|
59
|
-
}).filter(function (x) {
|
|
60
|
-
return x != null;
|
|
61
|
-
}) : _this.props.items.map(function (_ref2) {
|
|
62
|
-
var id = _ref2.id,
|
|
63
|
-
children = _ref2.children,
|
|
64
|
-
isExpanded = _ref2.isExpanded;
|
|
65
|
-
return children && isExpanded ? id : null;
|
|
66
|
-
}).filter(function (x) {
|
|
67
|
-
return x != null;
|
|
68
|
-
}),
|
|
69
|
-
activeItem: '',
|
|
70
|
-
treeID: getTreeId(_this.props.id, _this.context, _this.treeIdGenerator),
|
|
71
|
-
expandChildNodes: _this.props.expandByDefault || false
|
|
72
|
-
});
|
|
50
|
+
_defineProperty(_assertThisInitialized(_this), "isNested", void 0);
|
|
73
51
|
_defineProperty(_assertThisInitialized(_this), "buttonRef", []);
|
|
74
52
|
_defineProperty(_assertThisInitialized(_this), "setButtonRef", function (ref, index) {
|
|
75
53
|
_this.buttonRef[index] = ref;
|
|
@@ -164,6 +142,26 @@ export var EuiTreeView = /*#__PURE__*/function (_Component) {
|
|
|
164
142
|
_this.buttonRef[index].focus();
|
|
165
143
|
}
|
|
166
144
|
});
|
|
145
|
+
_this.isNested = !!_this.context;
|
|
146
|
+
_this.state = {
|
|
147
|
+
openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
|
|
148
|
+
var id = _ref.id,
|
|
149
|
+
children = _ref.children;
|
|
150
|
+
return children ? id : null;
|
|
151
|
+
}).filter(function (x) {
|
|
152
|
+
return x != null;
|
|
153
|
+
}) : _this.props.items.map(function (_ref2) {
|
|
154
|
+
var id = _ref2.id,
|
|
155
|
+
children = _ref2.children,
|
|
156
|
+
isExpanded = _ref2.isExpanded;
|
|
157
|
+
return children && isExpanded ? id : null;
|
|
158
|
+
}).filter(function (x) {
|
|
159
|
+
return x != null;
|
|
160
|
+
}),
|
|
161
|
+
activeItem: '',
|
|
162
|
+
treeID: getTreeId(_this.props.id, context, _this.treeIdGenerator),
|
|
163
|
+
expandChildNodes: _this.props.expandByDefault || false
|
|
164
|
+
};
|
|
167
165
|
return _this;
|
|
168
166
|
}
|
|
169
167
|
_createClass(EuiTreeView, [{
|
|
@@ -12,7 +12,7 @@ export var is = function is(expectedValue) {
|
|
|
12
12
|
var compName = componentName || 'ANONYMOUS';
|
|
13
13
|
var value = props[propName];
|
|
14
14
|
if (value !== expectedValue) {
|
|
15
|
-
return new Error("[".concat(propName, "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
|
|
15
|
+
return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
|
|
16
16
|
}
|
|
17
17
|
return null;
|
|
18
18
|
};
|
|
@@ -20,7 +20,7 @@ export var is = function is(expectedValue) {
|
|
|
20
20
|
var compName = componentName || 'ANONYMOUS';
|
|
21
21
|
var value = props[propName];
|
|
22
22
|
if (isNil(value)) {
|
|
23
|
-
return new Error("[".concat(propName, "] property in [").concat(compName, "] component is required but seems to be missing"));
|
|
23
|
+
return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is required but seems to be missing"));
|
|
24
24
|
}
|
|
25
25
|
return validator(props, propName, componentName);
|
|
26
26
|
};
|
|
@@ -430,7 +430,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
430
430
|
var sortDirection = _this2.resolveColumnSortDirection(column);
|
|
431
431
|
items.push({
|
|
432
432
|
name: column.name,
|
|
433
|
-
key: "_data_s_".concat(column.field, "_").concat(index),
|
|
433
|
+
key: "_data_s_".concat(String(column.field), "_").concat(index),
|
|
434
434
|
onSort: _this2.resolveColumnOnSort(column),
|
|
435
435
|
isSorted: !!sortDirection,
|
|
436
436
|
isSortAscending: sortDirection ? _services.SortDirection.isAsc(sortDirection) : undefined
|
|
@@ -583,11 +583,11 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
headers.push((0, _react2.jsx)(_table.EuiTableHeaderCell, (0, _extends2.default)({
|
|
586
|
-
key: "_data_h_".concat(field, "_").concat(index),
|
|
586
|
+
key: "_data_h_".concat(String(field), "_").concat(index),
|
|
587
587
|
align: columnAlign,
|
|
588
588
|
width: width,
|
|
589
589
|
mobileOptions: mobileOptions,
|
|
590
|
-
"data-test-subj": "tableHeaderCell_".concat(field, "_").concat(index),
|
|
590
|
+
"data-test-subj": "tableHeaderCell_".concat(String(field), "_").concat(index),
|
|
591
591
|
description: description
|
|
592
592
|
}, sorting), name));
|
|
593
593
|
});
|
|
@@ -624,7 +624,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
624
624
|
|
|
625
625
|
if (footer) {
|
|
626
626
|
footers.push((0, _react2.jsx)(_table.EuiTableFooterCell, {
|
|
627
|
-
key: "footer_".concat(field, "_").concat(footers.length - 1),
|
|
627
|
+
key: "footer_".concat(String(field), "_").concat(footers.length - 1),
|
|
628
628
|
align: align
|
|
629
629
|
}, footer));
|
|
630
630
|
hasDefinedFooter = true;
|
|
@@ -807,19 +807,22 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
807
807
|
}, {
|
|
808
808
|
key: "renderItemActionsCell",
|
|
809
809
|
value: function renderItemActionsCell(itemId, item, column, columnIndex) {
|
|
810
|
-
|
|
811
|
-
var
|
|
812
|
-
return _this7.state.selection.length === 0 && (!action.enabled || action.enabled(item));
|
|
813
|
-
};
|
|
810
|
+
// Disable all actions if any row(s) are selected
|
|
811
|
+
var allDisabled = this.state.selection.length > 0;
|
|
814
812
|
var actualActions = column.actions.filter(function (action) {
|
|
815
813
|
return !action.available || action.available(item);
|
|
816
814
|
});
|
|
817
815
|
if (actualActions.length > 2) {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}
|
|
822
|
-
|
|
816
|
+
if (allDisabled) {
|
|
817
|
+
// If all actions are disabled, do not show any actions but the popover toggle
|
|
818
|
+
actualActions = [];
|
|
819
|
+
} else {
|
|
820
|
+
// if any of the actions `isPrimary`, add them inline as well, but only the first 2
|
|
821
|
+
var primaryActions = actualActions.filter(function (o) {
|
|
822
|
+
return o.isPrimary;
|
|
823
|
+
});
|
|
824
|
+
actualActions = primaryActions.slice(0, 2);
|
|
825
|
+
}
|
|
823
826
|
|
|
824
827
|
// if we have more than 1 action, we don't show them all in the cell, instead we
|
|
825
828
|
// put them all in a popover tool. This effectively means we can only have a maximum
|
|
@@ -832,18 +835,18 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
832
835
|
render: function render(item) {
|
|
833
836
|
return (0, _react2.jsx)(_collapsed_item_actions.CollapsedItemActions, {
|
|
834
837
|
actions: column.actions,
|
|
838
|
+
actionsDisabled: allDisabled,
|
|
835
839
|
itemId: itemId,
|
|
836
|
-
item: item
|
|
837
|
-
actionEnabled: actionEnabled
|
|
840
|
+
item: item
|
|
838
841
|
});
|
|
839
842
|
}
|
|
840
843
|
});
|
|
841
844
|
}
|
|
842
845
|
var tools = (0, _react2.jsx)(_expanded_item_actions.ExpandedItemActions, {
|
|
843
846
|
actions: actualActions,
|
|
847
|
+
actionsDisabled: allDisabled,
|
|
844
848
|
itemId: itemId,
|
|
845
|
-
item: item
|
|
846
|
-
actionEnabled: actionEnabled
|
|
849
|
+
item: item
|
|
847
850
|
});
|
|
848
851
|
var key = "record_actions_".concat(itemId, "_").concat(columnIndex);
|
|
849
852
|
return (0, _react2.jsx)(_table.EuiTableRowCell, {
|
|
@@ -861,7 +864,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
861
864
|
var field = column.field,
|
|
862
865
|
render = column.render,
|
|
863
866
|
dataType = column.dataType;
|
|
864
|
-
var key = "_data_column_".concat(field, "_").concat(itemId, "_").concat(columnIndex);
|
|
867
|
+
var key = "_data_column_".concat(String(field), "_").concat(itemId, "_").concat(columnIndex);
|
|
865
868
|
var contentRenderer = render || this.getRendererForDataType(dataType);
|
|
866
869
|
var value = (0, _objects.get)(item, field);
|
|
867
870
|
var content = contentRenderer(value, item);
|
|
@@ -930,7 +933,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
930
933
|
}, {
|
|
931
934
|
key: "renderPaginationBar",
|
|
932
935
|
value: function renderPaginationBar() {
|
|
933
|
-
var
|
|
936
|
+
var _this7 = this;
|
|
934
937
|
var _this$props11 = this.props,
|
|
935
938
|
error = _this$props11.error,
|
|
936
939
|
pagination = _this$props11.pagination,
|
|
@@ -949,9 +952,9 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
949
952
|
}, function (tablePagination) {
|
|
950
953
|
return (0, _react2.jsx)(_pagination_bar.PaginationBar, {
|
|
951
954
|
pagination: pagination,
|
|
952
|
-
onPageSizeChange:
|
|
953
|
-
onPageChange:
|
|
954
|
-
"aria-controls":
|
|
955
|
+
onPageSizeChange: _this7.onPageSizeChange.bind(_this7),
|
|
956
|
+
onPageChange: _this7.onPageChange.bind(_this7),
|
|
957
|
+
"aria-controls": _this7.tableId,
|
|
955
958
|
"aria-label": tablePagination
|
|
956
959
|
});
|
|
957
960
|
});
|