@elastic/eui 102.1.0 → 102.2.0-amsterdam.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/basic_table/basic_table.js +10 -9
- package/es/components/basic_table/in_memory_table.js +18 -16
- package/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/es/components/breadcrumbs/breadcrumbs.js +3 -3
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/es/components/datagrid/body/data_grid_body.js +14 -9
- package/es/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/es/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/es/components/datagrid/body/header/draggable_columns.js +1 -1
- package/es/components/datagrid/controls/column_sorting.js +6 -6
- package/es/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/es/components/datagrid/utils/in_memory.js +3 -3
- package/es/components/datagrid/utils/scrolling.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/es/components/form/range/dual_range.js +1 -1
- package/es/components/form/range/range.js +1 -1
- package/es/components/form/range/range_track.js +1 -1
- package/es/components/form/select/select.js +1 -1
- package/es/components/header/header.js +10 -10
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -3
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/icon/assets/logo_elastic.js +23 -17
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/key_pad_menu/key_pad_menu.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_elastic.styles.js +2 -2
- package/es/components/loading/loading_spinner.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/provider/provider.js +2 -2
- package/es/components/responsive/hide_for.js +1 -1
- package/es/components/responsive/show_for.js +1 -1
- package/es/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/es/components/search_bar/search_bar.js +3 -3
- package/es/components/search_bar/search_filters.js +2 -2
- package/es/components/selectable/selectable.js +13 -12
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/es/components/side_nav/side_nav.js +2 -2
- package/es/components/table/table_row_cell.js +1 -1
- package/es/components/timeline/timeline.js +1 -1
- package/es/components/toast/global_toast_list.js +27 -20
- package/es/components/tour/tour_step.js +1 -1
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/es/services/theme/hooks.js +11 -0
- package/es/services/theme/index.js +1 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/eui.d.ts +2175 -423
- package/lib/components/basic_table/basic_table.js +10 -9
- package/lib/components/basic_table/in_memory_table.js +18 -16
- package/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -2
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/lib/components/datagrid/body/data_grid_body.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/lib/components/datagrid/body/header/draggable_columns.js +1 -1
- package/lib/components/datagrid/controls/column_sorting.js +6 -6
- package/lib/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/lib/components/datagrid/utils/in_memory.js +3 -3
- package/lib/components/datagrid/utils/scrolling.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/lib/components/form/range/dual_range.js +1 -1
- package/lib/components/form/range/range.js +1 -1
- package/lib/components/form/range/range_track.js +1 -1
- package/lib/components/form/select/select.js +1 -1
- package/lib/components/header/header.js +10 -10
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/lib/components/icon/assets/logo_elastic.js +23 -17
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/lib/components/key_pad_menu/key_pad_menu.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_elastic.styles.js +2 -2
- package/lib/components/loading/loading_spinner.js +1 -1
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/provider/provider.js +2 -2
- package/lib/components/responsive/hide_for.js +1 -1
- package/lib/components/responsive/show_for.js +1 -1
- package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/lib/components/search_bar/search_bar.js +3 -3
- package/lib/components/search_bar/search_filters.js +2 -2
- package/lib/components/selectable/selectable.js +13 -12
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/lib/components/side_nav/side_nav.js +2 -2
- package/lib/components/table/table_row_cell.js +1 -1
- package/lib/components/timeline/timeline.js +1 -1
- package/lib/components/toast/global_toast_list.js +27 -20
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/lib/services/theme/hooks.js +12 -1
- package/lib/services/theme/index.js +6 -0
- package/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/es/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/es/components/form/select/select.js +1 -1
- package/optimize/es/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/selectable/selectable.js +10 -9
- package/optimize/es/components/toast/global_toast_list.js +24 -20
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/es/services/theme/hooks.js +11 -0
- package/optimize/es/services/theme/index.js +1 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/lib/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/optimize/lib/components/form/select/select.js +1 -1
- package/optimize/lib/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/optimize/lib/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/components/selectable/selectable.js +10 -9
- package/optimize/lib/components/toast/global_toast_list.js +24 -20
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/optimize/lib/services/theme/hooks.js +12 -1
- package/optimize/lib/services/theme/index.js +6 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/package.json +3 -5
- package/test-env/components/basic_table/basic_table.js +10 -9
- package/test-env/components/basic_table/in_memory_table.js +18 -16
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -2
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/test-env/components/datagrid/body/data_grid_body.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/test-env/components/datagrid/body/header/draggable_columns.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/test-env/components/datagrid/utils/in_memory.js +3 -3
- package/test-env/components/datagrid/utils/scrolling.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/test-env/components/form/range/dual_range.js +1 -1
- package/test-env/components/form/range/range.js +1 -1
- package/test-env/components/form/range/range_track.js +1 -1
- package/test-env/components/form/select/select.js +1 -1
- package/test-env/components/header/header.js +10 -10
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/test-env/components/icon/assets/logo_elastic.js +23 -17
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_elastic.styles.js +2 -2
- package/test-env/components/loading/loading_spinner.js +1 -1
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/components/responsive/hide_for.js +1 -1
- package/test-env/components/responsive/show_for.js +1 -1
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/test-env/components/search_bar/search_bar.js +3 -3
- package/test-env/components/search_bar/search_filters.js +2 -2
- package/test-env/components/selectable/selectable.js +13 -12
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/test-env/components/side_nav/side_nav.js +2 -2
- package/test-env/components/table/table_row_cell.js +1 -1
- package/test-env/components/timeline/timeline.js +1 -1
- package/test-env/components/toast/global_toast_list.js +24 -20
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
- package/test-env/services/theme/hooks.js +12 -1
- package/test-env/services/theme/index.js +6 -0
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/test-env/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_dark.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_light.json +427 -0
|
@@ -101,7 +101,7 @@ EuiBreadcrumbs.propTypes = {
|
|
|
101
101
|
css: _propTypes.default.any,
|
|
102
102
|
/**
|
|
103
103
|
* Hides extra (above the max) breadcrumbs under a collapsed item as the window gets smaller.
|
|
104
|
-
* Pass a custom
|
|
104
|
+
* Pass a custom {@link EuiBreadcrumbResponsiveMaxCount} object to change the number of breadcrumbs to show at the particular breakpoints.
|
|
105
105
|
*
|
|
106
106
|
* Pass `false` to turn this behavior off.
|
|
107
107
|
*
|
|
@@ -121,7 +121,7 @@ EuiBreadcrumbs.propTypes = {
|
|
|
121
121
|
*/
|
|
122
122
|
max: _propTypes.default.oneOfType([_propTypes.default.number.isRequired, _propTypes.default.oneOf([null])]),
|
|
123
123
|
/**
|
|
124
|
-
* The array of individual
|
|
124
|
+
* The array of individual {@link EuiBreadcrumb} items
|
|
125
125
|
*/
|
|
126
126
|
breadcrumbs: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
127
127
|
className: _propTypes.default.string,
|
|
@@ -123,7 +123,7 @@ EuiButtonGroup.propTypes = {
|
|
|
123
123
|
*/
|
|
124
124
|
type: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.oneOf(["single", "multi"]), _propTypes.default.oneOf(["single"])]), _propTypes.default.oneOf(["multi"])]),
|
|
125
125
|
/**
|
|
126
|
-
* An array of
|
|
126
|
+
* An array of {@link EuiButtonGroupOptionProps}
|
|
127
127
|
*/
|
|
128
128
|
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
129
129
|
/**
|
package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js
CHANGED
|
@@ -211,7 +211,7 @@ KibanaCollapsibleNavSolution.propTypes = {
|
|
|
211
211
|
*/
|
|
212
212
|
showToolTip: _propTypes.default.bool,
|
|
213
213
|
/**
|
|
214
|
-
* An object of
|
|
214
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
215
215
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
216
216
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
217
217
|
*/
|
|
@@ -87,7 +87,7 @@ EuiCollapsedNavItem.propTypes = {
|
|
|
87
87
|
/**
|
|
88
88
|
* Will render either an accordion or group of nested child item links.
|
|
89
89
|
*
|
|
90
|
-
* Accepts any
|
|
90
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
91
91
|
* subitem content, pass an object with a `renderItem` callback.
|
|
92
92
|
*/
|
|
93
93
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -135,7 +135,7 @@ EuiCollapsedNavItem.propTypes = {
|
|
|
135
135
|
/**
|
|
136
136
|
* Will render either an accordion or group of nested child item links.
|
|
137
137
|
*
|
|
138
|
-
* Accepts any
|
|
138
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
139
139
|
* subitem content, pass an object with a `renderItem` callback.
|
|
140
140
|
*/
|
|
141
141
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
@@ -133,7 +133,7 @@ EuiCollapsedNavPopover.propTypes = {
|
|
|
133
133
|
/**
|
|
134
134
|
* Will render either an accordion or group of nested child item links.
|
|
135
135
|
*
|
|
136
|
-
* Accepts any
|
|
136
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
137
137
|
* subitem content, pass an object with a `renderItem` callback.
|
|
138
138
|
*/
|
|
139
139
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -181,7 +181,7 @@ EuiCollapsedNavPopover.propTypes = {
|
|
|
181
181
|
/**
|
|
182
182
|
* Will render either an accordion or group of nested child item links.
|
|
183
183
|
*
|
|
184
|
-
* Accepts any
|
|
184
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
185
185
|
* subitem content, pass an object with a `renderItem` callback.
|
|
186
186
|
*/
|
|
187
187
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js
CHANGED
|
@@ -135,7 +135,7 @@ EuiCollapsibleNavItemDisplay.propTypes = {
|
|
|
135
135
|
/**
|
|
136
136
|
* Will render either an accordion or group of nested child item links.
|
|
137
137
|
*
|
|
138
|
-
* Accepts any
|
|
138
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
139
139
|
* subitem content, pass an object with a `renderItem` callback.
|
|
140
140
|
*/
|
|
141
141
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -250,7 +250,7 @@ EuiCollapsibleNavSubItem.propTypes = {
|
|
|
250
250
|
/**
|
|
251
251
|
* Will render either an accordion or group of nested child item links.
|
|
252
252
|
*
|
|
253
|
-
* Accepts any
|
|
253
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
254
254
|
* subitem content, pass an object with a `renderItem` callback.
|
|
255
255
|
*/
|
|
256
256
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
@@ -356,7 +356,7 @@ EuiCollapsibleNavSubItems.propTypes = {
|
|
|
356
356
|
/**
|
|
357
357
|
* Will render either an accordion or group of nested child item links.
|
|
358
358
|
*
|
|
359
|
-
* Accepts any
|
|
359
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
360
360
|
* subitem content, pass an object with a `renderItem` callback.
|
|
361
361
|
*/
|
|
362
362
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
@@ -438,7 +438,7 @@ EuiCollapsibleNavItem.propTypes = {
|
|
|
438
438
|
/**
|
|
439
439
|
* Will render either an accordion or group of nested child item links.
|
|
440
440
|
*
|
|
441
|
-
* Accepts any
|
|
441
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
442
442
|
* subitem content, pass an object with a `renderItem` callback.
|
|
443
443
|
*/
|
|
444
444
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -63,10 +63,10 @@ EuiColorPaletteDisplay.propTypes = {
|
|
|
63
63
|
"data-test-subj": _propTypes.default.string,
|
|
64
64
|
css: _propTypes.default.any,
|
|
65
65
|
/**
|
|
66
|
-
* Array of color `strings` or an array of
|
|
66
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
67
67
|
*/
|
|
68
68
|
/**
|
|
69
|
-
* Array of color `strings` or an array of
|
|
69
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
70
70
|
*/
|
|
71
71
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
72
72
|
};
|
package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js
CHANGED
|
@@ -53,7 +53,7 @@ EuiColorPaletteDisplayFixed.propTypes = {
|
|
|
53
53
|
"data-test-subj": _propTypes.default.string,
|
|
54
54
|
css: _propTypes.default.any,
|
|
55
55
|
/**
|
|
56
|
-
* Array of color `strings` or an array of
|
|
56
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
57
57
|
*/
|
|
58
58
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
59
59
|
};
|
package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js
CHANGED
|
@@ -44,7 +44,7 @@ EuiColorPaletteDisplayGradient.propTypes = {
|
|
|
44
44
|
"data-test-subj": _propTypes.default.string,
|
|
45
45
|
css: _propTypes.default.any,
|
|
46
46
|
/**
|
|
47
|
-
* Array of color `strings` or an array of
|
|
47
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
48
48
|
*/
|
|
49
49
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
50
50
|
};
|
|
@@ -177,7 +177,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
177
177
|
*/
|
|
178
178
|
selectionDisplay: _propTypes.default.oneOf(["palette", "title"]),
|
|
179
179
|
/**
|
|
180
|
-
* An array of one of the following objects:
|
|
180
|
+
* An array of one of the following objects: {@link EuiColorPalettePickerPaletteText}, {@link EuiColorPalettePickerPaletteFixed}, {@link EuiColorPalettePickerPaletteGradient}
|
|
181
181
|
*/
|
|
182
182
|
palettes: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
183
183
|
/**
|
|
@@ -193,7 +193,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
193
193
|
*/
|
|
194
194
|
type: _propTypes.default.oneOf(["text"]).isRequired,
|
|
195
195
|
/**
|
|
196
|
-
* Array of color `strings` or an array of
|
|
196
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
197
197
|
*/
|
|
198
198
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
199
199
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -221,7 +221,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
221
221
|
*/
|
|
222
222
|
type: _propTypes.default.oneOf(["fixed"]).isRequired,
|
|
223
223
|
/**
|
|
224
|
-
* Array of color `strings` or an array of
|
|
224
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
225
225
|
*/
|
|
226
226
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
227
227
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -249,7 +249,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
249
249
|
*/
|
|
250
250
|
type: _propTypes.default.oneOf(["gradient"]).isRequired,
|
|
251
251
|
/**
|
|
252
|
-
* Array of color `strings` or an array of
|
|
252
|
+
* Array of color `strings` or an array of {@link PaletteColorStop}. The stops must be numbers in an ordered range.
|
|
253
253
|
*/
|
|
254
254
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
255
255
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -418,7 +418,7 @@ EuiComboBoxOptionsList.propTypes = {
|
|
|
418
418
|
onOptionEnterKey: _propTypes.default.func,
|
|
419
419
|
onScroll: _propTypes.default.any,
|
|
420
420
|
/**
|
|
421
|
-
* Array of EuiComboBoxOptionOption objects. See
|
|
421
|
+
* Array of EuiComboBoxOptionOption objects. See {@link EuiComboBoxOptionOption}
|
|
422
422
|
*/
|
|
423
423
|
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
424
424
|
isGroupLabelOption: _propTypes.default.bool,
|
|
@@ -48,7 +48,7 @@ EuiCommentList.propTypes = {
|
|
|
48
48
|
"data-test-subj": _propTypes.default.string,
|
|
49
49
|
css: _propTypes.default.any,
|
|
50
50
|
/**
|
|
51
|
-
* List of comments to render. See
|
|
51
|
+
* List of comments to render. See {@link EuiComment}
|
|
52
52
|
*/
|
|
53
53
|
comments: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
54
54
|
/**
|
|
@@ -143,12 +143,12 @@ EuiDataGridCellContent.propTypes = {
|
|
|
143
143
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
144
144
|
/**
|
|
145
145
|
* A Schema to use for the column.
|
|
146
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
146
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
147
147
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
148
148
|
*/
|
|
149
149
|
schema: _propTypes.default.string,
|
|
150
150
|
/**
|
|
151
|
-
* Configuration of column actions. Set to false to disable or use
|
|
151
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
152
152
|
*/
|
|
153
153
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
154
154
|
/**
|
|
@@ -197,7 +197,7 @@ EuiDataGridCellContent.propTypes = {
|
|
|
197
197
|
*/
|
|
198
198
|
showToolTip: _propTypes.default.bool,
|
|
199
199
|
/**
|
|
200
|
-
* An object of
|
|
200
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
201
201
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
202
202
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
203
203
|
*/
|
|
@@ -533,7 +533,7 @@ EuiDataGridCellContent.propTypes = {
|
|
|
533
533
|
* Defines the height for a specific row. It can be line count or just height.
|
|
534
534
|
*
|
|
535
535
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
536
|
-
* toolbar control to `false` in
|
|
536
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
537
537
|
*/
|
|
538
538
|
rowHeights: _propTypes.default.any,
|
|
539
539
|
/**
|
|
@@ -577,7 +577,7 @@ EuiDataGridCellContent.propTypes = {
|
|
|
577
577
|
*/
|
|
578
578
|
stripes: _propTypes.default.bool,
|
|
579
579
|
/**
|
|
580
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
580
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
581
581
|
* @default shade
|
|
582
582
|
*/
|
|
583
583
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|
|
@@ -1079,12 +1079,12 @@ EuiDataGridCell.propTypes = {
|
|
|
1079
1079
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
1080
1080
|
/**
|
|
1081
1081
|
* A Schema to use for the column.
|
|
1082
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
1082
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
1083
1083
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
1084
1084
|
*/
|
|
1085
1085
|
schema: _propTypes.default.string,
|
|
1086
1086
|
/**
|
|
1087
|
-
* Configuration of column actions. Set to false to disable or use
|
|
1087
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
1088
1088
|
*/
|
|
1089
1089
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
1090
1090
|
/**
|
|
@@ -1403,7 +1403,7 @@ EuiDataGridCell.propTypes = {
|
|
|
1403
1403
|
* Defines the height for a specific row. It can be line count or just height.
|
|
1404
1404
|
*
|
|
1405
1405
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
1406
|
-
* toolbar control to `false` in
|
|
1406
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
1407
1407
|
*/
|
|
1408
1408
|
rowHeights: _propTypes.default.any,
|
|
1409
1409
|
/**
|
|
@@ -1450,7 +1450,7 @@ EuiDataGridCell.propTypes = {
|
|
|
1450
1450
|
*/
|
|
1451
1451
|
stripes: _propTypes.default.bool,
|
|
1452
1452
|
/**
|
|
1453
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
1453
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
1454
1454
|
* @default shade
|
|
1455
1455
|
*/
|
|
1456
1456
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|
|
@@ -143,12 +143,12 @@ EuiDataGridBody.propTypes = {
|
|
|
143
143
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
144
144
|
/**
|
|
145
145
|
* A Schema to use for the column.
|
|
146
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
146
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
147
147
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
148
148
|
*/
|
|
149
149
|
schema: _propTypes.default.string,
|
|
150
150
|
/**
|
|
151
|
-
* Configuration of column actions. Set to false to disable or use
|
|
151
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
152
152
|
*/
|
|
153
153
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
154
154
|
/**
|
|
@@ -197,7 +197,7 @@ EuiDataGridBody.propTypes = {
|
|
|
197
197
|
*/
|
|
198
198
|
showToolTip: _propTypes.default.bool,
|
|
199
199
|
/**
|
|
200
|
-
* An object of
|
|
200
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
201
201
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
202
202
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
203
203
|
*/
|
|
@@ -507,7 +507,7 @@ EuiDataGridBody.propTypes = {
|
|
|
507
507
|
schema: _propTypes.default.shape({}).isRequired,
|
|
508
508
|
schemaDetectors: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
509
509
|
/**
|
|
510
|
-
* The name of this data type, matches
|
|
510
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
511
511
|
*/
|
|
512
512
|
type: _propTypes.default.string.isRequired,
|
|
513
513
|
/**
|
|
@@ -535,7 +535,7 @@ EuiDataGridBody.propTypes = {
|
|
|
535
535
|
*/
|
|
536
536
|
sortTextDesc: _propTypes.default.node.isRequired,
|
|
537
537
|
/**
|
|
538
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
538
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
539
539
|
*/
|
|
540
540
|
isSortable: _propTypes.default.bool,
|
|
541
541
|
/**
|
|
@@ -543,7 +543,7 @@ EuiDataGridBody.propTypes = {
|
|
|
543
543
|
*/
|
|
544
544
|
textTransform: _propTypes.default.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
545
545
|
/**
|
|
546
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
546
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
547
547
|
*/
|
|
548
548
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"])
|
|
549
549
|
}).isRequired).isRequired,
|
|
@@ -576,7 +576,12 @@ EuiDataGridBody.propTypes = {
|
|
|
576
576
|
setVisibleColumns: _propTypes.default.func.isRequired,
|
|
577
577
|
switchColumnPos: _propTypes.default.func.isRequired,
|
|
578
578
|
onColumnResize: _propTypes.default.func,
|
|
579
|
-
virtualizationOptions: _propTypes.default.
|
|
579
|
+
virtualizationOptions: _propTypes.default.shape({
|
|
580
|
+
/**
|
|
581
|
+
* Called when the grid scroll positions changes, as a result of user scrolling or scroll-to method calls.
|
|
582
|
+
*/
|
|
583
|
+
onScroll: _propTypes.default.func
|
|
584
|
+
}),
|
|
580
585
|
rowHeightsOptions: _propTypes.default.shape({
|
|
581
586
|
/**
|
|
582
587
|
* Defines the default size for all rows. It can be line count or just height.
|
|
@@ -597,7 +602,7 @@ EuiDataGridBody.propTypes = {
|
|
|
597
602
|
* Defines the height for a specific row. It can be line count or just height.
|
|
598
603
|
*
|
|
599
604
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
600
|
-
* toolbar control to `false` in
|
|
605
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
601
606
|
*/
|
|
602
607
|
rowHeights: _propTypes.default.any,
|
|
603
608
|
/**
|
|
@@ -640,7 +645,7 @@ EuiDataGridBody.propTypes = {
|
|
|
640
645
|
*/
|
|
641
646
|
stripes: _propTypes.default.bool,
|
|
642
647
|
/**
|
|
643
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
648
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
644
649
|
* @default shade
|
|
645
650
|
*/
|
|
646
651
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|
|
@@ -299,12 +299,12 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
299
299
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
300
300
|
/**
|
|
301
301
|
* A Schema to use for the column.
|
|
302
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
302
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
303
303
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
304
304
|
*/
|
|
305
305
|
schema: _propTypes.default.string,
|
|
306
306
|
/**
|
|
307
|
-
* Configuration of column actions. Set to false to disable or use
|
|
307
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
308
308
|
*/
|
|
309
309
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
310
310
|
/**
|
|
@@ -353,7 +353,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
353
353
|
*/
|
|
354
354
|
showToolTip: _propTypes.default.bool,
|
|
355
355
|
/**
|
|
356
|
-
* An object of
|
|
356
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
357
357
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
358
358
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
359
359
|
*/
|
|
@@ -663,7 +663,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
663
663
|
schema: _propTypes.default.shape({}).isRequired,
|
|
664
664
|
schemaDetectors: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
665
665
|
/**
|
|
666
|
-
* The name of this data type, matches
|
|
666
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
667
667
|
*/
|
|
668
668
|
type: _propTypes.default.string.isRequired,
|
|
669
669
|
/**
|
|
@@ -691,7 +691,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
691
691
|
*/
|
|
692
692
|
sortTextDesc: _propTypes.default.node.isRequired,
|
|
693
693
|
/**
|
|
694
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
694
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
695
695
|
*/
|
|
696
696
|
isSortable: _propTypes.default.bool,
|
|
697
697
|
/**
|
|
@@ -699,7 +699,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
699
699
|
*/
|
|
700
700
|
textTransform: _propTypes.default.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
701
701
|
/**
|
|
702
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
702
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
703
703
|
*/
|
|
704
704
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"])
|
|
705
705
|
}).isRequired).isRequired,
|
|
@@ -732,7 +732,12 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
732
732
|
setVisibleColumns: _propTypes.default.func.isRequired,
|
|
733
733
|
switchColumnPos: _propTypes.default.func.isRequired,
|
|
734
734
|
onColumnResize: _propTypes.default.func,
|
|
735
|
-
virtualizationOptions: _propTypes.default.
|
|
735
|
+
virtualizationOptions: _propTypes.default.shape({
|
|
736
|
+
/**
|
|
737
|
+
* Called when the grid scroll positions changes, as a result of user scrolling or scroll-to method calls.
|
|
738
|
+
*/
|
|
739
|
+
onScroll: _propTypes.default.func
|
|
740
|
+
}),
|
|
736
741
|
rowHeightsOptions: _propTypes.default.shape({
|
|
737
742
|
/**
|
|
738
743
|
* Defines the default size for all rows. It can be line count or just height.
|
|
@@ -753,7 +758,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
753
758
|
* Defines the height for a specific row. It can be line count or just height.
|
|
754
759
|
*
|
|
755
760
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
756
|
-
* toolbar control to `false` in
|
|
761
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
757
762
|
*/
|
|
758
763
|
rowHeights: _propTypes.default.any,
|
|
759
764
|
/**
|
|
@@ -796,7 +801,7 @@ EuiDataGridBodyCustomRender.propTypes = {
|
|
|
796
801
|
*/
|
|
797
802
|
stripes: _propTypes.default.bool,
|
|
798
803
|
/**
|
|
799
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
804
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
800
805
|
* @default shade
|
|
801
806
|
*/
|
|
802
807
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|
|
@@ -309,6 +309,48 @@ var EuiDataGridBodyVirtualized = exports.EuiDataGridBodyVirtualized = /*#__PURE_
|
|
|
309
309
|
footerRow: footerRow
|
|
310
310
|
};
|
|
311
311
|
}, [headerRowHeight, headerRow, footerRow]);
|
|
312
|
+
var onScroll = (0, _react.useCallback)(function (args) {
|
|
313
|
+
// check only if a callback is passed
|
|
314
|
+
if (typeof (virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : virtualizationOptions.onScroll) !== 'function') return;
|
|
315
|
+
var enhancedArgs = _objectSpread(_objectSpread({}, args), {}, {
|
|
316
|
+
scrollHeight: 0,
|
|
317
|
+
scrollWidth: 0,
|
|
318
|
+
clientHeight: 0,
|
|
319
|
+
clientWidth: 0,
|
|
320
|
+
isScrolledToBlockStart: args.scrollTop === 0,
|
|
321
|
+
isScrolledToBlockEnd: false,
|
|
322
|
+
isScrolledToInlineStart: args.scrollLeft === 0,
|
|
323
|
+
isScrolledToInlineEnd: false
|
|
324
|
+
});
|
|
325
|
+
if (outerGridRef.current) {
|
|
326
|
+
var _outerGridRef$current = outerGridRef.current,
|
|
327
|
+
scrollTop = _outerGridRef$current.scrollTop,
|
|
328
|
+
scrollLeft = _outerGridRef$current.scrollLeft,
|
|
329
|
+
scrollHeight = _outerGridRef$current.scrollHeight,
|
|
330
|
+
scrollWidth = _outerGridRef$current.scrollWidth,
|
|
331
|
+
clientHeight = _outerGridRef$current.clientHeight,
|
|
332
|
+
clientWidth = _outerGridRef$current.clientWidth;
|
|
333
|
+
var isScrollableVertical = scrollHeight > clientHeight;
|
|
334
|
+
var isScrolledToBlockStart = scrollTop === 0;
|
|
335
|
+
var isScrollableHorizontal = scrollWidth > clientWidth;
|
|
336
|
+
var isScrolledToInlineStart = scrollLeft === 0;
|
|
337
|
+
var isScrolledToBlockEnd = isScrollableVertical && !isScrolledToBlockStart && scrollHeight - scrollTop <= clientHeight;
|
|
338
|
+
var isScrolledToInlineEnd = isScrollableHorizontal && !isScrolledToInlineStart && scrollWidth - scrollLeft <= clientWidth;
|
|
339
|
+
enhancedArgs = _objectSpread(_objectSpread({}, enhancedArgs), {}, {
|
|
340
|
+
scrollTop: scrollTop,
|
|
341
|
+
scrollLeft: scrollLeft,
|
|
342
|
+
scrollHeight: scrollHeight,
|
|
343
|
+
scrollWidth: scrollWidth,
|
|
344
|
+
clientHeight: clientHeight,
|
|
345
|
+
clientWidth: clientWidth,
|
|
346
|
+
isScrolledToBlockStart: isScrolledToBlockStart,
|
|
347
|
+
isScrolledToBlockEnd: isScrolledToBlockEnd,
|
|
348
|
+
isScrolledToInlineStart: isScrolledToInlineStart,
|
|
349
|
+
isScrolledToInlineEnd: isScrolledToInlineEnd
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
return virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : virtualizationOptions.onScroll(enhancedArgs);
|
|
353
|
+
}, [outerGridRef, virtualizationOptions]);
|
|
312
354
|
return _utils.IS_JEST_ENVIRONMENT || finalWidth > 0 ? (0, _react2.jsx)(DataGridWrapperRowsContext.Provider, {
|
|
313
355
|
value: rowWrapperContextValue
|
|
314
356
|
}, (0, _react2.jsx)(_reactWindow.VariableSizeGrid, (0, _extends2.default)({}, virtualizationOptions, {
|
|
@@ -324,7 +366,8 @@ var EuiDataGridBodyVirtualized = exports.EuiDataGridBodyVirtualized = /*#__PURE_
|
|
|
324
366
|
height: finalHeight,
|
|
325
367
|
rowHeight: getRowHeight,
|
|
326
368
|
itemData: itemData,
|
|
327
|
-
rowCount: _utils.IS_JEST_ENVIRONMENT || headerRowHeight > 0 ? visibleRowCount : 0
|
|
369
|
+
rowCount: _utils.IS_JEST_ENVIRONMENT || headerRowHeight > 0 ? visibleRowCount : 0,
|
|
370
|
+
onScroll: onScroll
|
|
328
371
|
}), Cell), scrollBorderOverlay) : null;
|
|
329
372
|
});
|
|
330
373
|
EuiDataGridBodyVirtualized.propTypes = {
|
|
@@ -431,12 +474,12 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
431
474
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
432
475
|
/**
|
|
433
476
|
* A Schema to use for the column.
|
|
434
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
477
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
435
478
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
436
479
|
*/
|
|
437
480
|
schema: _propTypes.default.string,
|
|
438
481
|
/**
|
|
439
|
-
* Configuration of column actions. Set to false to disable or use
|
|
482
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
440
483
|
*/
|
|
441
484
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
442
485
|
/**
|
|
@@ -485,7 +528,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
485
528
|
*/
|
|
486
529
|
showToolTip: _propTypes.default.bool,
|
|
487
530
|
/**
|
|
488
|
-
* An object of
|
|
531
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
489
532
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
490
533
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
491
534
|
*/
|
|
@@ -795,7 +838,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
795
838
|
schema: _propTypes.default.shape({}).isRequired,
|
|
796
839
|
schemaDetectors: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
797
840
|
/**
|
|
798
|
-
* The name of this data type, matches
|
|
841
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
799
842
|
*/
|
|
800
843
|
type: _propTypes.default.string.isRequired,
|
|
801
844
|
/**
|
|
@@ -823,7 +866,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
823
866
|
*/
|
|
824
867
|
sortTextDesc: _propTypes.default.node.isRequired,
|
|
825
868
|
/**
|
|
826
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
869
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
827
870
|
*/
|
|
828
871
|
isSortable: _propTypes.default.bool,
|
|
829
872
|
/**
|
|
@@ -831,7 +874,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
831
874
|
*/
|
|
832
875
|
textTransform: _propTypes.default.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
833
876
|
/**
|
|
834
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
877
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
835
878
|
*/
|
|
836
879
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"])
|
|
837
880
|
}).isRequired).isRequired,
|
|
@@ -864,7 +907,12 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
864
907
|
setVisibleColumns: _propTypes.default.func.isRequired,
|
|
865
908
|
switchColumnPos: _propTypes.default.func.isRequired,
|
|
866
909
|
onColumnResize: _propTypes.default.func,
|
|
867
|
-
virtualizationOptions: _propTypes.default.
|
|
910
|
+
virtualizationOptions: _propTypes.default.shape({
|
|
911
|
+
/**
|
|
912
|
+
* Called when the grid scroll positions changes, as a result of user scrolling or scroll-to method calls.
|
|
913
|
+
*/
|
|
914
|
+
onScroll: _propTypes.default.func
|
|
915
|
+
}),
|
|
868
916
|
rowHeightsOptions: _propTypes.default.shape({
|
|
869
917
|
/**
|
|
870
918
|
* Defines the default size for all rows. It can be line count or just height.
|
|
@@ -885,7 +933,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
885
933
|
* Defines the height for a specific row. It can be line count or just height.
|
|
886
934
|
*
|
|
887
935
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
888
|
-
* toolbar control to `false` in
|
|
936
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
889
937
|
*/
|
|
890
938
|
rowHeights: _propTypes.default.any,
|
|
891
939
|
/**
|
|
@@ -928,7 +976,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
928
976
|
*/
|
|
929
977
|
stripes: _propTypes.default.bool,
|
|
930
978
|
/**
|
|
931
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
979
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
932
980
|
* @default shade
|
|
933
981
|
*/
|
|
934
982
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|
|
@@ -177,12 +177,12 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
177
177
|
defaultSortDirection: _propTypes.default.oneOf(["asc", "desc"]),
|
|
178
178
|
/**
|
|
179
179
|
* A Schema to use for the column.
|
|
180
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
180
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
181
181
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
182
182
|
*/
|
|
183
183
|
schema: _propTypes.default.string,
|
|
184
184
|
/**
|
|
185
|
-
* Configuration of column actions. Set to false to disable or use
|
|
185
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
186
186
|
*/
|
|
187
187
|
actions: _propTypes.default.oneOfType([_propTypes.default.oneOf([false]), _propTypes.default.shape({
|
|
188
188
|
/**
|
|
@@ -231,7 +231,7 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
231
231
|
*/
|
|
232
232
|
showToolTip: _propTypes.default.bool,
|
|
233
233
|
/**
|
|
234
|
-
* An object of
|
|
234
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
235
235
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
236
236
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
237
237
|
*/
|
|
@@ -215,7 +215,7 @@ DraggableColumn.propTypes = {
|
|
|
215
215
|
*/
|
|
216
216
|
stripes: _propTypes.default.bool,
|
|
217
217
|
/**
|
|
218
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
218
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
219
219
|
* @default shade
|
|
220
220
|
*/
|
|
221
221
|
header: _propTypes.default.oneOf(["shade", "underline"]),
|