@elastic/eui 85.1.0 → 86.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 +26 -2
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/data_grid_cell.js +14 -13
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/es/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/es/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
- package/es/components/datagrid/controls/display_selector.js +1 -1
- package/es/components/datagrid/data_grid.js +7 -7
- package/es/components/datagrid/utils/in_memory.js +4 -4
- package/es/components/datagrid/utils/row_heights.js +4 -4
- package/es/components/date_picker/date_picker.js +1 -1
- package/es/components/drag_and_drop/drag_drop_context.js +1 -1
- package/es/components/drag_and_drop/draggable.js +2 -2
- package/es/components/drag_and_drop/droppable.js +1 -1
- package/es/components/drag_and_drop/index.js +3 -2
- package/es/components/header/header_section/header_section_item_button.js +94 -0
- package/es/components/highlight/highlight.js +2 -2
- package/es/components/inline_edit/inline_edit_text.js +2 -3
- package/es/components/inline_edit/inline_edit_title.js +2 -3
- package/es/components/inner_text/index.js +1 -2
- package/es/components/markdown_editor/markdown_actions.js +1 -1
- package/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/es/components/modal/confirm_modal.js +11 -29
- package/es/components/outside_click_detector/outside_click_detector.js +10 -11
- package/es/components/page/page_template.js +8 -8
- package/es/components/popover/wrapping_popover.js +1 -9
- package/es/components/portal/portal.js +34 -24
- package/es/components/tabs/tabs.js +25 -0
- package/es/components/timeline/timeline_item_icon.js +3 -3
- package/es/components/tour/tour_step.js +16 -12
- package/es/services/color/eui_palettes.js +7 -1
- package/es/services/color/index.js +1 -1
- package/es/services/index.js +1 -1
- package/es/services/time/timer.js +3 -5
- package/es/test/rtl/component_helpers.js +1 -1
- package/es/test/rtl/index.js +2 -1
- package/es/test/rtl/render_hook.js +23 -0
- package/eui.d.ts +1234 -748
- package/i18ntokens.json +144 -144
- package/lib/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/data_grid_cell.js +14 -13
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/lib/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/lib/components/datagrid/controls/data_grid_toolbar.js +41 -38
- package/lib/components/datagrid/controls/display_selector.js +1 -1
- package/lib/components/datagrid/data_grid.js +7 -7
- package/lib/components/datagrid/utils/in_memory.js +4 -4
- package/lib/components/datagrid/utils/row_heights.js +4 -4
- package/lib/components/date_picker/date_picker.js +1 -1
- package/lib/components/drag_and_drop/drag_drop_context.js +2 -2
- package/lib/components/drag_and_drop/draggable.js +3 -3
- package/lib/components/drag_and_drop/droppable.js +2 -2
- package/lib/components/header/header_section/header_section_item_button.js +94 -0
- package/lib/components/highlight/highlight.js +2 -2
- package/lib/components/inline_edit/inline_edit_text.js +2 -3
- package/lib/components/inline_edit/inline_edit_title.js +2 -3
- package/lib/components/inner_text/index.js +1 -8
- package/lib/components/markdown_editor/markdown_actions.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/lib/components/modal/confirm_modal.js +10 -28
- package/lib/components/outside_click_detector/outside_click_detector.js +10 -11
- package/lib/components/page/page_template.js +8 -8
- package/lib/components/popover/wrapping_popover.js +1 -9
- package/lib/components/portal/portal.js +34 -24
- package/lib/components/tabs/tabs.js +25 -0
- package/lib/components/timeline/timeline_item_icon.js +6 -3
- package/lib/components/tour/tour_step.js +15 -11
- package/lib/services/color/eui_palettes.js +9 -2
- package/lib/services/color/index.js +7 -0
- package/lib/services/index.js +7 -0
- package/lib/services/time/timer.js +3 -5
- package/lib/test/rtl/component_helpers.js +1 -1
- package/lib/test/rtl/index.js +13 -1
- package/lib/test/rtl/render_hook.js +29 -0
- package/optimize/es/components/datagrid/body/data_grid_cell.js +10 -9
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
- package/optimize/es/components/datagrid/controls/display_selector.js +1 -1
- package/optimize/es/components/datagrid/utils/in_memory.js +2 -2
- package/optimize/es/components/datagrid/utils/row_heights.js +4 -4
- package/optimize/es/components/date_picker/date_picker.js +1 -1
- package/optimize/es/components/drag_and_drop/drag_drop_context.js +1 -1
- package/optimize/es/components/drag_and_drop/draggable.js +2 -2
- package/optimize/es/components/drag_and_drop/droppable.js +1 -1
- package/optimize/es/components/drag_and_drop/index.js +3 -2
- package/optimize/es/components/highlight/highlight.js +2 -2
- package/optimize/es/components/inline_edit/inline_edit_text.js +2 -3
- package/optimize/es/components/inline_edit/inline_edit_title.js +2 -3
- package/optimize/es/components/inner_text/index.js +1 -2
- package/optimize/es/components/markdown_editor/markdown_actions.js +1 -1
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/optimize/es/components/modal/confirm_modal.js +11 -24
- package/optimize/es/components/outside_click_detector/outside_click_detector.js +10 -11
- package/optimize/es/components/popover/wrapping_popover.js +1 -9
- package/optimize/es/components/portal/portal.js +34 -25
- package/optimize/es/components/timeline/timeline_item_icon.js +3 -3
- package/optimize/es/components/tour/tour_step.js +16 -12
- package/optimize/es/services/color/eui_palettes.js +7 -1
- package/optimize/es/services/color/index.js +1 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/time/timer.js +3 -5
- package/optimize/es/test/rtl/component_helpers.js +1 -1
- package/optimize/es/test/rtl/index.js +2 -1
- package/optimize/es/test/rtl/render_hook.js +23 -0
- package/optimize/lib/components/datagrid/body/data_grid_cell.js +10 -9
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +36 -28
- package/optimize/lib/components/datagrid/controls/display_selector.js +1 -1
- package/optimize/lib/components/datagrid/utils/in_memory.js +2 -2
- package/optimize/lib/components/datagrid/utils/row_heights.js +4 -4
- package/optimize/lib/components/date_picker/date_picker.js +1 -1
- package/optimize/lib/components/drag_and_drop/drag_drop_context.js +2 -2
- package/optimize/lib/components/drag_and_drop/draggable.js +3 -3
- package/optimize/lib/components/drag_and_drop/droppable.js +2 -2
- package/optimize/lib/components/highlight/highlight.js +2 -2
- package/optimize/lib/components/inline_edit/inline_edit_text.js +2 -3
- package/optimize/lib/components/inline_edit/inline_edit_title.js +2 -3
- package/optimize/lib/components/inner_text/index.js +1 -8
- package/optimize/lib/components/markdown_editor/markdown_actions.js +1 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/optimize/lib/components/modal/confirm_modal.js +10 -23
- package/optimize/lib/components/outside_click_detector/outside_click_detector.js +10 -11
- package/optimize/lib/components/popover/wrapping_popover.js +1 -9
- package/optimize/lib/components/portal/portal.js +34 -25
- package/optimize/lib/components/timeline/timeline_item_icon.js +6 -4
- package/optimize/lib/components/tour/tour_step.js +15 -11
- package/optimize/lib/services/color/eui_palettes.js +9 -2
- package/optimize/lib/services/color/index.js +7 -0
- package/optimize/lib/services/index.js +7 -0
- package/optimize/lib/services/time/timer.js +3 -5
- package/optimize/lib/test/rtl/component_helpers.js +1 -1
- package/optimize/lib/test/rtl/index.js +13 -1
- package/optimize/lib/test/rtl/render_hook.js +29 -0
- package/package.json +23 -16
- package/test-env/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/data_grid_cell.js +14 -13
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +5 -5
- package/test-env/components/datagrid/controls/data_grid_toolbar.js +36 -28
- package/test-env/components/datagrid/controls/display_selector.js +1 -1
- package/test-env/components/datagrid/data_grid.js +7 -7
- package/test-env/components/datagrid/utils/in_memory.js +4 -4
- package/test-env/components/datagrid/utils/row_heights.js +4 -4
- package/test-env/components/date_picker/date_picker.js +1 -1
- package/test-env/components/drag_and_drop/drag_drop_context.js +2 -2
- package/test-env/components/drag_and_drop/draggable.js +3 -3
- package/test-env/components/drag_and_drop/droppable.js +2 -2
- package/test-env/components/header/header_section/header_section_item_button.js +94 -0
- package/test-env/components/highlight/highlight.js +2 -2
- package/test-env/components/inline_edit/inline_edit_text.js +2 -3
- package/test-env/components/inline_edit/inline_edit_title.js +2 -3
- package/test-env/components/inner_text/index.js +1 -8
- package/test-env/components/markdown_editor/markdown_actions.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_text_area.js +10 -4
- package/test-env/components/modal/confirm_modal.js +10 -23
- package/test-env/components/outside_click_detector/outside_click_detector.js +10 -11
- package/test-env/components/page/page_template.js +8 -8
- package/test-env/components/popover/wrapping_popover.js +1 -9
- package/test-env/components/portal/portal.js +34 -25
- package/test-env/components/tabs/tabs.js +25 -0
- package/test-env/components/timeline/timeline_item_icon.js +6 -3
- package/test-env/components/tour/tour_step.js +15 -11
- package/test-env/services/color/eui_palettes.js +9 -2
- package/test-env/services/color/index.js +7 -0
- package/test-env/services/index.js +7 -0
- package/test-env/services/time/timer.js +3 -5
- package/test-env/test/rtl/component_helpers.js +1 -1
- package/test-env/test/rtl/index.js +13 -1
- package/test-env/test/rtl/render_hook.js +29 -0
- package/es/components/inner_text/render_to_text.js +0 -47
- package/lib/components/inner_text/render_to_text.js +0 -54
- package/optimize/es/components/inner_text/render_to_text.js +0 -42
- package/optimize/lib/components/inner_text/render_to_text.js +0 -52
- package/test-env/components/inner_text/render_to_text.js +0 -52
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EuiComboBoxTitle = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
8
|
var _react2 = require("@emotion/react");
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
10
|
/*
|
|
@@ -22,5 +21,4 @@ var EuiComboBoxTitle = function EuiComboBoxTitle(_ref) {
|
|
|
22
21
|
className: "euiComboBoxTitle"
|
|
23
22
|
}, children);
|
|
24
23
|
};
|
|
25
|
-
exports.EuiComboBoxTitle = EuiComboBoxTitle;
|
|
26
|
-
EuiComboBoxTitle.propTypes = {};
|
|
24
|
+
exports.EuiComboBoxTitle = EuiComboBoxTitle;
|
|
@@ -55,11 +55,11 @@ EuiDataGridBody.propTypes = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Component to render for each row in the column
|
|
57
57
|
*/
|
|
58
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
58
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
59
59
|
/**
|
|
60
60
|
* Component to render in the optional column footer
|
|
61
61
|
*/
|
|
62
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
62
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
63
63
|
/**
|
|
64
64
|
* Optional props to pass to the column footer cell
|
|
65
65
|
*/
|
|
@@ -85,11 +85,11 @@ EuiDataGridBody.propTypes = {
|
|
|
85
85
|
/**
|
|
86
86
|
* Component to render for each row in the column
|
|
87
87
|
*/
|
|
88
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
88
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
89
89
|
/**
|
|
90
90
|
* Component to render in the optional column footer
|
|
91
91
|
*/
|
|
92
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
92
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
93
93
|
/**
|
|
94
94
|
* Optional props to pass to the column footer cell
|
|
95
95
|
*/
|
|
@@ -491,7 +491,7 @@ EuiDataGridBody.propTypes = {
|
|
|
491
491
|
/**
|
|
492
492
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
493
493
|
*/
|
|
494
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
494
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
495
495
|
/**
|
|
496
496
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
497
497
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -549,9 +549,9 @@ EuiDataGridBody.propTypes = {
|
|
|
549
549
|
endRow: _propTypes.default.number.isRequired,
|
|
550
550
|
visibleRowCount: _propTypes.default.number.isRequired
|
|
551
551
|
}).isRequired,
|
|
552
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
552
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
553
553
|
renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
|
|
554
|
-
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
554
|
+
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
555
555
|
renderCustomGridBody: _propTypes.default.func,
|
|
556
556
|
interactiveCellId: _propTypes.default.string.isRequired,
|
|
557
557
|
pagination: _propTypes.default.shape({
|
|
@@ -203,11 +203,11 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
203
203
|
/**
|
|
204
204
|
* Component to render for each row in the column
|
|
205
205
|
*/
|
|
206
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
206
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
207
207
|
/**
|
|
208
208
|
* Component to render in the optional column footer
|
|
209
209
|
*/
|
|
210
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
210
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
211
211
|
/**
|
|
212
212
|
* Optional props to pass to the column footer cell
|
|
213
213
|
*/
|
|
@@ -233,11 +233,11 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
233
233
|
/**
|
|
234
234
|
* Component to render for each row in the column
|
|
235
235
|
*/
|
|
236
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
236
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
237
237
|
/**
|
|
238
238
|
* Component to render in the optional column footer
|
|
239
239
|
*/
|
|
240
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
240
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
241
241
|
/**
|
|
242
242
|
* Optional props to pass to the column footer cell
|
|
243
243
|
*/
|
|
@@ -639,7 +639,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
639
639
|
/**
|
|
640
640
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
641
641
|
*/
|
|
642
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
642
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
643
643
|
/**
|
|
644
644
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
645
645
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -697,9 +697,9 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
697
697
|
endRow: _propTypes.default.number.isRequired,
|
|
698
698
|
visibleRowCount: _propTypes.default.number.isRequired
|
|
699
699
|
}).isRequired,
|
|
700
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
700
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
701
701
|
renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
|
|
702
|
-
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
702
|
+
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
703
703
|
renderCustomGridBody: _propTypes.default.func,
|
|
704
704
|
interactiveCellId: _propTypes.default.string.isRequired,
|
|
705
705
|
pagination: _propTypes.default.shape({
|
|
@@ -334,11 +334,11 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
334
334
|
/**
|
|
335
335
|
* Component to render for each row in the column
|
|
336
336
|
*/
|
|
337
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
337
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
338
338
|
/**
|
|
339
339
|
* Component to render in the optional column footer
|
|
340
340
|
*/
|
|
341
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
341
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
342
342
|
/**
|
|
343
343
|
* Optional props to pass to the column footer cell
|
|
344
344
|
*/
|
|
@@ -364,11 +364,11 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
364
364
|
/**
|
|
365
365
|
* Component to render for each row in the column
|
|
366
366
|
*/
|
|
367
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
367
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
368
368
|
/**
|
|
369
369
|
* Component to render in the optional column footer
|
|
370
370
|
*/
|
|
371
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
371
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
372
372
|
/**
|
|
373
373
|
* Optional props to pass to the column footer cell
|
|
374
374
|
*/
|
|
@@ -770,7 +770,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
770
770
|
/**
|
|
771
771
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
772
772
|
*/
|
|
773
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
773
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
774
774
|
/**
|
|
775
775
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
776
776
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -828,9 +828,9 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
828
828
|
endRow: _propTypes.default.number.isRequired,
|
|
829
829
|
visibleRowCount: _propTypes.default.number.isRequired
|
|
830
830
|
}).isRequired,
|
|
831
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
831
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
832
832
|
renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
|
|
833
|
-
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
833
|
+
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
834
834
|
renderCustomGridBody: _propTypes.default.func,
|
|
835
835
|
interactiveCellId: _propTypes.default.string.isRequired,
|
|
836
836
|
pagination: _propTypes.default.shape({
|
|
@@ -488,7 +488,7 @@ EuiDataGridCellContent.propTypes = {
|
|
|
488
488
|
/**
|
|
489
489
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
490
490
|
*/
|
|
491
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
491
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
492
492
|
/**
|
|
493
493
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
494
494
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -500,7 +500,7 @@ EuiDataGridCellContent.propTypes = {
|
|
|
500
500
|
columnType: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.oneOf([null])]),
|
|
501
501
|
isExpandable: _propTypes.default.bool.isRequired,
|
|
502
502
|
className: _propTypes.default.string,
|
|
503
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
503
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
504
504
|
renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
|
|
505
505
|
setRowHeight: _propTypes.default.func,
|
|
506
506
|
getRowHeight: _propTypes.default.func,
|
|
@@ -811,15 +811,7 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
811
811
|
}
|
|
812
812
|
});
|
|
813
813
|
return _this;
|
|
814
|
-
}
|
|
815
|
-
// the parent grid owns which cell is focused,
|
|
816
|
-
// but individual cells need to react to changes and also report that
|
|
817
|
-
// they are focused in response to user actions like clicking on the cell
|
|
818
|
-
// to avoid focus trap fighting, cells wait a tick after being clicked to allow
|
|
819
|
-
// any existing traps to disconnect before the cell reports the new focus state to the parent grid
|
|
820
|
-
// but because of this small delay, multiple cells could queue up focus and
|
|
821
|
-
// create an infinite loop as the cells activate->deactivate->...
|
|
822
|
-
// so we track the last timeout id and clear that request if superseded
|
|
814
|
+
}
|
|
823
815
|
_createClass(EuiDataGridCell, [{
|
|
824
816
|
key: "componentDidMount",
|
|
825
817
|
value: function componentDidMount() {
|
|
@@ -1123,6 +1115,15 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
1123
1115
|
return EuiDataGridCell;
|
|
1124
1116
|
}(_react.Component);
|
|
1125
1117
|
exports.EuiDataGridCell = EuiDataGridCell;
|
|
1118
|
+
// focus tracking is split between the entire grid & individual cells,
|
|
1119
|
+
// the parent grid owns which cell is focused,
|
|
1120
|
+
// but individual cells need to react to changes and also report that
|
|
1121
|
+
// they are focused in response to user actions like clicking on the cell
|
|
1122
|
+
// to avoid focus trap fighting, cells wait a tick after being clicked to allow
|
|
1123
|
+
// any existing traps to disconnect before the cell reports the new focus state to the parent grid
|
|
1124
|
+
// but because of this small delay, multiple cells could queue up focus and
|
|
1125
|
+
// create an infinite loop as the cells activate->deactivate->...
|
|
1126
|
+
// so we track the last timeout id and clear that request if superseded
|
|
1126
1127
|
_defineProperty(EuiDataGridCell, "activeFocusTimeoutId", undefined);
|
|
1127
1128
|
_defineProperty(EuiDataGridCell, "contextType", _focus.DataGridFocusContext);
|
|
1128
1129
|
EuiDataGridCell.propTypes = {
|
|
@@ -1447,7 +1448,7 @@ EuiDataGridCell.propTypes = {
|
|
|
1447
1448
|
/**
|
|
1448
1449
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
1449
1450
|
*/
|
|
1450
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
1451
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
1451
1452
|
/**
|
|
1452
1453
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
1453
1454
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -1474,7 +1475,7 @@ EuiDataGridCell.propTypes = {
|
|
|
1474
1475
|
setPopoverContent: _propTypes.default.func.isRequired,
|
|
1475
1476
|
setCellPopoverProps: _propTypes.default.func.isRequired
|
|
1476
1477
|
}).isRequired,
|
|
1477
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
1478
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
1478
1479
|
renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
|
|
1479
1480
|
setRowHeight: _propTypes.default.func,
|
|
1480
1481
|
getRowHeight: _propTypes.default.func,
|
|
@@ -58,11 +58,11 @@ EuiDataGridControlHeaderCell.propTypes = {
|
|
|
58
58
|
/**
|
|
59
59
|
* Component to render for each row in the column
|
|
60
60
|
*/
|
|
61
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
61
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
62
62
|
/**
|
|
63
63
|
* Component to render in the optional column footer
|
|
64
64
|
*/
|
|
65
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
65
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
66
66
|
/**
|
|
67
67
|
* Optional props to pass to the column footer cell
|
|
68
68
|
*/
|
|
@@ -558,7 +558,7 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
558
558
|
/**
|
|
559
559
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
560
560
|
*/
|
|
561
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
561
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
562
562
|
/**
|
|
563
563
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
564
564
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -107,11 +107,11 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
107
107
|
/**
|
|
108
108
|
* Component to render for each row in the column
|
|
109
109
|
*/
|
|
110
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
110
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
111
111
|
/**
|
|
112
112
|
* Component to render in the optional column footer
|
|
113
113
|
*/
|
|
114
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
114
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
115
115
|
/**
|
|
116
116
|
* Optional props to pass to the column footer cell
|
|
117
117
|
*/
|
|
@@ -137,11 +137,11 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
137
137
|
/**
|
|
138
138
|
* Component to render for each row in the column
|
|
139
139
|
*/
|
|
140
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
140
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
141
141
|
/**
|
|
142
142
|
* Component to render in the optional column footer
|
|
143
143
|
*/
|
|
144
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
144
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
145
145
|
/**
|
|
146
146
|
* Optional props to pass to the column footer cell
|
|
147
147
|
*/
|
|
@@ -543,7 +543,7 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
543
543
|
/**
|
|
544
544
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
545
545
|
*/
|
|
546
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
546
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
547
547
|
/**
|
|
548
548
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
549
549
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EuiDataGridToolbar = void 0;
|
|
7
7
|
exports.checkOrDefaultToolBarDisplayOptions = checkOrDefaultToolBarDisplayOptions;
|
|
8
8
|
exports.getNestedObjectOptions = getNestedObjectOptions;
|
|
9
|
-
exports.renderAdditionalControls =
|
|
10
|
-
var _react =
|
|
9
|
+
exports.renderAdditionalControls = void 0;
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _accessibility = require("../../accessibility");
|
|
12
12
|
var _utils = require("../../../utils");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// When below this number the grid only shows the right control icon buttons
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } /*
|
|
17
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
18
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
19
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
20
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
|
+
* Side Public License, v 1.
|
|
22
|
+
*/ // When below this number the grid only shows the right control icon buttons
|
|
24
23
|
var MINIMUM_WIDTH_FOR_GRID_CONTROLS = 479;
|
|
25
24
|
var EuiDataGridToolbar = function EuiDataGridToolbar(_ref) {
|
|
26
25
|
var gridWidth = _ref.gridWidth,
|
|
@@ -68,50 +67,54 @@ function checkOrDefaultToolBarDisplayOptions(arg, option) {
|
|
|
68
67
|
return true;
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
|
-
function renderAdditionalControls(toolbarVisibility, position) {
|
|
72
|
-
var _additionalControlsOb;
|
|
70
|
+
var renderAdditionalControls = function renderAdditionalControls(toolbarVisibility, position) {
|
|
73
71
|
if (typeof toolbarVisibility === 'boolean') return null;
|
|
74
72
|
var _ref2 = toolbarVisibility || {},
|
|
75
73
|
additionalControls = _ref2.additionalControls;
|
|
76
74
|
if (!additionalControls) return null;
|
|
77
75
|
|
|
78
|
-
//
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
// API backwards compatability: if the consumer passed a single ReactNode
|
|
77
|
+
// to `additionalControls`, default to the left append position.
|
|
78
|
+
if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls) && position === 'left.append') {
|
|
79
|
+
return additionalControls;
|
|
80
|
+
}
|
|
81
|
+
if (_typeof(additionalControls) !== 'object') {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
var handleLeftObjectConfig = function handleLeftObjectConfig(leftConfig) {
|
|
85
|
+
if (position === 'left.prepend') {
|
|
86
|
+
return leftConfig.prepend;
|
|
85
87
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return leftPositionObj.prepend;
|
|
88
|
+
if (position === 'left.append') {
|
|
89
|
+
return leftConfig.append;
|
|
89
90
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
};
|
|
92
|
+
var handleObjectConfig = function handleObjectConfig(additionalControls) {
|
|
93
|
+
if (position === 'right') {
|
|
94
|
+
return additionalControls.right;
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
// API backwards compatability: If the consumer passed a single ReactNode
|
|
97
|
+
// to `additionalControls.left`, default to the left append position
|
|
98
|
+
if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls.left) && position === 'left.append') {
|
|
99
|
+
return additionalControls.left;
|
|
97
100
|
}
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
return additionalControls;
|
|
101
|
+
if (additionalControls.left && _typeof(additionalControls.left) === 'object') {
|
|
102
|
+
return handleLeftObjectConfig(additionalControls.left);
|
|
101
103
|
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
};
|
|
105
|
+
var rendered = handleObjectConfig(additionalControls);
|
|
106
|
+
return rendered || null;
|
|
107
|
+
};
|
|
105
108
|
|
|
106
109
|
/**
|
|
107
110
|
* Utility helper for selectors/controls that allow nested options
|
|
108
111
|
* (e.g. column selector, display selector)
|
|
109
112
|
*/
|
|
110
|
-
|
|
113
|
+
exports.renderAdditionalControls = renderAdditionalControls;
|
|
111
114
|
function getNestedObjectOptions(controlOption, objectKey) {
|
|
112
115
|
var _controlOption$object;
|
|
113
116
|
// If the config is a boolean, nested options follow that boolean
|
|
114
|
-
if (
|
|
117
|
+
if (typeof controlOption === 'boolean') return controlOption;
|
|
115
118
|
// If config is not defined, default to enabled
|
|
116
119
|
if (controlOption == null) return true;
|
|
117
120
|
// Otherwise, type should be an object of boolean values - dive into it and return the value
|
|
@@ -139,7 +139,7 @@ var useDataGridDisplaySelector = function useDataGridDisplaySelector(showDisplay
|
|
|
139
139
|
setUserRowHeightsOptions(rowHeightsOptions);
|
|
140
140
|
}, [lineCount]);
|
|
141
141
|
var setLineCountHeight = (0, _react.useCallback)(function (event) {
|
|
142
|
-
var newLineCount = Number(event.
|
|
142
|
+
var newLineCount = Number(event.currentTarget.value);
|
|
143
143
|
if (newLineCount < 1) return; // Don't let users set a 0 or negative line count
|
|
144
144
|
|
|
145
145
|
setLineCount(newLineCount);
|
|
@@ -799,7 +799,7 @@ EuiDataGrid.propTypes = {
|
|
|
799
799
|
/**
|
|
800
800
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
801
801
|
*/
|
|
802
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
802
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
803
803
|
/**
|
|
804
804
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
805
805
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -831,11 +831,11 @@ EuiDataGrid.propTypes = {
|
|
|
831
831
|
/**
|
|
832
832
|
* Component to render for each row in the column
|
|
833
833
|
*/
|
|
834
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
834
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
835
835
|
/**
|
|
836
836
|
* Component to render in the optional column footer
|
|
837
837
|
*/
|
|
838
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
838
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
839
839
|
/**
|
|
840
840
|
* Optional props to pass to the column footer cell
|
|
841
841
|
*/
|
|
@@ -865,11 +865,11 @@ EuiDataGrid.propTypes = {
|
|
|
865
865
|
/**
|
|
866
866
|
* Component to render for each row in the column
|
|
867
867
|
*/
|
|
868
|
-
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
868
|
+
rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
869
869
|
/**
|
|
870
870
|
* Component to render in the optional column footer
|
|
871
871
|
*/
|
|
872
|
-
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
872
|
+
footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
873
873
|
/**
|
|
874
874
|
* Optional props to pass to the column footer cell
|
|
875
875
|
*/
|
|
@@ -944,7 +944,7 @@ EuiDataGrid.propTypes = {
|
|
|
944
944
|
* allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
|
|
945
945
|
* as its only argument.
|
|
946
946
|
*/
|
|
947
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
947
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
948
948
|
/**
|
|
949
949
|
* An optional function that can be used to completely customize the rendering of cell popovers.
|
|
950
950
|
*
|
|
@@ -963,7 +963,7 @@ EuiDataGrid.propTypes = {
|
|
|
963
963
|
* allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
|
|
964
964
|
* as its only argument.
|
|
965
965
|
*/
|
|
966
|
-
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
966
|
+
renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
|
|
967
967
|
/**
|
|
968
968
|
* An optional function called to completely customize and control the rendering of
|
|
969
969
|
* EuiDataGrid's body and cell placement. This can be used to, e.g. remove EuiDataGrid's
|
|
@@ -161,9 +161,9 @@ var EuiDataGridInMemoryRenderer = function EuiDataGridInMemoryRenderer(_ref) {
|
|
|
161
161
|
var cellDivs = documentFragment.childNodes[0].childNodes;
|
|
162
162
|
for (var i = 0; i < cellDivs.length; i++) {
|
|
163
163
|
var cellDiv = cellDivs[i];
|
|
164
|
-
var
|
|
164
|
+
var rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
|
|
165
165
|
var column = cellDiv.getAttribute('data-dg-column');
|
|
166
|
-
onCellRender(
|
|
166
|
+
onCellRender(rowIndex, column, getElementText(cellDiv));
|
|
167
167
|
}
|
|
168
168
|
// changes to documentFragment.children is reflected by `cells`
|
|
169
169
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -598,7 +598,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
598
598
|
/**
|
|
599
599
|
* Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
|
|
600
600
|
*/
|
|
601
|
-
cellActions: _propTypes.default.arrayOf(_propTypes.default.
|
|
601
|
+
cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
|
|
602
602
|
/**
|
|
603
603
|
* Configures the amount of cell action buttons immediately visible on a cell.
|
|
604
604
|
* Any cell actions above this number will only display in the cell expansion popover.
|
|
@@ -607,7 +607,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
607
607
|
visibleCellActions: _propTypes.default.number
|
|
608
608
|
}).isRequired).isRequired,
|
|
609
609
|
rowCount: _propTypes.default.number.isRequired,
|
|
610
|
-
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.
|
|
610
|
+
renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
611
611
|
onCellRender: _propTypes.default.func.isRequired
|
|
612
612
|
};
|
|
613
613
|
function noop() {}
|
|
@@ -214,15 +214,15 @@ var RowHeightVirtualizationUtils = /*#__PURE__*/function (_RowHeightUtils) {
|
|
|
214
214
|
var _this2;
|
|
215
215
|
_classCallCheck(this, RowHeightVirtualizationUtils);
|
|
216
216
|
_this2 = _super.call(this);
|
|
217
|
-
_this2.gridRef = gridRef;
|
|
218
|
-
_this2.outerGridElementRef = outerGridElementRef;
|
|
219
|
-
_this2.gridItemsRenderedRef = gridItemsRenderedRef;
|
|
220
|
-
_this2.rerenderGridBodyRef = rerenderGridBodyRef;
|
|
221
217
|
/**
|
|
222
218
|
* Virtualization workarounds for auto height rows
|
|
223
219
|
*/
|
|
224
220
|
_defineProperty(_assertThisInitialized(_this2), "timerId", void 0);
|
|
225
221
|
_defineProperty(_assertThisInitialized(_this2), "lastUpdatedRow", Infinity);
|
|
222
|
+
_this2.gridRef = gridRef;
|
|
223
|
+
_this2.outerGridElementRef = outerGridElementRef;
|
|
224
|
+
_this2.gridItemsRenderedRef = gridItemsRenderedRef;
|
|
225
|
+
_this2.rerenderGridBodyRef = rerenderGridBodyRef;
|
|
226
226
|
return _this2;
|
|
227
227
|
}
|
|
228
228
|
_createClass(RowHeightVirtualizationUtils, [{
|
|
@@ -152,7 +152,7 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
|
|
|
152
152
|
inputValidityRef = _useState2[0],
|
|
153
153
|
_setInputValidityRef = _useState2[1];
|
|
154
154
|
var setInputValidityRef = (0, _react.useCallback)(function (ref) {
|
|
155
|
-
_setInputValidityRef(ref === null || ref === void 0 ? void 0 : ref.input);
|
|
155
|
+
_setInputValidityRef((ref === null || ref === void 0 ? void 0 : ref.input) || null);
|
|
156
156
|
}, []);
|
|
157
157
|
(0, _form.useEuiValidatableControl)({
|
|
158
158
|
isInvalid: isInvalid,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiDragDropContextContext = exports.EuiDragDropContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _excluded = ["onBeforeDragStart", "onDragStart", "onDragUpdate", "onDragEnd", "children"];
|
|
12
12
|
/*
|
|
@@ -55,7 +55,7 @@ var EuiDragDropContext = function EuiDragDropContext(_ref) {
|
|
|
55
55
|
onDragEnd(result, provided);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
return (0, _react2.jsx)(
|
|
58
|
+
return (0, _react2.jsx)(_dnd.DragDropContext, _extends({
|
|
59
59
|
onBeforeDragStart: onBeforeDragStart,
|
|
60
60
|
onDragStart: euiOnDragStart,
|
|
61
61
|
onDragUpdate: onDragUpdate,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EuiDraggable = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var
|
|
10
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _droppable = require("./droppable");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
@@ -57,7 +57,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
|
|
|
57
57
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
58
58
|
var _useContext = (0, _react.useContext)(_droppable.EuiDroppableContext),
|
|
59
59
|
cloneItems = _useContext.cloneItems;
|
|
60
|
-
return (0, _react2.jsx)(
|
|
60
|
+
return (0, _react2.jsx)(_dnd.Draggable, _extends({
|
|
61
61
|
draggableId: draggableId,
|
|
62
62
|
index: index,
|
|
63
63
|
isDragDisabled: isDragDisabled
|
|
@@ -75,7 +75,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
|
|
|
75
75
|
'euiDraggable__item--isDragging': snapshot.isDragging,
|
|
76
76
|
'euiDraggable__item--isDropAnimating': snapshot.isDropAnimating
|
|
77
77
|
});
|
|
78
|
-
var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
|
|
78
|
+
var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
|
|
79
79
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", _extends({}, provided.draggableProps, !customDragHandle ? provided.dragHandleProps : {}, {
|
|
80
80
|
ref: provided.innerRef,
|
|
81
81
|
"data-test-subj": dataTestSubj,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EuiDroppableContext = exports.EuiDroppable = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var
|
|
10
|
+
var _dnd = require("@hello-pangea/dnd");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _drag_drop_context = require("./drag_drop_context");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
@@ -59,7 +59,7 @@ var EuiDroppable = function EuiDroppable(_ref) {
|
|
|
59
59
|
var _useContext = (0, _react.useContext)(_drag_drop_context.EuiDragDropContextContext),
|
|
60
60
|
isDraggingType = _useContext.isDraggingType;
|
|
61
61
|
var dropIsDisabled = cloneDraggables ? true : isDropDisabled;
|
|
62
|
-
return (0, _react2.jsx)(
|
|
62
|
+
return (0, _react2.jsx)(_dnd.Droppable, _extends({
|
|
63
63
|
isDropDisabled: dropIsDisabled,
|
|
64
64
|
droppableId: droppableId,
|
|
65
65
|
direction: direction,
|