@elastic/eui 93.3.0 → 93.4.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.d.ts +9 -0
- package/dist/eui_charts_theme.js +56 -14
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/breadcrumbs/_breadcrumb_content.js +362 -0
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +48 -0
- package/es/components/breadcrumbs/breadcrumb.js +10 -327
- package/es/components/breadcrumbs/breadcrumb.styles.js +5 -27
- package/es/components/breadcrumbs/breadcrumbs.js +4 -4
- package/es/components/breadcrumbs/types.js +1 -0
- package/es/components/button/button_group/button_group.js +16 -2
- package/es/components/button/button_group/button_group.styles.js +1 -1
- package/es/components/button/button_group/button_group_button.js +59 -5
- package/es/components/button/button_group/button_group_button.styles.js +39 -3
- package/es/components/datagrid/body/cell/data_grid_cell.js +97 -58
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/es/components/datagrid/body/cell/data_grid_cell_popover.js +64 -56
- package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/es/components/datagrid/body/cell/index.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -0
- package/es/components/datagrid/body/data_grid_body_custom.js +52 -36
- package/es/components/datagrid/body/data_grid_body_virtualized.js +84 -56
- package/es/components/datagrid/body/data_grid_row_manager.js +6 -4
- package/es/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +5 -4
- package/es/components/datagrid/body/header/data_grid_header_cell.js +73 -53
- package/es/components/datagrid/body/header/data_grid_header_row.js +15 -551
- package/es/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/es/components/datagrid/controls/column_selector.js +126 -123
- package/es/components/datagrid/controls/column_sorting.js +605 -103
- package/es/components/datagrid/controls/column_sorting_draggable.js +24 -22
- package/es/components/datagrid/controls/display_selector.js +109 -107
- package/es/components/datagrid/data_grid.a11y.js +13 -12
- package/es/components/datagrid/data_grid.js +45 -22
- package/es/components/datagrid/utils/col_widths.js +12 -8
- package/es/components/datagrid/utils/focus.js +10 -8
- package/es/components/datagrid/utils/grid_height_width.js +31 -30
- package/es/components/datagrid/utils/ref.js +1 -1
- package/es/components/datagrid/utils/row_heights.js +2 -2
- package/es/components/datagrid/utils/sorting.js +29 -27
- package/es/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/es/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/es/components/flex/flex_grid.js +22 -8
- package/es/components/flex/flex_grid.styles.js +13 -6
- package/es/components/flex/flex_group.js +10 -11
- package/es/components/flex/flex_item.js +9 -11
- package/es/components/flex/flex_item.styles.js +107 -122
- package/es/components/flyout/flyout.js +16 -18
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/es/components/modal/confirm_modal.js +2 -1
- package/es/components/modal/modal.js +12 -3
- package/es/components/observer/resize_observer/resize_observer.js +15 -24
- package/es/components/spacer/spacer.js +2 -3
- package/es/components/toast/global_toast_list.js +70 -73
- package/es/components/toast/toast.js +27 -42
- package/es/components/toast/toast.styles.js +2 -17
- package/es/services/color/eui_palettes.js +21 -13
- package/es/services/color/index.js +1 -1
- package/es/services/hooks/index.js +1 -0
- package/es/services/hooks/useDeepEqual.js +23 -0
- package/es/services/index.js +1 -1
- package/eui.d.ts +2442 -2337
- package/i18ntokens.json +259 -259
- package/lib/components/breadcrumbs/_breadcrumb_content.js +372 -0
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/lib/components/breadcrumbs/breadcrumb.js +11 -331
- package/lib/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/lib/components/breadcrumbs/breadcrumbs.js +3 -3
- package/lib/components/breadcrumbs/types.js +5 -0
- package/lib/components/button/button_group/button_group.js +16 -2
- package/lib/components/button/button_group/button_group.styles.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +59 -5
- package/lib/components/button/button_group/button_group_button.styles.js +45 -11
- package/lib/components/datagrid/body/cell/data_grid_cell.js +95 -57
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/lib/components/datagrid/body/cell/index.js +2 -2
- package/lib/components/datagrid/body/data_grid_body.js +13 -0
- package/lib/components/datagrid/body/data_grid_body_custom.js +51 -35
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +83 -55
- package/lib/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/lib/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +72 -52
- package/lib/components/datagrid/body/header/data_grid_header_row.js +14 -550
- package/lib/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/lib/components/datagrid/controls/column_selector.js +126 -123
- package/lib/components/datagrid/controls/column_sorting.js +615 -110
- package/lib/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/lib/components/datagrid/controls/display_selector.js +109 -107
- package/lib/components/datagrid/data_grid.a11y.js +13 -12
- package/lib/components/datagrid/data_grid.js +43 -20
- package/lib/components/datagrid/utils/col_widths.js +12 -8
- package/lib/components/datagrid/utils/focus.js +10 -8
- package/lib/components/datagrid/utils/grid_height_width.js +29 -28
- package/lib/components/datagrid/utils/ref.js +1 -1
- package/lib/components/datagrid/utils/row_heights.js +1 -1
- package/lib/components/datagrid/utils/sorting.js +31 -29
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/lib/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/lib/components/flex/flex_grid.js +23 -7
- package/lib/components/flex/flex_grid.styles.js +13 -6
- package/lib/components/flex/flex_group.js +10 -10
- package/lib/components/flex/flex_item.js +13 -13
- package/lib/components/flex/flex_item.styles.js +107 -122
- package/lib/components/flyout/flyout.js +16 -18
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/lib/components/modal/confirm_modal.js +2 -1
- package/lib/components/modal/modal.js +12 -3
- package/lib/components/observer/resize_observer/resize_observer.js +15 -24
- package/lib/components/spacer/spacer.js +1 -2
- package/lib/components/toast/global_toast_list.js +68 -71
- package/lib/components/toast/toast.js +25 -40
- package/lib/components/toast/toast.styles.js +11 -25
- package/lib/services/color/eui_palettes.js +24 -14
- package/lib/services/color/index.js +14 -0
- package/lib/services/hooks/index.js +11 -0
- package/lib/services/hooks/useDeepEqual.js +30 -0
- package/lib/services/index.js +15 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +153 -0
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +48 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.js +10 -110
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +5 -27
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +4 -4
- package/optimize/es/components/breadcrumbs/types.js +1 -0
- package/optimize/es/components/button/button_group/button_group.js +2 -2
- package/optimize/es/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +36 -4
- package/optimize/es/components/button/button_group/button_group_button.styles.js +39 -3
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +80 -55
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +64 -56
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/optimize/es/components/datagrid/body/cell/index.js +1 -1
- package/optimize/es/components/datagrid/body/data_grid_body_custom.js +39 -36
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +69 -49
- package/optimize/es/components/datagrid/body/data_grid_row_manager.js +6 -4
- package/optimize/es/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +4 -3
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +65 -49
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +15 -13
- package/optimize/es/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/optimize/es/components/datagrid/controls/column_selector.js +126 -123
- package/optimize/es/components/datagrid/controls/column_sorting.js +121 -103
- package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +24 -22
- package/optimize/es/components/datagrid/controls/display_selector.js +109 -107
- package/optimize/es/components/datagrid/data_grid.a11y.js +13 -12
- package/optimize/es/components/datagrid/data_grid.js +45 -22
- package/optimize/es/components/datagrid/utils/col_widths.js +9 -5
- package/optimize/es/components/datagrid/utils/focus.js +10 -8
- package/optimize/es/components/datagrid/utils/grid_height_width.js +31 -30
- package/optimize/es/components/datagrid/utils/ref.js +1 -1
- package/optimize/es/components/datagrid/utils/row_heights.js +2 -2
- package/optimize/es/components/datagrid/utils/sorting.js +29 -27
- package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +49 -29
- package/optimize/es/components/flex/flex_grid.js +19 -8
- package/optimize/es/components/flex/flex_grid.styles.js +13 -6
- package/optimize/es/components/flex/flex_group.js +9 -10
- package/optimize/es/components/flex/flex_item.js +9 -11
- package/optimize/es/components/flex/flex_item.styles.js +107 -122
- package/optimize/es/components/flyout/flyout.js +16 -18
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/optimize/es/components/modal/confirm_modal.js +2 -1
- package/optimize/es/components/modal/modal.js +6 -2
- package/optimize/es/components/observer/resize_observer/resize_observer.js +15 -24
- package/optimize/es/components/spacer/spacer.js +2 -3
- package/optimize/es/components/toast/global_toast_list.js +70 -73
- package/optimize/es/components/toast/toast.js +27 -42
- package/optimize/es/components/toast/toast.styles.js +2 -17
- package/optimize/es/services/color/eui_palettes.js +21 -13
- package/optimize/es/services/color/index.js +1 -1
- package/optimize/es/services/hooks/index.js +1 -0
- package/optimize/es/services/hooks/useDeepEqual.js +23 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +163 -0
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.js +10 -113
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +3 -3
- package/optimize/lib/components/breadcrumbs/types.js +5 -0
- package/optimize/lib/components/button/button_group/button_group.js +2 -2
- package/optimize/lib/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.js +37 -5
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +45 -11
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +78 -54
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/optimize/lib/components/datagrid/body/cell/index.js +2 -2
- package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +38 -35
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +70 -50
- package/optimize/lib/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/optimize/lib/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +65 -49
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +14 -12
- package/optimize/lib/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/optimize/lib/components/datagrid/controls/column_selector.js +126 -123
- package/optimize/lib/components/datagrid/controls/column_sorting.js +125 -107
- package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/optimize/lib/components/datagrid/controls/display_selector.js +109 -107
- package/optimize/lib/components/datagrid/data_grid.a11y.js +13 -12
- package/optimize/lib/components/datagrid/data_grid.js +43 -20
- package/optimize/lib/components/datagrid/utils/col_widths.js +9 -5
- package/optimize/lib/components/datagrid/utils/focus.js +10 -8
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +29 -28
- package/optimize/lib/components/datagrid/utils/ref.js +1 -1
- package/optimize/lib/components/datagrid/utils/row_heights.js +1 -1
- package/optimize/lib/components/datagrid/utils/sorting.js +31 -29
- package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +49 -29
- package/optimize/lib/components/flex/flex_grid.js +21 -7
- package/optimize/lib/components/flex/flex_grid.styles.js +13 -6
- package/optimize/lib/components/flex/flex_group.js +9 -9
- package/optimize/lib/components/flex/flex_item.js +13 -13
- package/optimize/lib/components/flex/flex_item.styles.js +107 -122
- package/optimize/lib/components/flyout/flyout.js +16 -18
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/optimize/lib/components/modal/confirm_modal.js +2 -1
- package/optimize/lib/components/modal/modal.js +6 -2
- package/optimize/lib/components/observer/resize_observer/resize_observer.js +15 -24
- package/optimize/lib/components/spacer/spacer.js +1 -2
- package/optimize/lib/components/toast/global_toast_list.js +68 -71
- package/optimize/lib/components/toast/toast.js +25 -40
- package/optimize/lib/components/toast/toast.styles.js +11 -25
- package/optimize/lib/services/color/eui_palettes.js +24 -14
- package/optimize/lib/services/color/index.js +14 -0
- package/optimize/lib/services/hooks/index.js +11 -0
- package/optimize/lib/services/hooks/useDeepEqual.js +30 -0
- package/optimize/lib/services/index.js +15 -1
- package/package.json +2 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +363 -0
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/test-env/components/breadcrumbs/breadcrumb.js +11 -326
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/test-env/components/breadcrumbs/breadcrumbs.js +3 -3
- package/test-env/components/breadcrumbs/types.js +5 -0
- package/test-env/components/button/button_group/button_group.js +16 -2
- package/test-env/components/button/button_group/button_group.styles.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +56 -5
- package/test-env/components/button/button_group/button_group_button.styles.js +45 -11
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +95 -57
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/test-env/components/datagrid/body/cell/index.js +2 -2
- package/test-env/components/datagrid/body/data_grid_body.js +13 -0
- package/test-env/components/datagrid/body/data_grid_body_custom.js +51 -35
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +83 -55
- package/test-env/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/test-env/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +72 -52
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +14 -550
- package/test-env/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/test-env/components/datagrid/controls/column_selector.js +126 -123
- package/test-env/components/datagrid/controls/column_sorting.js +607 -106
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/test-env/components/datagrid/controls/display_selector.js +109 -107
- package/test-env/components/datagrid/data_grid.a11y.js +13 -12
- package/test-env/components/datagrid/data_grid.js +43 -20
- package/test-env/components/datagrid/utils/col_widths.js +9 -5
- package/test-env/components/datagrid/utils/focus.js +10 -8
- package/test-env/components/datagrid/utils/grid_height_width.js +29 -28
- package/test-env/components/datagrid/utils/ref.js +1 -1
- package/test-env/components/datagrid/utils/row_heights.js +1 -1
- package/test-env/components/datagrid/utils/sorting.js +31 -29
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/test-env/components/flex/flex_grid.js +21 -7
- package/test-env/components/flex/flex_grid.styles.js +13 -6
- package/test-env/components/flex/flex_group.js +10 -10
- package/test-env/components/flex/flex_item.js +13 -13
- package/test-env/components/flex/flex_item.styles.js +107 -122
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/test-env/components/modal/confirm_modal.js +2 -1
- package/test-env/components/modal/modal.js +12 -3
- package/test-env/components/spacer/spacer.js +1 -2
- package/test-env/components/toast/global_toast_list.js +68 -71
- package/test-env/components/toast/toast.js +25 -40
- package/test-env/components/toast/toast.styles.js +11 -25
- package/test-env/services/color/eui_palettes.js +24 -14
- package/test-env/services/color/index.js +14 -0
- package/test-env/services/hooks/index.js +11 -0
- package/test-env/services/hooks/useDeepEqual.js +30 -0
- package/test-env/services/index.js +15 -1
- package/src/themes/charts/theme.scss +0 -5
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext, useMemo, useCallback } from 'react';
|
|
10
|
+
import { useDeepEqual } from '../../../services';
|
|
10
11
|
import { defaultComparator } from './data_grid_schema';
|
|
11
|
-
export var
|
|
12
|
-
sorting: undefined,
|
|
12
|
+
export var DataGridSortedContext = /*#__PURE__*/createContext({
|
|
13
13
|
sortedRowMap: [],
|
|
14
14
|
getCorrectRowIndex: function getCorrectRowIndex(number) {
|
|
15
15
|
return number;
|
|
@@ -22,22 +22,18 @@ export var useSorting = function useSorting(_ref) {
|
|
|
22
22
|
schema = _ref.schema,
|
|
23
23
|
schemaDetectors = _ref.schemaDetectors,
|
|
24
24
|
startRow = _ref.startRow;
|
|
25
|
-
var sortingColumns = sorting === null || sorting === void 0 ? void 0 : sorting.columns;
|
|
26
|
-
var
|
|
27
|
-
var rowMap = [];
|
|
25
|
+
var sortingColumns = useDeepEqual(sorting === null || sorting === void 0 ? void 0 : sorting.columns);
|
|
26
|
+
var sortedWrappedValues = useMemo(function () {
|
|
28
27
|
if ((inMemory === null || inMemory === void 0 ? void 0 : inMemory.level) === 'sorting' && sortingColumns != null && sortingColumns.length > 0) {
|
|
29
28
|
var inMemoryRowIndices = Object.keys(inMemoryValues);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
wrappedValues.sort(function (a, b) {
|
|
39
|
-
for (var _i = 0; _i < sortingColumns.length; _i++) {
|
|
40
|
-
var column = sortingColumns[_i];
|
|
29
|
+
return inMemoryRowIndices.map(function (row, index) {
|
|
30
|
+
return {
|
|
31
|
+
index: index,
|
|
32
|
+
values: inMemoryValues[row]
|
|
33
|
+
};
|
|
34
|
+
}).sort(function (a, b) {
|
|
35
|
+
for (var i = 0; i < sortingColumns.length; i++) {
|
|
36
|
+
var column = sortingColumns[i];
|
|
41
37
|
var aValue = a.values[column.id];
|
|
42
38
|
var bValue = b.values[column.id];
|
|
43
39
|
|
|
@@ -45,8 +41,8 @@ export var useSorting = function useSorting(_ref) {
|
|
|
45
41
|
var comparator = defaultComparator;
|
|
46
42
|
if (schema.hasOwnProperty(column.id)) {
|
|
47
43
|
var columnType = schema[column.id].columnType;
|
|
48
|
-
for (var
|
|
49
|
-
var detector = schemaDetectors[
|
|
44
|
+
for (var _i = 0; _i < schemaDetectors.length; _i++) {
|
|
45
|
+
var detector = schemaDetectors[_i];
|
|
50
46
|
if (detector.type === columnType && detector.hasOwnProperty('comparator')) {
|
|
51
47
|
comparator = detector.comparator;
|
|
52
48
|
}
|
|
@@ -61,12 +57,17 @@ export var useSorting = function useSorting(_ref) {
|
|
|
61
57
|
}
|
|
62
58
|
return 0;
|
|
63
59
|
});
|
|
64
|
-
for (var _i3 = 0; _i3 < wrappedValues.length; _i3++) {
|
|
65
|
-
rowMap[_i3] = wrappedValues[_i3].index;
|
|
66
|
-
}
|
|
67
60
|
}
|
|
68
|
-
return rowMap;
|
|
69
61
|
}, [inMemory === null || inMemory === void 0 ? void 0 : inMemory.level, inMemoryValues, sortingColumns, schema, schemaDetectors]);
|
|
62
|
+
var sortedRowMap = useMemo(function () {
|
|
63
|
+
if ((inMemory === null || inMemory === void 0 ? void 0 : inMemory.level) === 'sorting' && sortingColumns != null && sortingColumns.length > 0 && sortedWrappedValues != null) {
|
|
64
|
+
return sortedWrappedValues.map(function (row) {
|
|
65
|
+
return row.index;
|
|
66
|
+
});
|
|
67
|
+
} else {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
}, [inMemory === null || inMemory === void 0 ? void 0 : inMemory.level, sortingColumns, sortedWrappedValues]);
|
|
70
71
|
|
|
71
72
|
// Given a visible row index, obtain the unpaginated & unsorted
|
|
72
73
|
// row index from the passed cell data
|
|
@@ -76,9 +77,10 @@ export var useSorting = function useSorting(_ref) {
|
|
|
76
77
|
var unsortedRowIndex = unpaginatedRowIndex in sortedRowMap ? sortedRowMap[unpaginatedRowIndex] : unpaginatedRowIndex;
|
|
77
78
|
return unsortedRowIndex;
|
|
78
79
|
}, [startRow, sortedRowMap]);
|
|
79
|
-
return {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
return useMemo(function () {
|
|
81
|
+
return {
|
|
82
|
+
sortedRowMap: sortedRowMap,
|
|
83
|
+
getCorrectRowIndex: getCorrectRowIndex
|
|
84
|
+
};
|
|
85
|
+
}, [sortedRowMap, getCorrectRowIndex]);
|
|
84
86
|
};
|
|
@@ -7,7 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
-
var _excluded = ["className", "needsUpdate", "isLoading", "isDisabled", "onClick", "toolTipProps", "showTooltip", "iconOnly", "responsive", "textProps", "fill"];
|
|
10
|
+
var _excluded = ["children", "className", "needsUpdate", "isLoading", "isDisabled", "onClick", "toolTipProps", "showTooltip", "iconOnly", "responsive", "textProps", "fill"];
|
|
11
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -82,6 +82,7 @@ export var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
key: "render",
|
|
83
83
|
value: function render() {
|
|
84
84
|
var _this$props = this.props,
|
|
85
|
+
children = _this$props.children,
|
|
85
86
|
className = _this$props.className,
|
|
86
87
|
needsUpdate = _this$props.needsUpdate,
|
|
87
88
|
isLoading = _this$props.isLoading,
|
|
@@ -97,31 +98,6 @@ export var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
97
98
|
// Force responsive for "all" if `iconOnly = true`
|
|
98
99
|
var responsive = iconOnly ? 'all' : _responsive;
|
|
99
100
|
var classes = classNames('euiSuperUpdateButton', className);
|
|
100
|
-
var buttonText = ___EmotionJSX(EuiI18n, {
|
|
101
|
-
token: "euiSuperUpdateButton.refreshButtonLabel",
|
|
102
|
-
default: "Refresh"
|
|
103
|
-
});
|
|
104
|
-
if (needsUpdate || isLoading) {
|
|
105
|
-
buttonText = isLoading ? ___EmotionJSX(EuiI18n, {
|
|
106
|
-
token: "euiSuperUpdateButton.updatingButtonLabel",
|
|
107
|
-
default: "Updating"
|
|
108
|
-
}) : ___EmotionJSX(EuiI18n, {
|
|
109
|
-
token: "euiSuperUpdateButton.updateButtonLabel",
|
|
110
|
-
default: "Update"
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
var tooltipContent;
|
|
114
|
-
if (isDisabled) {
|
|
115
|
-
tooltipContent = ___EmotionJSX(EuiI18n, {
|
|
116
|
-
token: "euiSuperUpdateButton.cannotUpdateTooltip",
|
|
117
|
-
default: "Cannot update"
|
|
118
|
-
});
|
|
119
|
-
} else if (needsUpdate && !isLoading) {
|
|
120
|
-
tooltipContent = ___EmotionJSX(EuiI18n, {
|
|
121
|
-
token: "euiSuperUpdateButton.clickToApplyTooltip",
|
|
122
|
-
default: "Click to apply"
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
101
|
var sharedButtonProps = {
|
|
126
102
|
color: needsUpdate || isLoading ? 'success' : 'primary',
|
|
127
103
|
iconType: needsUpdate || isLoading ? 'kqlFunction' : 'refresh',
|
|
@@ -129,9 +105,10 @@ export var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
129
105
|
onClick: onClick,
|
|
130
106
|
isLoading: isLoading
|
|
131
107
|
};
|
|
108
|
+
var buttonContent = this.renderButtonContent();
|
|
132
109
|
return ___EmotionJSX(EuiToolTip, _extends({
|
|
133
110
|
ref: this.setTootipRef,
|
|
134
|
-
content:
|
|
111
|
+
content: this.renderTooltipContent(),
|
|
135
112
|
position: "bottom"
|
|
136
113
|
}, toolTipProps), ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiShowFor, {
|
|
137
114
|
sizes: responsive || 'none'
|
|
@@ -143,7 +120,7 @@ export var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
143
120
|
textProps: _objectSpread(_objectSpread({}, restTextProps), {}, {
|
|
144
121
|
className: classNames('euiScreenReaderOnly', restTextProps && restTextProps.className)
|
|
145
122
|
})
|
|
146
|
-
}, rest),
|
|
123
|
+
}, rest), buttonContent)), ___EmotionJSX(EuiHideFor, {
|
|
147
124
|
sizes: responsive || 'none'
|
|
148
125
|
}, ___EmotionJSX(EuiButton, _extends({
|
|
149
126
|
className: classes,
|
|
@@ -151,7 +128,50 @@ export var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
151
128
|
}, sharedButtonProps, {
|
|
152
129
|
fill: fill,
|
|
153
130
|
textProps: restTextProps
|
|
154
|
-
}, rest),
|
|
131
|
+
}, rest), buttonContent))));
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "renderButtonContent",
|
|
135
|
+
value: function renderButtonContent() {
|
|
136
|
+
var _this$props2 = this.props,
|
|
137
|
+
children = _this$props2.children,
|
|
138
|
+
isLoading = _this$props2.isLoading,
|
|
139
|
+
needsUpdate = _this$props2.needsUpdate;
|
|
140
|
+
if (children) {
|
|
141
|
+
return children;
|
|
142
|
+
}
|
|
143
|
+
if (isLoading) {
|
|
144
|
+
return ___EmotionJSX(EuiI18n, {
|
|
145
|
+
token: "euiSuperUpdateButton.updatingButtonLabel",
|
|
146
|
+
default: "Updating"
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if (needsUpdate) {
|
|
150
|
+
return ___EmotionJSX(EuiI18n, {
|
|
151
|
+
token: "euiSuperUpdateButton.updateButtonLabel",
|
|
152
|
+
default: "Update"
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return ___EmotionJSX(EuiI18n, {
|
|
156
|
+
token: "euiSuperUpdateButton.refreshButtonLabel",
|
|
157
|
+
default: "Refresh"
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
key: "renderTooltipContent",
|
|
162
|
+
value: function renderTooltipContent() {
|
|
163
|
+
if (this.props.isDisabled) {
|
|
164
|
+
return ___EmotionJSX(EuiI18n, {
|
|
165
|
+
token: "euiSuperUpdateButton.cannotUpdateTooltip",
|
|
166
|
+
default: "Cannot update"
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
if (this.props.needsUpdate && !this.props.isLoading) {
|
|
170
|
+
return ___EmotionJSX(EuiI18n, {
|
|
171
|
+
token: "euiSuperUpdateButton.clickToApplyTooltip",
|
|
172
|
+
default: "Click to apply"
|
|
173
|
+
});
|
|
174
|
+
}
|
|
155
175
|
}
|
|
156
176
|
}]);
|
|
157
177
|
return EuiSuperUpdateButton;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "gutterSize", "direction", "alignItems", "responsive", "columns", "component"];
|
|
4
|
+
var _excluded = ["children", "className", "style", "gutterSize", "direction", "alignItems", "responsive", "columns", "component"];
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
7
|
/*
|
|
5
8
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
9
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -9,9 +12,9 @@ var _excluded = ["children", "className", "gutterSize", "direction", "alignItems
|
|
|
9
12
|
* Side Public License, v 1.
|
|
10
13
|
*/
|
|
11
14
|
|
|
12
|
-
import React from 'react';
|
|
15
|
+
import React, { useMemo } from 'react';
|
|
13
16
|
import classNames from 'classnames';
|
|
14
|
-
import {
|
|
17
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
15
18
|
import { euiFlexGridStyles } from './flex_grid.styles';
|
|
16
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
20
|
export var DIRECTIONS = ['row', 'column'];
|
|
@@ -20,6 +23,7 @@ export var GUTTER_SIZES = ['none', 's', 'm', 'l', 'xl'];
|
|
|
20
23
|
export var EuiFlexGrid = function EuiFlexGrid(_ref) {
|
|
21
24
|
var children = _ref.children,
|
|
22
25
|
className = _ref.className,
|
|
26
|
+
style = _ref.style,
|
|
23
27
|
_ref$gutterSize = _ref.gutterSize,
|
|
24
28
|
gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
|
|
25
29
|
_ref$direction = _ref.direction,
|
|
@@ -33,13 +37,20 @@ export var EuiFlexGrid = function EuiFlexGrid(_ref) {
|
|
|
33
37
|
_ref$component = _ref.component,
|
|
34
38
|
Component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
35
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
-
var gridTemplateRows = direction === 'column' ? Math.ceil(React.Children.count(children) / columns) : 0;
|
|
37
|
-
var euiTheme = useEuiTheme();
|
|
38
|
-
var styles = euiFlexGridStyles(euiTheme, gridTemplateRows);
|
|
39
|
-
var cssStyles = [styles.euiFlexGrid, styles.gutterSizes[gutterSize], styles.direction[direction], styles.alignItems[alignItems], styles.columnCount[columns], responsive && styles.responsive];
|
|
40
40
|
var classes = classNames('euiFlexGrid', className);
|
|
41
|
+
var styles = useEuiMemoizedStyles(euiFlexGridStyles);
|
|
42
|
+
var cssStyles = [styles.euiFlexGrid, styles.gutterSizes[gutterSize], styles.direction[direction], styles.alignItems[alignItems], styles.columnCount[columns], responsive && styles.responsive];
|
|
43
|
+
var columnDirectionStyles = useMemo(function () {
|
|
44
|
+
if (direction === 'column') {
|
|
45
|
+
var rowsToRender = Math.ceil(React.Children.count(children) / columns);
|
|
46
|
+
return {
|
|
47
|
+
gridTemplateRows: "repeat(".concat(rowsToRender, ", 1fr)")
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, [direction, columns, children]);
|
|
41
51
|
return ___EmotionJSX(Component, _extends({
|
|
42
52
|
css: cssStyles,
|
|
43
|
-
className: classes
|
|
53
|
+
className: classes,
|
|
54
|
+
style: columnDirectionStyles ? _objectSpread(_objectSpread({}, style), columnDirectionStyles) : style
|
|
44
55
|
}, rest), children);
|
|
45
56
|
};
|
|
@@ -82,6 +82,14 @@ var _ref9 = process.env.NODE_ENV === "production" ? {
|
|
|
82
82
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
83
83
|
};
|
|
84
84
|
var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
85
|
+
name: "1t690q7-column",
|
|
86
|
+
styles: "grid-auto-flow:column;label:column;"
|
|
87
|
+
} : {
|
|
88
|
+
name: "1t690q7-column",
|
|
89
|
+
styles: "grid-auto-flow:column;label:column;",
|
|
90
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
91
|
+
};
|
|
92
|
+
var _ref11 = process.env.NODE_ENV === "production" ? {
|
|
85
93
|
name: "1uinx0j-euiFlexGrid",
|
|
86
94
|
styles: "display:grid;label:euiFlexGrid;"
|
|
87
95
|
} : {
|
|
@@ -89,18 +97,17 @@ var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
|
89
97
|
styles: "display:grid;label:euiFlexGrid;",
|
|
90
98
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
91
99
|
};
|
|
92
|
-
// Note: the only way to get column direction working with `display: grid`
|
|
93
|
-
// the same way `display: flex` works is to manually set `grid-template-rows`,
|
|
94
|
-
// calculated based on the number of children in the grid
|
|
95
100
|
export var euiFlexGridStyles = function euiFlexGridStyles(euiThemeContext) {
|
|
96
|
-
var gridTemplateRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
97
101
|
var euiTheme = euiThemeContext.euiTheme;
|
|
98
102
|
return {
|
|
99
|
-
euiFlexGrid:
|
|
103
|
+
euiFlexGrid: _ref11,
|
|
100
104
|
responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{grid-template-columns:repeat(1, 1fr);grid-auto-flow:row;};label:responsive;"),
|
|
101
105
|
direction: {
|
|
102
106
|
row: /*#__PURE__*/css(";label:row;"),
|
|
103
|
-
|
|
107
|
+
// Note: the only way to get column direction working with `display: grid`
|
|
108
|
+
// the same way `display: flex` works is to manually set `grid-template-rows`,
|
|
109
|
+
// calculated based on the number of children in the grid
|
|
110
|
+
column: _ref10
|
|
104
111
|
},
|
|
105
112
|
columnCount: {
|
|
106
113
|
'1': _ref9,
|
|
@@ -9,18 +9,16 @@ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsiv
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
12
|
+
import React, { forwardRef, useEffect } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import {
|
|
14
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
15
15
|
import { euiFlexGroupStyles } from './flex_group.styles';
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var GUTTER_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'];
|
|
18
18
|
export var ALIGN_ITEMS = ['stretch', 'flexStart', 'flexEnd', 'center', 'baseline'];
|
|
19
19
|
export var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'spaceAround', 'spaceEvenly'];
|
|
20
20
|
export var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
|
|
21
|
-
var
|
|
22
|
-
return ['div', 'span'].includes(component);
|
|
23
|
-
};
|
|
21
|
+
export var COMPONENT_TYPES = ['div', 'span'];
|
|
24
22
|
export var EuiFlexGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
23
|
var children = _ref.children,
|
|
26
24
|
className = _ref.className,
|
|
@@ -39,13 +37,14 @@ export var EuiFlexGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
37
|
_ref$component = _ref.component,
|
|
40
38
|
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
41
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
-
var
|
|
43
|
-
var styles = euiFlexGroupStyles(euiTheme);
|
|
40
|
+
var styles = useEuiMemoizedStyles(euiFlexGroupStyles);
|
|
44
41
|
var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
|
|
45
42
|
var classes = classNames('euiFlexGroup', className);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
useEffect(function () {
|
|
44
|
+
if (!COMPONENT_TYPES.includes(component)) {
|
|
45
|
+
throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
|
|
46
|
+
}
|
|
47
|
+
}, [component]);
|
|
49
48
|
return component === 'span' ? ___EmotionJSX("span", _extends({
|
|
50
49
|
css: cssStyles,
|
|
51
50
|
className: classes,
|
|
@@ -9,10 +9,11 @@ var _excluded = ["children", "className", "grow", "component"];
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import React from 'react';
|
|
12
|
+
import React, { useEffect } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import { euiFlexItemStyles } from './flex_item.styles';
|
|
14
|
+
import { euiFlexItemStyles as styles } from './flex_item.styles';
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
16
17
|
export var EuiFlexItem = function EuiFlexItem(_ref) {
|
|
17
18
|
var children = _ref.children,
|
|
18
19
|
className = _ref.className,
|
|
@@ -21,18 +22,15 @@ export var EuiFlexItem = function EuiFlexItem(_ref) {
|
|
|
21
22
|
_ref$component = _ref.component,
|
|
22
23
|
Component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
23
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
useEffect(function () {
|
|
26
|
+
if (VALID_GROW_VALUES.indexOf(grow) === -1) {
|
|
27
|
+
throw new Error("Prop `grow` passed to `EuiFlexItem` must be a boolean or an integer between 0 and 10, received `".concat(grow, "`"));
|
|
28
|
+
}
|
|
29
|
+
}, [grow]);
|
|
26
30
|
var cssStyles = [styles.euiFlexItem, !grow ? styles.growZero : styles.grow, grow && (typeof grow === 'number' ? styles.growSizes[grow] : styles.growSizes['1'])];
|
|
27
31
|
var classes = classNames('euiFlexItem', className);
|
|
28
32
|
return ___EmotionJSX(Component, _extends({
|
|
29
33
|
css: cssStyles,
|
|
30
34
|
className: classes
|
|
31
35
|
}, rest), children);
|
|
32
|
-
};
|
|
33
|
-
export var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
34
|
-
function validateGrowValue(value) {
|
|
35
|
-
if (VALID_GROW_VALUES.indexOf(value) === -1) {
|
|
36
|
-
throw new Error("Prop `grow` passed to `EuiFlexItem` must be a boolean or an integer between 0 and 10, received `".concat(value, "`"));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
36
|
+
};
|
|
@@ -8,127 +8,112 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
// 1. Allow EuiPanels to expand to fill the item.
|
|
118
|
-
euiFlexItem: _ref13,
|
|
119
|
-
growZero: _ref12,
|
|
120
|
-
grow: _ref11,
|
|
121
|
-
growSizes: {
|
|
122
|
-
'1': _ref10,
|
|
123
|
-
'2': _ref9,
|
|
124
|
-
'3': _ref8,
|
|
125
|
-
'4': _ref7,
|
|
126
|
-
'5': _ref6,
|
|
127
|
-
'6': _ref5,
|
|
128
|
-
'7': _ref4,
|
|
129
|
-
'8': _ref3,
|
|
130
|
-
'9': _ref2,
|
|
131
|
-
'10': _ref
|
|
11
|
+
export var euiFlexItemStyles = {
|
|
12
|
+
// 1. Allow EuiPanels to expand to fill the item.
|
|
13
|
+
euiFlexItem: process.env.NODE_ENV === "production" ? {
|
|
14
|
+
name: "19hf44n-euiFlexItem",
|
|
15
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;"
|
|
16
|
+
} : {
|
|
17
|
+
name: "19hf44n-euiFlexItem",
|
|
18
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;",
|
|
19
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
+
},
|
|
21
|
+
growZero: process.env.NODE_ENV === "production" ? {
|
|
22
|
+
name: "1pat7n0-growZero",
|
|
23
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;"
|
|
24
|
+
} : {
|
|
25
|
+
name: "1pat7n0-growZero",
|
|
26
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;",
|
|
27
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
+
},
|
|
29
|
+
grow: process.env.NODE_ENV === "production" ? {
|
|
30
|
+
name: "tr4wer-grow",
|
|
31
|
+
styles: "flex-basis:0%;label:grow;"
|
|
32
|
+
} : {
|
|
33
|
+
name: "tr4wer-grow",
|
|
34
|
+
styles: "flex-basis:0%;label:grow;",
|
|
35
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
|
+
},
|
|
37
|
+
growSizes: {
|
|
38
|
+
'1': process.env.NODE_ENV === "production" ? {
|
|
39
|
+
name: "1v6uyoj-1",
|
|
40
|
+
styles: "flex-grow:1;label:1;"
|
|
41
|
+
} : {
|
|
42
|
+
name: "1v6uyoj-1",
|
|
43
|
+
styles: "flex-grow:1;label:1;",
|
|
44
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
+
},
|
|
46
|
+
'2': process.env.NODE_ENV === "production" ? {
|
|
47
|
+
name: "1l86xxh-2",
|
|
48
|
+
styles: "flex-grow:2;label:2;"
|
|
49
|
+
} : {
|
|
50
|
+
name: "1l86xxh-2",
|
|
51
|
+
styles: "flex-grow:2;label:2;",
|
|
52
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
53
|
+
},
|
|
54
|
+
'3': process.env.NODE_ENV === "production" ? {
|
|
55
|
+
name: "1sl79ay-3",
|
|
56
|
+
styles: "flex-grow:3;label:3;"
|
|
57
|
+
} : {
|
|
58
|
+
name: "1sl79ay-3",
|
|
59
|
+
styles: "flex-grow:3;label:3;",
|
|
60
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
61
|
+
},
|
|
62
|
+
'4': process.env.NODE_ENV === "production" ? {
|
|
63
|
+
name: "k4pnsg-4",
|
|
64
|
+
styles: "flex-grow:4;label:4;"
|
|
65
|
+
} : {
|
|
66
|
+
name: "k4pnsg-4",
|
|
67
|
+
styles: "flex-grow:4;label:4;",
|
|
68
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
69
|
+
},
|
|
70
|
+
'5': process.env.NODE_ENV === "production" ? {
|
|
71
|
+
name: "1cx5fxs-5",
|
|
72
|
+
styles: "flex-grow:5;label:5;"
|
|
73
|
+
} : {
|
|
74
|
+
name: "1cx5fxs-5",
|
|
75
|
+
styles: "flex-grow:5;label:5;",
|
|
76
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
77
|
+
},
|
|
78
|
+
'6': process.env.NODE_ENV === "production" ? {
|
|
79
|
+
name: "1in9iiy-6",
|
|
80
|
+
styles: "flex-grow:6;label:6;"
|
|
81
|
+
} : {
|
|
82
|
+
name: "1in9iiy-6",
|
|
83
|
+
styles: "flex-grow:6;label:6;",
|
|
84
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
85
|
+
},
|
|
86
|
+
'7': process.env.NODE_ENV === "production" ? {
|
|
87
|
+
name: "fvh3nz-7",
|
|
88
|
+
styles: "flex-grow:7;label:7;"
|
|
89
|
+
} : {
|
|
90
|
+
name: "fvh3nz-7",
|
|
91
|
+
styles: "flex-grow:7;label:7;",
|
|
92
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
93
|
+
},
|
|
94
|
+
'8': process.env.NODE_ENV === "production" ? {
|
|
95
|
+
name: "fjdgzc-8",
|
|
96
|
+
styles: "flex-grow:8;label:8;"
|
|
97
|
+
} : {
|
|
98
|
+
name: "fjdgzc-8",
|
|
99
|
+
styles: "flex-grow:8;label:8;",
|
|
100
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
101
|
+
},
|
|
102
|
+
'9': process.env.NODE_ENV === "production" ? {
|
|
103
|
+
name: "1tyr8p6-9",
|
|
104
|
+
styles: "flex-grow:9;label:9;"
|
|
105
|
+
} : {
|
|
106
|
+
name: "1tyr8p6-9",
|
|
107
|
+
styles: "flex-grow:9;label:9;",
|
|
108
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
109
|
+
},
|
|
110
|
+
'10': process.env.NODE_ENV === "production" ? {
|
|
111
|
+
name: "n7polf-10",
|
|
112
|
+
styles: "flex-grow:10;label:10;"
|
|
113
|
+
} : {
|
|
114
|
+
name: "n7polf-10",
|
|
115
|
+
styles: "flex-grow:10;label:10;",
|
|
116
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
132
117
|
}
|
|
133
|
-
}
|
|
118
|
+
}
|
|
134
119
|
};
|