@elastic/eui 119.0.0 → 119.1.0-snapshot.1787665877015

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.
Files changed (537) hide show
  1. package/dist/eui-icons.json +90 -87
  2. package/dist/svgs/cloud_bolt.svg +4 -0
  3. package/dist/svgs/cloud_rain.svg +4 -0
  4. package/dist/svgs/cloud_sun.svg +4 -0
  5. package/dist/svgs/cube.svg +3 -0
  6. package/dist/svgs/cursor_default.svg +3 -0
  7. package/dist/svgs/kubernetes_namespace.svg +4 -0
  8. package/dist/svgs/log_in.svg +4 -0
  9. package/dist/svgs/memory.svg +1 -10
  10. package/dist/svgs/product_timelion.svg +3 -0
  11. package/dist/svgs/product_tsvb.svg +5 -0
  12. package/dist/svgs/push.svg +4 -0
  13. package/dist/svgs/route_split.svg +3 -0
  14. package/dist/svgs/transition_right_in.svg +4 -0
  15. package/dist/svgs/transition_right_out.svg +4 -0
  16. package/dist/svgs/wrench.svg +1 -1
  17. package/es/components/avatar/avatar.js +1 -1
  18. package/es/components/badge/badge.js +1 -1
  19. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  20. package/es/components/basic_table/basic_table.js +4 -4
  21. package/es/components/basic_table/in_memory_table.js +4 -4
  22. package/es/components/button/button.js +20 -6
  23. package/es/components/button/button_display/_button_display_content.js +1 -1
  24. package/es/components/button/button_empty/button_empty.js +1 -1
  25. package/es/components/button/button_group/button_group.js +180 -20
  26. package/es/components/button/button_group/button_group.styles.js +61 -9
  27. package/es/components/button/button_group/use_button_group_selection.js +30 -0
  28. package/es/components/button/button_icon/button_icon.js +21 -8
  29. package/es/components/button/split_button/split_button.js +39 -16
  30. package/es/components/button/split_button/split_button.styles.js +28 -32
  31. package/es/components/button/split_button/split_button_actions.js +16 -5
  32. package/es/components/button/use_button_common_props.js +18 -5
  33. package/es/components/call_out/call_out.js +2 -2
  34. package/es/components/card/card.js +1 -1
  35. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  36. package/es/components/comment_list/comment.js +2 -2
  37. package/es/components/comment_list/comment_event.js +1 -1
  38. package/es/components/comment_list/comment_list.js +2 -2
  39. package/es/components/comment_list/comment_timeline.js +1 -1
  40. package/es/components/context_menu/context_menu_item.js +1 -1
  41. package/es/components/datagrid/body/cell/data_grid_cell.js +27 -27
  42. package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  43. package/es/components/datagrid/body/data_grid_body.js +13 -13
  44. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  45. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  46. package/es/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  47. package/es/components/datagrid/body/header/column_actions.js +3 -1
  48. package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  49. package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  50. package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  51. package/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
  52. package/es/components/datagrid/controls/column_sorting.js +13 -13
  53. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  54. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  55. package/es/components/datagrid/utils/in_memory.js +12 -12
  56. package/es/components/datagrid/utils/last_copy_column.js +11 -0
  57. package/es/components/date_picker/date_picker.js +2 -2
  58. package/es/components/date_picker/date_picker_range.js +1 -1
  59. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
  60. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  61. package/es/components/empty_prompt/empty_prompt.js +1 -1
  62. package/es/components/flyout/flyout_menu/flyout_menu.js +39 -14
  63. package/es/components/form/field_number/field_number.js +2 -2
  64. package/es/components/form/field_text/field_text.js +2 -2
  65. package/es/components/form/file_picker/file_picker.js +187 -224
  66. package/es/components/form/file_picker/file_picker.styles.js +1 -1
  67. package/es/components/form/form_control_button/form_control_button.js +1 -1
  68. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  69. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  70. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  71. package/es/components/form/text_area/text_area.js +2 -2
  72. package/es/components/header/header_links/header_link.js +1 -1
  73. package/es/components/header/header_links/header_links.js +1 -1
  74. package/es/components/header/header_logo/header_logo.js +1 -1
  75. package/es/components/header/header_section/header_section_item_button.js +1 -1
  76. package/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  77. package/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  78. package/es/components/icon/assets/cloud_sun.js +33 -0
  79. package/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  80. package/es/components/icon/assets/cursor_default.js +35 -0
  81. package/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  82. package/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  83. package/es/components/icon/assets/memory.js +1 -3
  84. package/es/components/icon/assets/product_timelion.js +33 -0
  85. package/es/components/icon/assets/product_tsvb.js +37 -0
  86. package/es/components/icon/assets/{namespace.js → push.js} +3 -6
  87. package/es/components/icon/assets/route_split.js +33 -0
  88. package/es/components/icon/assets/transition_right_in.js +35 -0
  89. package/es/components/icon/assets/transition_right_out.js +35 -0
  90. package/es/components/icon/assets/wrench.js +1 -3
  91. package/es/components/icon/icon.js +1 -1
  92. package/es/components/icon/icon_glyphs.a11y.js +1 -1
  93. package/es/components/icon/icon_map.js +96 -18
  94. package/es/components/icon/svgs/cloud_bolt.svg +4 -0
  95. package/es/components/icon/svgs/cloud_rain.svg +4 -0
  96. package/es/components/icon/svgs/cloud_sun.svg +4 -0
  97. package/es/components/icon/svgs/cube.svg +3 -0
  98. package/es/components/icon/svgs/cursor_default.svg +3 -0
  99. package/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
  100. package/es/components/icon/svgs/log_in.svg +4 -0
  101. package/es/components/icon/svgs/memory.svg +1 -10
  102. package/es/components/icon/svgs/product_timelion.svg +3 -0
  103. package/es/components/icon/svgs/product_tsvb.svg +5 -0
  104. package/es/components/icon/svgs/push.svg +4 -0
  105. package/es/components/icon/svgs/route_split.svg +3 -0
  106. package/es/components/icon/svgs/transition_right_in.svg +4 -0
  107. package/es/components/icon/svgs/transition_right_out.svg +4 -0
  108. package/es/components/icon/svgs/wrench.svg +1 -1
  109. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  110. package/es/components/list_group/list_group.js +2 -2
  111. package/es/components/list_group/list_group_item.js +2 -2
  112. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  113. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  114. package/es/components/loading/loading_logo.js +1 -1
  115. package/es/components/markdown_editor/markdown_editor.js +1 -1
  116. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  117. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  118. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  119. package/es/components/page/page_header/page_header_content.js +1 -1
  120. package/es/components/pagination/pagination_button.js +1 -1
  121. package/es/components/resizable_container/resizable_collapse_button.js +4 -4
  122. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  123. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  124. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  125. package/es/components/table/table_header_cell.js +1 -1
  126. package/es/components/timeline/timeline_item_icon.js +1 -1
  127. package/es/components/toast/global_toast_list.js +2 -2
  128. package/es/components/toast/toast.js +2 -2
  129. package/es/components/tool_tip/icon_tip.js +1 -1
  130. package/es/global_styling/mixins/_button.js +6 -0
  131. package/es/services/accessibility/html_id_generator.js +26 -1
  132. package/eui.d.ts +425 -417
  133. package/i18ntokens.json +2678 -2660
  134. package/lib/components/avatar/avatar.js +1 -1
  135. package/lib/components/badge/badge.js +1 -1
  136. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  137. package/lib/components/basic_table/basic_table.js +4 -4
  138. package/lib/components/basic_table/in_memory_table.js +4 -4
  139. package/lib/components/button/button.js +20 -6
  140. package/lib/components/button/button_display/_button_display_content.js +1 -1
  141. package/lib/components/button/button_empty/button_empty.js +1 -1
  142. package/lib/components/button/button_group/button_group.js +179 -21
  143. package/lib/components/button/button_group/button_group.styles.js +60 -8
  144. package/lib/components/button/button_group/use_button_group_selection.js +36 -0
  145. package/lib/components/button/button_icon/button_icon.js +21 -8
  146. package/lib/components/button/split_button/split_button.js +37 -15
  147. package/lib/components/button/split_button/split_button.styles.js +29 -31
  148. package/lib/components/button/split_button/split_button_actions.js +15 -4
  149. package/lib/components/button/use_button_common_props.js +18 -5
  150. package/lib/components/call_out/call_out.js +2 -2
  151. package/lib/components/card/card.js +1 -1
  152. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  153. package/lib/components/comment_list/comment.js +2 -2
  154. package/lib/components/comment_list/comment_event.js +1 -1
  155. package/lib/components/comment_list/comment_list.js +2 -2
  156. package/lib/components/comment_list/comment_timeline.js +1 -1
  157. package/lib/components/context_menu/context_menu_item.js +1 -1
  158. package/lib/components/datagrid/body/cell/data_grid_cell.js +27 -27
  159. package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  160. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  161. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  162. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  163. package/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  164. package/lib/components/datagrid/body/header/column_actions.js +3 -1
  165. package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  166. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  167. package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  168. package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
  169. package/lib/components/datagrid/controls/column_sorting.js +13 -13
  170. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  171. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  172. package/lib/components/datagrid/utils/in_memory.js +12 -12
  173. package/lib/components/datagrid/utils/last_copy_column.js +17 -0
  174. package/lib/components/date_picker/date_picker.js +2 -2
  175. package/lib/components/date_picker/date_picker_range.js +1 -1
  176. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
  177. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  178. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  179. package/lib/components/flyout/flyout_menu/flyout_menu.js +39 -14
  180. package/lib/components/form/field_number/field_number.js +2 -2
  181. package/lib/components/form/field_text/field_text.js +2 -2
  182. package/lib/components/form/file_picker/file_picker.js +193 -227
  183. package/lib/components/form/file_picker/file_picker.styles.js +1 -1
  184. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  185. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  186. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  187. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  188. package/lib/components/form/text_area/text_area.js +2 -2
  189. package/lib/components/header/header_links/header_link.js +1 -1
  190. package/lib/components/header/header_links/header_links.js +1 -1
  191. package/lib/components/header/header_logo/header_logo.js +1 -1
  192. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  193. package/lib/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  194. package/lib/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  195. package/lib/components/icon/assets/cloud_sun.js +40 -0
  196. package/lib/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  197. package/lib/components/icon/assets/cursor_default.js +42 -0
  198. package/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  199. package/lib/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  200. package/lib/components/icon/assets/memory.js +1 -3
  201. package/lib/components/icon/assets/product_timelion.js +40 -0
  202. package/lib/components/icon/assets/product_tsvb.js +44 -0
  203. package/lib/components/icon/assets/{namespace.js → push.js} +3 -6
  204. package/lib/components/icon/assets/route_split.js +40 -0
  205. package/lib/components/icon/assets/transition_right_in.js +42 -0
  206. package/lib/components/icon/assets/transition_right_out.js +42 -0
  207. package/lib/components/icon/assets/wrench.js +1 -3
  208. package/lib/components/icon/icon.js +1 -1
  209. package/lib/components/icon/icon_glyphs.a11y.js +1 -1
  210. package/lib/components/icon/icon_map.js +120 -18
  211. package/lib/components/icon/svgs/cloud_bolt.svg +4 -0
  212. package/lib/components/icon/svgs/cloud_rain.svg +4 -0
  213. package/lib/components/icon/svgs/cloud_sun.svg +4 -0
  214. package/lib/components/icon/svgs/cube.svg +3 -0
  215. package/lib/components/icon/svgs/cursor_default.svg +3 -0
  216. package/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
  217. package/lib/components/icon/svgs/log_in.svg +4 -0
  218. package/lib/components/icon/svgs/memory.svg +1 -10
  219. package/lib/components/icon/svgs/product_timelion.svg +3 -0
  220. package/lib/components/icon/svgs/product_tsvb.svg +5 -0
  221. package/lib/components/icon/svgs/push.svg +4 -0
  222. package/lib/components/icon/svgs/route_split.svg +3 -0
  223. package/lib/components/icon/svgs/transition_right_in.svg +4 -0
  224. package/lib/components/icon/svgs/transition_right_out.svg +4 -0
  225. package/lib/components/icon/svgs/wrench.svg +1 -1
  226. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  227. package/lib/components/list_group/list_group.js +2 -2
  228. package/lib/components/list_group/list_group_item.js +2 -2
  229. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  230. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  231. package/lib/components/loading/loading_logo.js +1 -1
  232. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  233. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  234. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  235. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  236. package/lib/components/page/page_header/page_header_content.js +1 -1
  237. package/lib/components/pagination/pagination_button.js +1 -1
  238. package/lib/components/resizable_container/resizable_collapse_button.js +4 -4
  239. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  240. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  241. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  242. package/lib/components/table/table_header_cell.js +1 -1
  243. package/lib/components/timeline/timeline_item_icon.js +1 -1
  244. package/lib/components/toast/global_toast_list.js +2 -2
  245. package/lib/components/toast/toast.js +2 -2
  246. package/lib/components/tool_tip/icon_tip.js +1 -1
  247. package/lib/global_styling/mixins/_button.js +6 -0
  248. package/lib/services/accessibility/html_id_generator.js +26 -1
  249. package/optimize/es/components/button/button.js +20 -6
  250. package/optimize/es/components/button/button_group/button_group.js +89 -10
  251. package/optimize/es/components/button/button_group/button_group.styles.js +61 -9
  252. package/optimize/es/components/button/button_group/use_button_group_selection.js +30 -0
  253. package/optimize/es/components/button/button_icon/button_icon.js +20 -7
  254. package/optimize/es/components/button/split_button/split_button.js +36 -16
  255. package/optimize/es/components/button/split_button/split_button.styles.js +28 -32
  256. package/optimize/es/components/button/split_button/split_button_actions.js +16 -5
  257. package/optimize/es/components/button/use_button_common_props.js +18 -5
  258. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +3 -3
  259. package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  260. package/optimize/es/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  261. package/optimize/es/components/datagrid/body/header/column_actions.js +3 -1
  262. package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  263. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +3 -0
  264. package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
  265. package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
  266. package/optimize/es/components/datagrid/utils/last_copy_column.js +11 -0
  267. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +220 -225
  268. package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  269. package/optimize/es/components/flyout/flyout_menu/flyout_menu.js +32 -9
  270. package/optimize/es/components/form/file_picker/file_picker.js +182 -216
  271. package/optimize/es/components/form/file_picker/file_picker.styles.js +1 -1
  272. package/optimize/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  273. package/optimize/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  274. package/optimize/es/components/icon/assets/cloud_sun.js +32 -0
  275. package/optimize/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  276. package/optimize/es/components/icon/assets/cursor_default.js +34 -0
  277. package/optimize/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  278. package/optimize/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  279. package/optimize/es/components/icon/assets/memory.js +1 -3
  280. package/optimize/es/components/icon/assets/product_timelion.js +32 -0
  281. package/optimize/es/components/icon/assets/product_tsvb.js +36 -0
  282. package/optimize/es/components/icon/assets/{namespace.js → push.js} +3 -6
  283. package/optimize/es/components/icon/assets/route_split.js +32 -0
  284. package/optimize/es/components/icon/assets/transition_right_in.js +34 -0
  285. package/optimize/es/components/icon/assets/transition_right_out.js +34 -0
  286. package/optimize/es/components/icon/assets/wrench.js +1 -3
  287. package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
  288. package/optimize/es/components/icon/icon_map.js +96 -18
  289. package/optimize/es/components/icon/svgs/cloud_bolt.svg +4 -0
  290. package/optimize/es/components/icon/svgs/cloud_rain.svg +4 -0
  291. package/optimize/es/components/icon/svgs/cloud_sun.svg +4 -0
  292. package/optimize/es/components/icon/svgs/cube.svg +3 -0
  293. package/optimize/es/components/icon/svgs/cursor_default.svg +3 -0
  294. package/optimize/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
  295. package/optimize/es/components/icon/svgs/log_in.svg +4 -0
  296. package/optimize/es/components/icon/svgs/memory.svg +1 -10
  297. package/optimize/es/components/icon/svgs/product_timelion.svg +3 -0
  298. package/optimize/es/components/icon/svgs/product_tsvb.svg +5 -0
  299. package/optimize/es/components/icon/svgs/push.svg +4 -0
  300. package/optimize/es/components/icon/svgs/route_split.svg +3 -0
  301. package/optimize/es/components/icon/svgs/transition_right_in.svg +4 -0
  302. package/optimize/es/components/icon/svgs/transition_right_out.svg +4 -0
  303. package/optimize/es/components/icon/svgs/wrench.svg +1 -1
  304. package/optimize/es/components/resizable_container/resizable_collapse_button.js +4 -4
  305. package/optimize/es/global_styling/mixins/_button.js +6 -0
  306. package/optimize/es/services/accessibility/html_id_generator.js +26 -1
  307. package/optimize/lib/components/button/button.js +20 -6
  308. package/optimize/lib/components/button/button_group/button_group.js +89 -11
  309. package/optimize/lib/components/button/button_group/button_group.styles.js +60 -8
  310. package/optimize/lib/components/button/button_group/use_button_group_selection.js +36 -0
  311. package/optimize/lib/components/button/button_icon/button_icon.js +20 -7
  312. package/optimize/lib/components/button/split_button/split_button.js +35 -15
  313. package/optimize/lib/components/button/split_button/split_button.styles.js +29 -31
  314. package/optimize/lib/components/button/split_button/split_button_actions.js +15 -4
  315. package/optimize/lib/components/button/use_button_common_props.js +18 -5
  316. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +3 -3
  317. package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  318. package/optimize/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  319. package/optimize/lib/components/datagrid/body/header/column_actions.js +3 -1
  320. package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  321. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -0
  322. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
  323. package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
  324. package/optimize/lib/components/datagrid/utils/last_copy_column.js +17 -0
  325. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +219 -224
  326. package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  327. package/optimize/lib/components/flyout/flyout_menu/flyout_menu.js +32 -9
  328. package/optimize/lib/components/form/file_picker/file_picker.js +183 -215
  329. package/optimize/lib/components/form/file_picker/file_picker.styles.js +1 -1
  330. package/optimize/lib/components/icon/assets/{kubernetes_pod.js → cloud_bolt.js} +5 -3
  331. package/optimize/lib/components/icon/assets/{cloud_stormy.js → cloud_rain.js} +5 -3
  332. package/optimize/lib/components/icon/assets/cloud_sun.js +40 -0
  333. package/optimize/lib/components/icon/assets/cube.js +40 -0
  334. package/{test-env/components/icon/assets/kubernetes_pod.js → optimize/lib/components/icon/assets/cursor_default.js} +5 -3
  335. package/optimize/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  336. package/{test-env/components/icon/assets/kql_function.js → optimize/lib/components/icon/assets/log_in.js} +5 -3
  337. package/optimize/lib/components/icon/assets/memory.js +1 -3
  338. package/optimize/lib/components/icon/assets/product_timelion.js +40 -0
  339. package/optimize/lib/components/icon/assets/product_tsvb.js +44 -0
  340. package/{test-env/components/icon/assets/namespace.js → optimize/lib/components/icon/assets/push.js} +3 -6
  341. package/optimize/lib/components/icon/assets/route_split.js +40 -0
  342. package/optimize/lib/components/icon/assets/transition_right_in.js +42 -0
  343. package/optimize/lib/components/icon/assets/transition_right_out.js +42 -0
  344. package/optimize/lib/components/icon/assets/wrench.js +1 -3
  345. package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
  346. package/optimize/lib/components/icon/icon_map.js +120 -18
  347. package/optimize/lib/components/icon/svgs/cloud_bolt.svg +4 -0
  348. package/optimize/lib/components/icon/svgs/cloud_rain.svg +4 -0
  349. package/optimize/lib/components/icon/svgs/cloud_sun.svg +4 -0
  350. package/optimize/lib/components/icon/svgs/cube.svg +3 -0
  351. package/optimize/lib/components/icon/svgs/cursor_default.svg +3 -0
  352. package/optimize/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
  353. package/optimize/lib/components/icon/svgs/log_in.svg +4 -0
  354. package/optimize/lib/components/icon/svgs/memory.svg +1 -10
  355. package/optimize/lib/components/icon/svgs/product_timelion.svg +3 -0
  356. package/optimize/lib/components/icon/svgs/product_tsvb.svg +5 -0
  357. package/optimize/lib/components/icon/svgs/push.svg +4 -0
  358. package/optimize/lib/components/icon/svgs/route_split.svg +3 -0
  359. package/optimize/lib/components/icon/svgs/transition_right_in.svg +4 -0
  360. package/optimize/lib/components/icon/svgs/transition_right_out.svg +4 -0
  361. package/optimize/lib/components/icon/svgs/wrench.svg +1 -1
  362. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +4 -4
  363. package/optimize/lib/global_styling/mixins/_button.js +6 -0
  364. package/optimize/lib/services/accessibility/html_id_generator.js +26 -1
  365. package/package.json +18 -23
  366. package/test-env/components/avatar/avatar.js +1 -1
  367. package/test-env/components/badge/badge.js +1 -1
  368. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  369. package/test-env/components/basic_table/basic_table.js +4 -4
  370. package/test-env/components/basic_table/in_memory_table.js +4 -4
  371. package/test-env/components/button/button.js +20 -6
  372. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  373. package/test-env/components/button/button_empty/button_empty.js +1 -1
  374. package/test-env/components/button/button_group/button_group.js +177 -21
  375. package/test-env/components/button/button_group/button_group.styles.js +60 -8
  376. package/test-env/components/button/button_group/use_button_group_selection.js +36 -0
  377. package/test-env/components/button/button_icon/button_icon.js +21 -8
  378. package/test-env/components/button/split_button/split_button.js +35 -15
  379. package/test-env/components/button/split_button/split_button.styles.js +29 -31
  380. package/test-env/components/button/split_button/split_button_actions.js +15 -4
  381. package/test-env/components/button/use_button_common_props.js +18 -5
  382. package/test-env/components/call_out/call_out.js +2 -2
  383. package/test-env/components/card/card.js +1 -1
  384. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  385. package/test-env/components/comment_list/comment.js +2 -2
  386. package/test-env/components/comment_list/comment_event.js +1 -1
  387. package/test-env/components/comment_list/comment_list.js +2 -2
  388. package/test-env/components/comment_list/comment_timeline.js +1 -1
  389. package/test-env/components/context_menu/context_menu_item.js +1 -1
  390. package/test-env/components/datagrid/body/cell/data_grid_cell.js +27 -27
  391. package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  392. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  393. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  394. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  395. package/test-env/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  396. package/test-env/components/datagrid/body/header/column_actions.js +3 -1
  397. package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  398. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  399. package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  400. package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -0
  401. package/test-env/components/datagrid/controls/column_sorting.js +13 -13
  402. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  403. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  404. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  405. package/test-env/components/datagrid/utils/last_copy_column.js +17 -0
  406. package/test-env/components/date_picker/date_picker.js +2 -2
  407. package/test-env/components/date_picker/date_picker_range.js +1 -1
  408. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +218 -249
  409. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  410. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  411. package/test-env/components/flyout/flyout_menu/flyout_menu.js +39 -14
  412. package/test-env/components/form/field_number/field_number.js +2 -2
  413. package/test-env/components/form/field_text/field_text.js +2 -2
  414. package/test-env/components/form/file_picker/file_picker.js +184 -216
  415. package/test-env/components/form/file_picker/file_picker.styles.js +1 -1
  416. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  417. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  418. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  419. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  420. package/test-env/components/form/text_area/text_area.js +2 -2
  421. package/test-env/components/header/header_links/header_link.js +1 -1
  422. package/test-env/components/header/header_links/header_links.js +1 -1
  423. package/test-env/components/header/header_logo/header_logo.js +1 -1
  424. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  425. package/test-env/components/icon/assets/cloud_bolt.js +42 -0
  426. package/{optimize/lib/components/icon/assets/cloud_sunny.js → test-env/components/icon/assets/cloud_rain.js} +5 -3
  427. package/test-env/components/icon/assets/cloud_sun.js +40 -0
  428. package/test-env/components/icon/assets/cube.js +40 -0
  429. package/test-env/components/icon/assets/cursor_default.js +42 -0
  430. package/test-env/components/icon/assets/kubernetes_namespace.js +42 -0
  431. package/{optimize/lib/components/icon/assets/kql_function.js → test-env/components/icon/assets/log_in.js} +5 -3
  432. package/test-env/components/icon/assets/memory.js +1 -3
  433. package/test-env/components/icon/assets/product_timelion.js +40 -0
  434. package/test-env/components/icon/assets/product_tsvb.js +44 -0
  435. package/{optimize/lib/components/icon/assets/namespace.js → test-env/components/icon/assets/push.js} +3 -6
  436. package/test-env/components/icon/assets/route_split.js +40 -0
  437. package/test-env/components/icon/assets/transition_right_in.js +42 -0
  438. package/test-env/components/icon/assets/transition_right_out.js +42 -0
  439. package/test-env/components/icon/assets/wrench.js +1 -3
  440. package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
  441. package/test-env/components/icon/icon_map.js +120 -18
  442. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  443. package/test-env/components/list_group/list_group.js +2 -2
  444. package/test-env/components/list_group/list_group_item.js +2 -2
  445. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  446. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  447. package/test-env/components/loading/loading_logo.js +1 -1
  448. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  449. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  450. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  451. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  452. package/test-env/components/page/page_header/page_header_content.js +1 -1
  453. package/test-env/components/pagination/pagination_button.js +1 -1
  454. package/test-env/components/resizable_container/resizable_collapse_button.js +4 -4
  455. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  456. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  457. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  458. package/test-env/components/table/table_header_cell.js +1 -1
  459. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  460. package/test-env/components/toast/global_toast_list.js +2 -2
  461. package/test-env/components/toast/toast.js +2 -2
  462. package/test-env/components/tool_tip/icon_tip.js +1 -1
  463. package/test-env/global_styling/mixins/_button.js +6 -0
  464. package/test-env/services/accessibility/html_id_generator.js +11 -0
  465. package/dist/svgs/cloud_drizzle.svg +0 -3
  466. package/dist/svgs/cloud_stormy.svg +0 -3
  467. package/dist/svgs/cloud_sunny.svg +0 -3
  468. package/dist/svgs/kql_function.svg +0 -5
  469. package/dist/svgs/kubernetes_pod.svg +0 -3
  470. package/dist/svgs/menu_down.svg +0 -3
  471. package/dist/svgs/menu_up.svg +0 -3
  472. package/dist/svgs/namespace.svg +0 -3
  473. package/dist/svgs/vis_timelion.svg +0 -3
  474. package/dist/svgs/vis_visual_builder.svg +0 -3
  475. package/es/components/icon/assets/menu_down.js +0 -33
  476. package/es/components/icon/assets/menu_up.js +0 -33
  477. package/es/components/icon/assets/vis_timelion.js +0 -33
  478. package/es/components/icon/assets/vis_visual_builder.js +0 -33
  479. package/es/components/icon/svgs/cloud_drizzle.svg +0 -3
  480. package/es/components/icon/svgs/cloud_stormy.svg +0 -3
  481. package/es/components/icon/svgs/cloud_sunny.svg +0 -3
  482. package/es/components/icon/svgs/kql_function.svg +0 -5
  483. package/es/components/icon/svgs/kubernetes_pod.svg +0 -3
  484. package/es/components/icon/svgs/menu_down.svg +0 -3
  485. package/es/components/icon/svgs/menu_up.svg +0 -3
  486. package/es/components/icon/svgs/namespace.svg +0 -3
  487. package/es/components/icon/svgs/vis_timelion.svg +0 -3
  488. package/es/components/icon/svgs/vis_visual_builder.svg +0 -3
  489. package/lib/components/icon/assets/menu_down.js +0 -40
  490. package/lib/components/icon/assets/menu_up.js +0 -40
  491. package/lib/components/icon/assets/vis_timelion.js +0 -40
  492. package/lib/components/icon/assets/vis_visual_builder.js +0 -40
  493. package/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
  494. package/lib/components/icon/svgs/cloud_stormy.svg +0 -3
  495. package/lib/components/icon/svgs/cloud_sunny.svg +0 -3
  496. package/lib/components/icon/svgs/kql_function.svg +0 -5
  497. package/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
  498. package/lib/components/icon/svgs/menu_down.svg +0 -3
  499. package/lib/components/icon/svgs/menu_up.svg +0 -3
  500. package/lib/components/icon/svgs/namespace.svg +0 -3
  501. package/lib/components/icon/svgs/vis_timelion.svg +0 -3
  502. package/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
  503. package/optimize/es/components/icon/assets/menu_down.js +0 -32
  504. package/optimize/es/components/icon/assets/menu_up.js +0 -32
  505. package/optimize/es/components/icon/assets/vis_timelion.js +0 -32
  506. package/optimize/es/components/icon/assets/vis_visual_builder.js +0 -32
  507. package/optimize/es/components/icon/svgs/cloud_drizzle.svg +0 -3
  508. package/optimize/es/components/icon/svgs/cloud_stormy.svg +0 -3
  509. package/optimize/es/components/icon/svgs/cloud_sunny.svg +0 -3
  510. package/optimize/es/components/icon/svgs/kql_function.svg +0 -5
  511. package/optimize/es/components/icon/svgs/kubernetes_pod.svg +0 -3
  512. package/optimize/es/components/icon/svgs/menu_down.svg +0 -3
  513. package/optimize/es/components/icon/svgs/menu_up.svg +0 -3
  514. package/optimize/es/components/icon/svgs/namespace.svg +0 -3
  515. package/optimize/es/components/icon/svgs/vis_timelion.svg +0 -3
  516. package/optimize/es/components/icon/svgs/vis_visual_builder.svg +0 -3
  517. package/optimize/lib/components/icon/assets/menu_down.js +0 -40
  518. package/optimize/lib/components/icon/assets/menu_up.js +0 -40
  519. package/optimize/lib/components/icon/assets/vis_timelion.js +0 -40
  520. package/optimize/lib/components/icon/assets/vis_visual_builder.js +0 -40
  521. package/optimize/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
  522. package/optimize/lib/components/icon/svgs/cloud_stormy.svg +0 -3
  523. package/optimize/lib/components/icon/svgs/cloud_sunny.svg +0 -3
  524. package/optimize/lib/components/icon/svgs/kql_function.svg +0 -5
  525. package/optimize/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
  526. package/optimize/lib/components/icon/svgs/menu_down.svg +0 -3
  527. package/optimize/lib/components/icon/svgs/menu_up.svg +0 -3
  528. package/optimize/lib/components/icon/svgs/namespace.svg +0 -3
  529. package/optimize/lib/components/icon/svgs/vis_timelion.svg +0 -3
  530. package/optimize/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
  531. package/test-env/components/icon/assets/cloud_drizzle.js +0 -40
  532. package/test-env/components/icon/assets/cloud_stormy.js +0 -40
  533. package/test-env/components/icon/assets/cloud_sunny.js +0 -40
  534. package/test-env/components/icon/assets/menu_down.js +0 -40
  535. package/test-env/components/icon/assets/menu_up.js +0 -40
  536. package/test-env/components/icon/assets/vis_timelion.js +0 -40
  537. package/test-env/components/icon/assets/vis_visual_builder.js +0 -40
@@ -7,10 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports._EuiSplitButton = exports.EuiSplitButton = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
13
  var _classnames = _interopRequireDefault(require("classnames"));
13
14
  var _react = _interopRequireWildcard(require("react"));
15
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
14
16
  var _services = require("../../../services");
15
17
  var _global_styling = require("../../../global_styling");
16
18
  var _split_button_context = require("./split_button_context");
@@ -27,6 +29,8 @@ var _excluded = ["className", "children", "size", "color", "fill", "isDisabled",
27
29
  */
28
30
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
29
31
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
32
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30
34
  var _EuiSplitButton = exports._EuiSplitButton = function _EuiSplitButton(_ref) {
31
35
  var className = _ref.className,
32
36
  children = _ref.children,
@@ -41,29 +45,41 @@ var _EuiSplitButton = exports._EuiSplitButton = function _EuiSplitButton(_ref) {
41
45
  isLoading = _ref.isLoading,
42
46
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
43
47
  var euiThemeContext = (0, _services.useEuiTheme)();
44
- var highContrastMode = euiThemeContext.highContrastMode;
48
+ var euiTheme = euiThemeContext.euiTheme,
49
+ highContrastMode = euiThemeContext.highContrastMode;
45
50
  var _children = (0, _slicedToArray2.default)(children, 2),
46
51
  primaryAction = _children[0],
47
52
  secondaryAction = _children[1];
48
53
  var key = (0, _services.useGeneratedHtmlId)({
49
54
  suffix: 'EuiSplitButton'
50
55
  });
51
- var commonProps = {
52
- size: size,
53
- color: color,
54
- fill: fill,
55
- isDisabled: isDisabled,
56
- hasAriaDisabled: hasAriaDisabled,
57
- isLoading: isLoading
58
- };
56
+ var commonProps = (0, _react.useMemo)(function () {
57
+ return {
58
+ size: size,
59
+ color: color,
60
+ fill: fill,
61
+ isDisabled: isDisabled,
62
+ hasAriaDisabled: hasAriaDisabled,
63
+ isLoading: isLoading
64
+ };
65
+ }, [size, color, fill, isDisabled, hasAriaDisabled, isLoading]);
59
66
  var buttonFilledColors = (0, _global_styling.getEuiFilledButtonColorValues)(euiThemeContext, isDisabled ? 'disabled' : color);
60
67
  var buttonColors = (0, _global_styling.getEuiButtonColorValues)(euiThemeContext, isDisabled ? 'disabled' : color);
68
+ var borderToken = color === 'text' ? 'borderBasePlain' : (0, _euiThemeCommon.getTokenName)('borderBase', color);
61
69
  var classes = (0, _classnames.default)('euiSplitButton', className);
62
- var styles = (0, _services.useEuiMemoizedStyles)(_split_button.euiSplitButtonStyles);
63
- var cssStyles = [styles.euiSplitButton, fill && styles.fill];
70
+ var styles = (0, _react.useMemo)(function () {
71
+ return (0, _split_button.euiSplitButtonStyles)(euiThemeContext, fill ? buttonFilledColors.backgroundColor : buttonColors.backgroundColor);
72
+ }, [euiThemeContext, fill, buttonFilledColors.backgroundColor, buttonColors.backgroundColor]);
73
+ var cssStyles = [styles.euiSplitButton, (color === 'text' || highContrastMode) && styles.hasBorder];
74
+ var dividerColor = color === 'warning' && fill ? buttonFilledColors.color : euiTheme.colors[borderToken];
64
75
  var dividerStyles = (0, _react.useMemo)(function () {
65
- return (0, _split_button.euiSplitButtonDividerStyles)(euiThemeContext, !fill ? buttonColors.borderColor : highContrastMode && fill ? buttonFilledColors.backgroundColor : 'transparent');
66
- }, [euiThemeContext, highContrastMode, fill, buttonFilledColors.backgroundColor, buttonColors.borderColor]);
76
+ return (0, _split_button.euiSplitButtonDividerStyles)(euiThemeContext, highContrastMode && fill ? buttonFilledColors.color : dividerColor);
77
+ }, [euiThemeContext, highContrastMode, fill, buttonFilledColors.color, dividerColor]);
78
+ var cssVariables = (0, _react.useMemo)(function () {
79
+ return {
80
+ '--euiSplitButtonBorderColor': dividerColor
81
+ };
82
+ }, [dividerColor]);
67
83
 
68
84
  // NOTE: dev-mode-only runtime check to evaluate if correct child components are passed
69
85
  if (process.env.NODE_ENV !== 'production') {
@@ -81,8 +97,12 @@ var _EuiSplitButton = exports._EuiSplitButton = function _EuiSplitButton(_ref) {
81
97
  return (0, _react2.jsx)("div", (0, _extends2.default)({
82
98
  role: "group",
83
99
  className: classes,
84
- css: cssStyles
85
- }, rest), (0, _react2.jsx)(_split_button_context.EuiSplitButtonContext.Provider, {
100
+ css: cssStyles,
101
+ "data-size": size,
102
+ "data-fill": fill || undefined
103
+ }, rest, {
104
+ style: _objectSpread({}, cssVariables)
105
+ }), (0, _react2.jsx)(_split_button_context.EuiSplitButtonContext.Provider, {
86
106
  value: commonProps
87
107
  }, (0, _react2.jsx)(_react.Fragment, {
88
108
  key: "".concat(key, "-primaryAction")
@@ -6,50 +6,48 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiSplitButtonStyles = exports.euiSplitButtonDividerStyles = exports.euiSplitButtonActionStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
9
+ /*
10
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11
11
  * or more contributor license agreements. Licensed under the Elastic License
12
12
  * 2.0 and the Server Side Public License, v 1; you may not use this file except
13
13
  * in compliance with, at your election, the Elastic License 2.0 or the Server
14
14
  * Side Public License, v 1.
15
15
  */
16
- var euiSplitButtonStyles = exports.euiSplitButtonStyles = function euiSplitButtonStyles(euiThemeContext) {
16
+
17
+ var primaryDisabledSelector = ".euiSplitButtonActionPrimary:is(".concat(_global_styling.euiDisabledSelector, ")");
18
+ var secondaryDisabledSelector = ".euiSplitButtonActionSecondary:is(".concat(_global_styling.euiDisabledSelector, ")");
19
+ var euiSplitButtonStyles = exports.euiSplitButtonStyles = function euiSplitButtonStyles(euiThemeContext, backgroundColor) {
17
20
  var euiTheme = euiThemeContext.euiTheme;
18
- var primaryDisabledSelector = ".euiSplitButtonActionPrimary:is(".concat(_global_styling.euiDisabledSelector, ")");
19
- var secondaryDisabledSelector = ".euiSplitButtonActionSecondary:is(".concat(_global_styling.euiDisabledSelector, ")");
20
- var dividerSelector = ".euiSplitButton__divider";
21
+ var buttonSizeMap = (0, _global_styling.euiButtonSizeMap)(euiThemeContext);
22
+ var borderStyles = function borderStyles(color) {
23
+ return "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(color, ";\n border-radius: ").concat(euiTheme.border.radius.small, ";\n pointer-events: none;\n }\n ");
24
+ };
21
25
  return {
22
- euiSplitButton: /*#__PURE__*/(0, _react.css)("display:inline-flex;flex-wrap:nowrap;&:has(", primaryDisabledSelector, "):has(", secondaryDisabledSelector, "){", dividerSelector, "{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
23
- // When both buttons are disabled set as visual gap
24
- none: "\n border-color: transparent;\n ",
25
- // When both buttons are disabled set a disabled divider color
26
- preferred: "\n border-color: ".concat(euiTheme.colors.borderBaseDisabled, ";\n ")
27
- }), ";}};label:euiSplitButton;"),
28
- // When both buttons are enabled set as visual gap
29
- fill: /*#__PURE__*/(0, _react.css)("&:not(:has(", primaryDisabledSelector, ")):not(\n :has(", secondaryDisabledSelector, ")\n ){", dividerSelector, "{border-color:transparent;}};label:fill;")
26
+ euiSplitButton: /*#__PURE__*/(0, _react.css)("position:relative;display:inline-flex;align-items:center;flex-wrap:nowrap;max-inline-size:fit-content;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";background-color:", backgroundColor, ";&:where([data-size='s']){block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m']){block-size:", buttonSizeMap.m.height, ";}&:has(", primaryDisabledSelector, ", ", secondaryDisabledSelector, "){background-color:", euiTheme.colors.backgroundBaseDisabled, ";};label:euiSplitButton;"),
27
+ hasBorder: /*#__PURE__*/(0, _react.css)((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
28
+ none: "\n &:where(:not([data-fill])):not(:has(".concat(primaryDisabledSelector, ", ").concat(secondaryDisabledSelector, ")) {\n ").concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n }\n "),
29
+ preferred: "\n &:where(:not([data-fill])) {\n ".concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n\n &:has(").concat(primaryDisabledSelector, ", ").concat(secondaryDisabledSelector, ") {\n ").concat(borderStyles(euiTheme.colors.borderBaseDisabled), "\n }\n }\n\n &:where([data-fill]):has(").concat(primaryDisabledSelector, ", ").concat(secondaryDisabledSelector, ") {\n ").concat(borderStyles(euiTheme.colors.borderBaseDisabled), "\n }\n "),
30
+ forced: "\n ".concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n ")
31
+ }), ";;label:hasBorder;")
30
32
  };
31
33
  };
32
- var euiSplitButtonActionStyles = exports.euiSplitButtonActionStyles = {
33
- euiSplitButtonActionPrimary: process.env.NODE_ENV === "production" ? {
34
- name: "12txneb-euiSplitButtonActionPrimary",
35
- styles: "z-index:0;border-inline-end:none;border-start-end-radius:0;border-end-end-radius:0;label:euiSplitButtonActionPrimary;"
36
- } : {
37
- name: "12txneb-euiSplitButtonActionPrimary",
38
- styles: "z-index:0;border-inline-end:none;border-start-end-radius:0;border-end-end-radius:0;label:euiSplitButtonActionPrimary;",
39
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
- },
41
- euiSplitButtonActionSecondary: process.env.NODE_ENV === "production" ? {
42
- name: "5uh4vx-euiSplitButtonActionSecondary",
43
- styles: "border-inline-start:none;border-start-start-radius:0;border-end-start-radius:0;label:euiSplitButtonActionSecondary;"
44
- } : {
45
- name: "5uh4vx-euiSplitButtonActionSecondary",
46
- styles: "border-inline-start:none;border-start-start-radius:0;border-end-start-radius:0;label:euiSplitButtonActionSecondary;",
47
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
48
- }
34
+ var euiSplitButtonActionStyles = exports.euiSplitButtonActionStyles = function euiSplitButtonActionStyles(euiThemeContext, size) {
35
+ var euiTheme = euiThemeContext.euiTheme;
36
+ var buttonSizeMap = (0, _global_styling.euiButtonSizeMap)(euiThemeContext);
37
+
38
+ // uses smaller sizes due to the buttons being inset into the parent container
39
+ var buttonSize = size === 's' ? buttonSizeMap.xs.height : buttonSizeMap.s.height;
40
+ var buttonMinWidth = size === 's' ? buttonSizeMap.xs.minWidth : buttonSizeMap.s.minWidth;
41
+ var buttonRadius = size === 's' ? buttonSizeMap.xs.radiusInset : buttonSizeMap.s.radiusInset;
42
+ var commonStyles = "\n block-size: ".concat(buttonSize, ";\n border-radius: ").concat(buttonRadius, ";\n /* prevent issues in jsdom where pointer-events: none is inherited from the pseudo element */\n pointer-events: auto;\n\n /* zero-specificity ancestor :has() check */\n &:where(:not(:has(").concat(primaryDisabledSelector, ", ").concat(secondaryDisabledSelector, ")) &) {\n border: none;\n }\n \n &:where(:has(").concat(primaryDisabledSelector, ", ").concat(secondaryDisabledSelector, ") &) {\n &:is(").concat(_global_styling.euiDisabledSelector, ") {\n border: none;\n }\n }\n \n ");
43
+ return {
44
+ euiSplitButtonActionPrimary: /*#__PURE__*/(0, _react.css)(commonStyles, " z-index:", euiTheme.levels.content, ";&:not(.euiButtonIcon){min-inline-size:", buttonMinWidth, "px;}&.euiButtonIcon{inline-size:", buttonSize, ";};label:euiSplitButtonActionPrimary;"),
45
+ euiSplitButtonActionSecondary: /*#__PURE__*/(0, _react.css)(commonStyles, " inline-size:", buttonSize, ";;label:euiSplitButtonActionSecondary;")
46
+ };
49
47
  };
50
48
  var euiSplitButtonDividerStyles = exports.euiSplitButtonDividerStyles = function euiSplitButtonDividerStyles(euiThemeContext, color) {
51
49
  var euiTheme = euiThemeContext.euiTheme;
52
50
  return {
53
- divider: /*#__PURE__*/(0, _react.css)("border-inline-start:", euiTheme.border.width.thin, " solid ", color, ";;label:divider;")
51
+ divider: /*#__PURE__*/(0, _react.css)("block-size:calc(100% - ", euiTheme.size.s, ");border-inline-start:", euiTheme.border.width.thin, " solid ", color, ";", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.xs), ";&:where(\n ", primaryDisabledSelector, " + &,\n :has(~ ", secondaryDisabledSelector, ")\n ){border-color:", euiTheme.colors.borderBaseDisabled, ";};label:divider;")
54
52
  };
55
53
  };
@@ -11,6 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
+ var _services = require("../../../services");
14
15
  var _popover = require("../../popover");
15
16
  var _tool_tip = require("../../tool_tip");
16
17
  var _button = require("../button");
@@ -20,9 +21,9 @@ var _split_button = require("./split_button.styles");
20
21
  var _split_button_context = require("./split_button_context");
21
22
  var _react2 = require("@emotion/react");
22
23
  var _excluded = ["className", "isIconOnly", "tooltipProps"],
23
- _excluded2 = ["fill", "isDisabled", "isLoading"],
24
+ _excluded2 = ["fill", "isDisabled", "isLoading", "size"],
24
25
  _excluded3 = ["className", "popoverProps", "tooltipProps"],
25
- _excluded4 = ["fill", "isDisabled", "isLoading"];
26
+ _excluded4 = ["fill", "isDisabled", "isLoading", "size"];
26
27
  /*
27
28
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
28
29
  * or more contributor license agreements. Licensed under the Elastic License
@@ -39,17 +40,22 @@ var EuiSplitButtonActionPrimary = exports.EuiSplitButtonActionPrimary = function
39
40
  isIconOnly = _ref.isIconOnly,
40
41
  tooltipProps = _ref.tooltipProps,
41
42
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
43
+ var euiThemeContext = (0, _services.useEuiTheme)();
42
44
  var _useContext = (0, _react.useContext)(_split_button_context.EuiSplitButtonContext),
43
45
  fill = _useContext.fill,
44
46
  isDisabled = _useContext.isDisabled,
45
47
  isLoading = _useContext.isLoading,
48
+ size = _useContext.size,
46
49
  sharedRest = (0, _objectWithoutProperties2.default)(_useContext, _excluded2);
47
50
  var _isDisabled = !!isDisabled || (0, _button_display.isButtonDisabled)(rest);
48
51
  var _isLoading = !!isLoading || !!rest.isLoading;
49
52
  var display = fill ? 'fill' : 'base';
50
53
  var classes = (0, _classnames.default)('euiSplitButtonActionPrimary', className);
51
- var styles = _split_button.euiSplitButtonActionStyles;
54
+ var styles = (0, _react.useMemo)(function () {
55
+ return (0, _split_button.euiSplitButtonActionStyles)(euiThemeContext, size);
56
+ }, [euiThemeContext, size]);
52
57
  var actionProps = _objectSpread(_objectSpread(_objectSpread({}, rest), sharedRest), {}, {
58
+ size: size,
53
59
  isDisabled: _isDisabled,
54
60
  isLoading: _isLoading,
55
61
  css: [styles.euiSplitButtonActionPrimary],
@@ -69,17 +75,22 @@ var EuiSplitButtonActionSecondary = exports.EuiSplitButtonActionSecondary = func
69
75
  popoverProps = _ref2.popoverProps,
70
76
  tooltipProps = _ref2.tooltipProps,
71
77
  rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded3);
78
+ var euiThemeContext = (0, _services.useEuiTheme)();
72
79
  var _useContext2 = (0, _react.useContext)(_split_button_context.EuiSplitButtonContext),
73
80
  fill = _useContext2.fill,
74
81
  isDisabled = _useContext2.isDisabled,
75
82
  isLoading = _useContext2.isLoading,
83
+ size = _useContext2.size,
76
84
  sharedRest = (0, _objectWithoutProperties2.default)(_useContext2, _excluded4);
77
85
  var _isDisabled = !!isDisabled || (0, _button_display.isButtonDisabled)(rest);
78
86
  var _isLoading = !!isLoading || !!rest.isLoading;
79
87
  var display = fill ? 'fill' : 'base';
80
88
  var classes = (0, _classnames.default)('euiSplitButtonActionSecondary', className);
81
- var styles = _split_button.euiSplitButtonActionStyles;
89
+ var styles = (0, _react.useMemo)(function () {
90
+ return (0, _split_button.euiSplitButtonActionStyles)(euiThemeContext, size);
91
+ }, [euiThemeContext, size]);
82
92
  var actionProps = _objectSpread(_objectSpread(_objectSpread({}, rest), sharedRest), {}, {
93
+ size: size,
83
94
  display: display,
84
95
  // enforce chevronSingleDown icon when a popover is rendered
85
96
  iconType: popoverProps != null ? 'chevronSingleDown' : rest.iconType,
@@ -20,27 +20,40 @@ var _button_display = require("./button_display/_button_display");
20
20
  * popover boundary isolation and isDisabled computation.
21
21
  */
22
22
  function useEuiButtonCommonProps(_ref) {
23
- var _groupContext$isDisab, _groupContext$size, _groupContext$color, _groupContext$hasAria, _groupContext$fullWid;
23
+ var _groupContext$isDisab, _groupContext$getSele, _groupContext$size, _groupContext$color, _groupContext$hasAria, _groupContext$fullWid, _ref2, _groupContext$display, _selectionProps$isSel;
24
24
  var size = _ref.size,
25
25
  color = _ref.color,
26
26
  _isDisabled = _ref.isDisabled,
27
27
  hasAriaDisabled = _ref.hasAriaDisabled,
28
28
  fullWidth = _ref.fullWidth,
29
+ fill = _ref.fill,
30
+ _display = _ref.display,
29
31
  href = _ref.href,
30
32
  disabled = _ref.disabled,
31
- isLoading = _ref.isLoading;
32
- var buttonContext = (0, _react.useContext)(_button_context.EuiButtonContext);
33
- var groupContext = buttonContext;
33
+ isLoading = _ref.isLoading,
34
+ id = _ref.id,
35
+ _isSelected = _ref.isSelected,
36
+ _onClick = _ref.onClick;
37
+ var groupContext = (0, _react.useContext)(_button_context.EuiButtonContext);
34
38
  var isDisabled = (0, _button_display.isButtonDisabled)({
35
39
  href: href,
36
40
  isDisabled: ((_groupContext$isDisab = groupContext.isDisabled) !== null && _groupContext$isDisab !== void 0 ? _groupContext$isDisab : _isDisabled) || disabled,
37
41
  isLoading: isLoading
38
42
  });
43
+ var selectionProps = id != null ? (_groupContext$getSele = groupContext.getSelectionProps) === null || _groupContext$getSele === void 0 ? void 0 : _groupContext$getSele.call(groupContext, id) : undefined;
44
+ var onClick = selectionProps ? function (event) {
45
+ selectionProps.onSelect();
46
+ _onClick === null || _onClick === void 0 || _onClick(event);
47
+ } : _onClick;
39
48
  return {
40
49
  size: (_groupContext$size = groupContext.size) !== null && _groupContext$size !== void 0 ? _groupContext$size : size,
41
50
  color: (_groupContext$color = groupContext.color) !== null && _groupContext$color !== void 0 ? _groupContext$color : color,
42
51
  isDisabled: isDisabled,
43
52
  hasAriaDisabled: (_groupContext$hasAria = groupContext.hasAriaDisabled) !== null && _groupContext$hasAria !== void 0 ? _groupContext$hasAria : hasAriaDisabled,
44
- fullWidth: (_groupContext$fullWid = groupContext.fullWidth) !== null && _groupContext$fullWid !== void 0 ? _groupContext$fullWid : fullWidth
53
+ fullWidth: (_groupContext$fullWid = groupContext.fullWidth) !== null && _groupContext$fullWid !== void 0 ? _groupContext$fullWid : fullWidth,
54
+ display: (_ref2 = (_groupContext$display = groupContext.display) !== null && _groupContext$display !== void 0 ? _groupContext$display : selectionProps === null || selectionProps === void 0 ? void 0 : selectionProps.display) !== null && _ref2 !== void 0 ? _ref2 : _display,
55
+ fill: (selectionProps === null || selectionProps === void 0 ? void 0 : selectionProps.fill) !== undefined ? selectionProps.fill : groupContext.fill !== undefined ? groupContext.fill : fill,
56
+ isSelected: (_selectionProps$isSel = selectionProps === null || selectionProps === void 0 ? void 0 : selectionProps.isSelected) !== null && _selectionProps$isSel !== void 0 ? _selectionProps$isSel : _isSelected,
57
+ onClick: onClick
45
58
  };
46
59
  }
@@ -436,7 +436,7 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
436
436
 
437
437
  // classNames set by EuiDataGridCellWrapper
438
438
  var isControlColumn = cellClasses.includes('euiDataGridRowCell--controlColumn');
439
- var isLastColumn = cellClasses.includes('euiDataGridRowCell--lastColumn');
439
+ var isLastCopyColumn = cellClasses.includes('euiDataGridRowCell--lastCopyColumn') || !isControlColumn && cellClasses.includes('euiDataGridRowCell--lastColumn');
440
440
  var ariaRowIndex = pagination ? visibleRowIndex + 1 + pagination.pageSize * pagination.pageIndex : visibleRowIndex + 1;
441
441
  var _this$state$cellProps2 = this.state.cellProps,
442
442
  _ = _this$state$cellProps2.isExpandable,
@@ -476,7 +476,7 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
476
476
  onKeyDown: this.handleCellKeyDown,
477
477
  onMouseEnter: this.onMouseEnter,
478
478
  onMouseLeave: this.onMouseLeave
479
- }), (0, _react2.jsx)(_focus_utils.HandleInteractiveChildren, {
479
+ }), isControlColumn && _services.tabularCopyMarkers.hiddenNoCopyBoundary, (0, _react2.jsx)(_focus_utils.HandleInteractiveChildren, {
480
480
  cellEl: this.cellRef.current,
481
481
  updateCellFocusContext: this.updateCellFocusContext,
482
482
  renderFocusTrap: !isExpandable
@@ -492,7 +492,7 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
492
492
  isControlColumn: isControlColumn,
493
493
  rowIndex: rowIndex,
494
494
  colIndex: colIndex
495
- }))), isLastColumn ? _services.tabularCopyMarkers.hiddenNewline : _services.tabularCopyMarkers.hiddenTab, this.state.isFocused && (0, _react2.jsx)(CellScreenReaderDescription, {
495
+ }))), isControlColumn ? _services.tabularCopyMarkers.hiddenNoCopyBoundary : isLastCopyColumn ? _services.tabularCopyMarkers.hiddenNewline : _services.tabularCopyMarkers.hiddenTab, this.state.isFocused && (0, _react2.jsx)(CellScreenReaderDescription, {
496
496
  columnName: (column === null || column === void 0 ? void 0 : column.displayAsText) || this.props.columnId,
497
497
  columnIndex: colIndex + 1,
498
498
  rowIndex: ariaRowIndex,
@@ -12,6 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
14
  var _sorting = require("../../utils/sorting");
15
+ var _last_copy_column = require("../../utils/last_copy_column");
15
16
  var _data_grid_cell_popover = require("./data_grid_cell_popover");
16
17
  var _data_grid_cell = require("./data_grid_cell");
17
18
  var _react2 = require("@emotion/react");
@@ -57,6 +58,7 @@ var CellWrapper = exports.CellWrapper = /*#__PURE__*/(0, _react.memo)(function (
57
58
  getCorrectRowIndex = _useContext.getCorrectRowIndex;
58
59
  var isFirstColumn = colIndex === 0;
59
60
  var isLastColumn = colIndex === visibleColCount - 1;
61
+ var isLastCopyColumn = colIndex === (0, _last_copy_column.getLastCopyColumnIndex)(leadingControlColumns.length, columns.length);
60
62
  var isLeadingControlColumn = colIndex < leadingControlColumns.length;
61
63
  var isTrailingControlColumn = colIndex >= leadingControlColumns.length + columns.length;
62
64
  var datacolIndex = colIndex - leadingControlColumns.length;
@@ -72,6 +74,7 @@ var CellWrapper = exports.CellWrapper = /*#__PURE__*/(0, _react.memo)(function (
72
74
  var classes = (0, _classnames.default)((0, _defineProperty2.default)({
73
75
  'euiDataGridRowCell--firstColumn': isFirstColumn,
74
76
  'euiDataGridRowCell--lastColumn': isLastColumn,
77
+ 'euiDataGridRowCell--lastCopyColumn': isLastCopyColumn,
75
78
  'euiDataGridRowCell--controlColumn': isLeadingControlColumn || isTrailingControlColumn
76
79
  }, "euiDataGridRowCell--".concat(textTransform), textTransform));
77
80
  return {
@@ -89,7 +92,7 @@ var CellWrapper = exports.CellWrapper = /*#__PURE__*/(0, _react.memo)(function (
89
92
  pagination: pagination,
90
93
  cellContext: cellContext
91
94
  };
92
- }, [colIndex, setRowHeight, visibleRowIndex, getCorrectRowIndex, interactiveCellId, style, rowHeightsOptions, rowHeightUtils, rowManager, popoverContext, pagination, cellContext, isFirstColumn, isLastColumn, isLeadingControlColumn, isTrailingControlColumn, textTransform]);
95
+ }, [colIndex, setRowHeight, visibleRowIndex, getCorrectRowIndex, interactiveCellId, style, rowHeightsOptions, rowHeightUtils, rowManager, popoverContext, pagination, cellContext, isFirstColumn, isLastColumn, isLastCopyColumn, isLeadingControlColumn, isTrailingControlColumn, textTransform]);
93
96
  if (isLeadingControlColumn) {
94
97
  var leadingColumn = leadingControlColumns[colIndex];
95
98
  var id = leadingColumn.id,
@@ -13,6 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _services = require("../../../../services");
14
14
  var _cell = require("../cell");
15
15
  var _data_grid_footer = require("./data_grid_footer.styles");
16
+ var _last_copy_column = require("../../utils/last_copy_column");
16
17
  var _react2 = require("@emotion/react");
17
18
  var _excluded = ["leadingControlColumns", "trailingControlColumns", "columns", "schema", "columnWidths", "defaultColumnWidth", "className", "renderCellValue", "renderCellPopover", "rowIndex", "interactiveCellId", "data-test-subj", "visibleRowIndex", "visibleColCount", "gridStyles"];
18
19
  /*
@@ -49,12 +50,14 @@ var EuiDataGridFooterRow = exports.EuiDataGridFooterRow = /*#__PURE__*/(0, _reac
49
50
  var cssStyles = [styles.euiDataGridFooter, gridStyles.stickyFooter && styles.sticky, gridStyles.footer === 'striped' ? visibleRowIndex % 2 !== 0 && styles.striped : styles[gridStyles.footer]];
50
51
  var classes = (0, _classnames.default)('euiDataGridFooter', className);
51
52
  var dataTestSubj = (0, _classnames.default)('dataGridRow', 'dataGridFooterRow', _dataTestSubj);
53
+ var lastCopyColumnIndex = (0, _last_copy_column.getLastCopyColumnIndex)(leadingControlColumns.length, columns.length);
52
54
  var getCellClasses = (0, _react.useCallback)(function (columnIndex, classes) {
53
55
  return (0, _classnames.default)('euiDataGridFooterCell', {
54
56
  'euiDataGridRowCell--firstColumn': columnIndex === 0,
55
- 'euiDataGridRowCell--lastColumn': columnIndex === visibleColCount - 1
57
+ 'euiDataGridRowCell--lastColumn': columnIndex === visibleColCount - 1,
58
+ 'euiDataGridRowCell--lastCopyColumn': columnIndex === lastCopyColumnIndex
56
59
  }, classes);
57
- }, [visibleColCount]);
60
+ }, [visibleColCount, lastCopyColumnIndex]);
58
61
  var popoverContext = (0, _react.useContext)(_cell.DataGridCellPopoverContext);
59
62
  var sharedCellProps = {
60
63
  css: styles.euiDataGridFooterCell,
@@ -84,7 +84,9 @@ var ColumnActions = exports.ColumnActions = /*#__PURE__*/(0, _react.memo)(functi
84
84
  });
85
85
  var actionsEnterKeyInstructions = (0, _i18n.useEuiI18n)('euiDataGridHeaderCell.actionsEnterKeyInstructions', "Press the Enter key to view this column's actions");
86
86
  var openActionsPopoverOnEnter = (0, _react.useCallback)(function (e) {
87
- if (e.key === _services.keys.ENTER) {
87
+ // Only handle Enter when the cell div itself is focused,
88
+ // not when it bubbles up from the nested button
89
+ if (e.key === _services.keys.ENTER && e.target === e.currentTarget) {
88
90
  setIsPopoverOpen(true);
89
91
  }
90
92
  }, []);
@@ -34,7 +34,8 @@ var EuiDataGridControlHeaderCell = exports.EuiDataGridControlHeaderCell = /*#__P
34
34
  id: id,
35
35
  index: index,
36
36
  width: width,
37
- isLastColumn: isLastColumn
37
+ isLastColumn: isLastColumn,
38
+ isControlColumn: true
38
39
  }), (0, _react2.jsx)(HeaderCellRender, null));
39
40
  });
40
41
  EuiDataGridControlHeaderCell.displayName = 'EuiDataGridControlHeaderCell';
@@ -40,6 +40,8 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
40
40
  setVisibleColumns = _ref.setVisibleColumns,
41
41
  switchColumnPos = _ref.switchColumnPos,
42
42
  isLastColumn = _ref.isLastColumn,
43
+ _ref$isLastCopyColumn = _ref.isLastCopyColumn,
44
+ isLastCopyColumn = _ref$isLastCopyColumn === void 0 ? isLastColumn : _ref$isLastCopyColumn,
43
45
  sorting = _ref.sorting,
44
46
  schema = _ref.schema,
45
47
  schemaDetectors = _ref.schemaDetectors,
@@ -97,6 +99,7 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
97
99
  id: id,
98
100
  index: index,
99
101
  isLastColumn: isLastColumn,
102
+ isLastCopyColumn: isLastCopyColumn,
100
103
  width: width,
101
104
  "aria-sort": ariaSort,
102
105
  "aria-labelledby": cellContentId,
@@ -16,7 +16,7 @@ var _focus = require("../../utils/focus");
16
16
  var _focus_utils = require("../cell/focus_utils");
17
17
  var _data_grid_header_cell_wrapper = require("./data_grid_header_cell_wrapper.styles");
18
18
  var _react2 = require("@emotion/react");
19
- var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label", "aria-labelledby"];
19
+ var _excluded = ["id", "index", "isLastColumn", "isLastCopyColumn", "isControlColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label", "aria-labelledby"];
20
20
  /*
21
21
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
22
  * or more contributor license agreements. Licensed under the Elastic License
@@ -35,6 +35,10 @@ var EuiDataGridHeaderCellWrapper = exports.EuiDataGridHeaderCellWrapper = functi
35
35
  var id = _ref.id,
36
36
  index = _ref.index,
37
37
  isLastColumn = _ref.isLastColumn,
38
+ _ref$isLastCopyColumn = _ref.isLastCopyColumn,
39
+ isLastCopyColumn = _ref$isLastCopyColumn === void 0 ? isLastColumn : _ref$isLastCopyColumn,
40
+ _ref$isControlColumn = _ref.isControlColumn,
41
+ isControlColumn = _ref$isControlColumn === void 0 ? false : _ref$isControlColumn,
38
42
  width = _ref.width,
39
43
  className = _ref.className,
40
44
  children = _ref.children,
@@ -110,10 +114,10 @@ var EuiDataGridHeaderCellWrapper = exports.EuiDataGridHeaderCellWrapper = functi
110
114
  } : {},
111
115
  "aria-label": renderFocusTrap ? ariaLabel : undefined,
112
116
  "aria-labelledby": renderFocusTrap ? ariaLabelledby : undefined
113
- }, rest), (0, _react2.jsx)(_focus_utils.HandleInteractiveChildren, {
117
+ }, rest), isControlColumn && _services.tabularCopyMarkers.hiddenNoCopyBoundary, (0, _react2.jsx)(_focus_utils.HandleInteractiveChildren, {
114
118
  cellEl: isDragging ? null : headerEl,
115
119
  renderFocusTrap: isDragging ? false : renderFocusTrap,
116
120
  updateCellFocusContext: updateCellFocusContext,
117
121
  onInteractiveChildrenFound: setInteractiveChildren
118
- }, typeof children === 'function' ? children(renderFocusTrap) : children), isLastColumn ? _services.tabularCopyMarkers.hiddenNewline : _services.tabularCopyMarkers.hiddenTab);
122
+ }, typeof children === 'function' ? children(renderFocusTrap) : children), isControlColumn ? _services.tabularCopyMarkers.hiddenNoCopyBoundary : isLastCopyColumn ? _services.tabularCopyMarkers.hiddenNewline : _services.tabularCopyMarkers.hiddenTab);
119
123
  };
@@ -12,6 +12,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _services = require("../../../../services");
14
14
  var _data_grid_types = require("../../data_grid_types");
15
+ var _last_copy_column = require("../../utils/last_copy_column");
15
16
  var _draggable_columns = require("./draggable_columns");
16
17
  var _data_grid_control_header_cell = require("./data_grid_control_header_cell");
17
18
  var _data_grid_header_cell = require("./data_grid_header_cell");
@@ -55,6 +56,10 @@ var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _reac
55
56
  var isLastColumn = (0, _react.useCallback)(function (index) {
56
57
  return index === visibleColCount - 1;
57
58
  }, [visibleColCount]);
59
+ var lastCopyColumnIndex = (0, _last_copy_column.getLastCopyColumnIndex)(leadingControlColumns.length, columns.length);
60
+ var isLastCopyColumn = (0, _react.useCallback)(function (index) {
61
+ return index === lastCopyColumnIndex;
62
+ }, [lastCopyColumnIndex]);
58
63
  return (0, _react2.jsx)("div", (0, _extends2.default)({
59
64
  role: "row",
60
65
  ref: ref,
@@ -79,6 +84,7 @@ var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _reac
79
84
  key: column.id,
80
85
  index: visibleIndex,
81
86
  isLastColumn: isLastColumn(visibleIndex),
87
+ isLastCopyColumn: isLastCopyColumn(visibleIndex),
82
88
  column: column,
83
89
  columns: columns,
84
90
  columnWidths: columnWidths,
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLastCopyColumnIndex = void 0;
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+
15
+ var getLastCopyColumnIndex = exports.getLastCopyColumnIndex = function getLastCopyColumnIndex(leadingControlColumnsLength, columnsLength) {
16
+ return columnsLength > 0 ? leadingControlColumnsLength + columnsLength - 1 : -1;
17
+ };