@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
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.EuiQuickSelect = void 0;
7
8
  var _react = _interopRequireWildcard(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _moment = _interopRequireDefault(require("moment"));
10
10
  var _datemath = _interopRequireDefault(require("@elastic/datemath"));
11
11
  var _services = require("../../../../services");
@@ -22,286 +22,257 @@ var _react2 = require("@emotion/react");
22
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
23
  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); }
24
24
  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; }
25
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
26
25
  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)."; }
27
26
  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; }
28
27
  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) { _defineProperty(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; }
29
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
30
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
31
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
34
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
35
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
36
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
38
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
39
28
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
40
29
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
41
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
30
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
34
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
35
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
36
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /*
42
37
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
43
38
  * or more contributor license agreements. Licensed under the Elastic License
44
39
  * 2.0 and the Server Side Public License, v 1; you may not use this file except
45
40
  * in compliance with, at your election, the Elastic License 2.0 or the Server
46
41
  * Side Public License, v 1.
47
42
  */
48
- var _ref3 = process.env.NODE_ENV === "production" ? {
49
- name: "1bcvmj9-render",
50
- styles: "> div{position:relative;overflow:visible;};label:render;"
43
+ var _ref4 = process.env.NODE_ENV === "production" ? {
44
+ name: "7yqi2-EuiQuickSelect",
45
+ styles: "> div{position:relative;overflow:visible;};label:EuiQuickSelect;"
51
46
  } : {
52
- name: "1bcvmj9-render",
53
- styles: "> div{position:relative;overflow:visible;};label:render;",
47
+ name: "7yqi2-EuiQuickSelect",
48
+ styles: "> div{position:relative;overflow:visible;};label:EuiQuickSelect;",
54
49
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
55
50
  };
56
- var _ref4 = process.env.NODE_ENV === "production" ? {
57
- name: "12n8nux-render",
58
- styles: "position:absolute;right:0;bottom:100%;transform:translateY(-33%);label:render;"
51
+ var _ref5 = process.env.NODE_ENV === "production" ? {
52
+ name: "qbrd7j-EuiQuickSelect",
53
+ styles: "position:absolute;right:0;bottom:100%;transform:translateY(-33%);label:EuiQuickSelect;"
59
54
  } : {
60
- name: "12n8nux-render",
61
- styles: "position:absolute;right:0;bottom:100%;transform:translateY(-33%);label:render;",
55
+ name: "qbrd7j-EuiQuickSelect",
56
+ styles: "position:absolute;right:0;bottom:100%;transform:translateY(-33%);label:EuiQuickSelect;",
62
57
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
63
58
  };
64
- var EuiQuickSelect = exports.EuiQuickSelect = /*#__PURE__*/function (_Component) {
65
- function EuiQuickSelect(props) {
66
- var _this;
67
- _classCallCheck(this, EuiQuickSelect);
68
- _this = _callSuper(this, EuiQuickSelect, [props]);
69
- _defineProperty(_this, "generateId", (0, _services.htmlIdGenerator)());
70
- _defineProperty(_this, "timeSelectionId", _this.generateId());
71
- _defineProperty(_this, "legendId", _this.generateId());
72
- _defineProperty(_this, "onTimeTenseChange", function (event) {
73
- _this.setState({
74
- timeTense: event.target.value
59
+ var EuiQuickSelect = exports.EuiQuickSelect = function EuiQuickSelect(_ref) {
60
+ var applyTime = _ref.applyTime,
61
+ start = _ref.start,
62
+ end = _ref.end,
63
+ prevQuickSelect = _ref.prevQuickSelect,
64
+ timeOptions = _ref.timeOptions;
65
+ var _useState = (0, _react.useState)(function () {
66
+ var _parseTimeParts = (0, _quick_select_utils.parseTimeParts)(start, end),
67
+ timeTenseDefault = _parseTimeParts.timeTense,
68
+ timeUnitsDefault = _parseTimeParts.timeUnits,
69
+ timeValueDefault = _parseTimeParts.timeValue;
70
+ return {
71
+ timeTense: prevQuickSelect && prevQuickSelect.timeTense ? prevQuickSelect.timeTense : timeTenseDefault,
72
+ timeValue: prevQuickSelect && prevQuickSelect.timeValue ? prevQuickSelect.timeValue : timeValueDefault,
73
+ timeUnits: prevQuickSelect && prevQuickSelect.timeUnits ? prevQuickSelect.timeUnits : timeUnitsDefault
74
+ };
75
+ }),
76
+ _useState2 = _slicedToArray(_useState, 2),
77
+ state = _useState2[0],
78
+ setState = _useState2[1];
79
+ var timeSelectionId = (0, _services.useGeneratedHtmlId)();
80
+ var legendId = (0, _services.useGeneratedHtmlId)();
81
+ var onTimeTenseChange = function onTimeTenseChange(event) {
82
+ var timeTense = event.target.value;
83
+ setState(function (state) {
84
+ return _objectSpread(_objectSpread({}, state), {}, {
85
+ timeTense: timeTense
75
86
  });
76
87
  });
77
- _defineProperty(_this, "onTimeValueChange", function (event) {
78
- var sanitizedValue = parseInt(event.target.value, 10);
79
- _this.setState({
88
+ };
89
+ var onTimeValueChange = function onTimeValueChange(event) {
90
+ var sanitizedValue = parseInt(event.target.value, 10);
91
+ setState(function (state) {
92
+ return _objectSpread(_objectSpread({}, state), {}, {
80
93
  timeValue: isNaN(sanitizedValue) ? 0 : sanitizedValue
81
94
  });
82
95
  });
83
- _defineProperty(_this, "onTimeUnitsChange", function (event) {
84
- _this.setState({
85
- timeUnits: event.target.value
96
+ };
97
+ var onTimeUnitsChange = function onTimeUnitsChange(event) {
98
+ var timeUnits = event.target.value;
99
+ setState(function (state) {
100
+ return _objectSpread(_objectSpread({}, state), {}, {
101
+ timeUnits: timeUnits
86
102
  });
87
103
  });
88
- _defineProperty(_this, "handleKeyDown", function (_ref) {
89
- var key = _ref.key;
90
- if (key === 'Enter') {
91
- _this.applyQuickSelect();
92
- }
93
- });
94
- _defineProperty(_this, "applyQuickSelect", function () {
95
- var _this$state = _this.state,
96
- timeTense = _this$state.timeTense,
97
- timeValue = _this$state.timeValue,
98
- timeUnits = _this$state.timeUnits;
99
- if (timeTense === _time_options.NEXT) {
100
- _this.props.applyTime({
101
- start: 'now',
102
- end: "now+".concat(timeValue).concat(timeUnits),
103
- quickSelect: _objectSpread({}, _this.state)
104
- });
105
- return;
106
- }
107
- _this.props.applyTime({
108
- start: "now-".concat(timeValue).concat(timeUnits),
109
- end: 'now',
110
- quickSelect: _objectSpread({}, _this.state)
104
+ };
105
+ var applyQuickSelect = function applyQuickSelect() {
106
+ var timeTense = state.timeTense,
107
+ timeValue = state.timeValue,
108
+ timeUnits = state.timeUnits;
109
+ if (timeTense === _time_options.NEXT) {
110
+ applyTime({
111
+ start: 'now',
112
+ end: "now+".concat(timeValue).concat(timeUnits),
113
+ quickSelect: _objectSpread({}, state)
111
114
  });
115
+ return;
116
+ }
117
+ applyTime({
118
+ start: "now-".concat(timeValue).concat(timeUnits),
119
+ end: 'now',
120
+ quickSelect: _objectSpread({}, state)
112
121
  });
113
- _defineProperty(_this, "getBounds", function () {
114
- var startMoment = _datemath.default.parse(_this.props.start);
115
- var endMoment = _datemath.default.parse(_this.props.end, {
116
- roundUp: true
117
- });
118
- return {
119
- min: startMoment && startMoment.isValid() ? startMoment : (0, _moment.default)().subtract(15, 'minute'),
120
- max: endMoment && endMoment.isValid() ? endMoment : (0, _moment.default)()
121
- };
122
+ };
123
+ var handleKeyDown = function handleKeyDown(_ref2) {
124
+ var key = _ref2.key;
125
+ if (key === 'Enter') {
126
+ applyQuickSelect();
127
+ }
128
+ };
129
+ var getBounds = function getBounds() {
130
+ var startMoment = _datemath.default.parse(start);
131
+ var endMoment = _datemath.default.parse(end, {
132
+ roundUp: true
122
133
  });
123
- _defineProperty(_this, "stepForward", function () {
124
- var _this$getBounds = _this.getBounds(),
125
- min = _this$getBounds.min,
126
- max = _this$getBounds.max;
127
- var diff = max.diff(min);
128
- _this.props.applyTime({
129
- start: (0, _moment.default)(max).toISOString(),
130
- end: (0, _moment.default)(max).add(diff, 'ms').toISOString(),
131
- keepPopoverOpen: true
132
- });
134
+ return {
135
+ min: startMoment && startMoment.isValid() ? startMoment : (0, _moment.default)().subtract(15, 'minute'),
136
+ max: endMoment && endMoment.isValid() ? endMoment : (0, _moment.default)()
137
+ };
138
+ };
139
+ var stepForward = function stepForward() {
140
+ var _getBounds = getBounds(),
141
+ min = _getBounds.min,
142
+ max = _getBounds.max;
143
+ var diff = max.diff(min);
144
+ applyTime({
145
+ start: (0, _moment.default)(max).toISOString(),
146
+ end: (0, _moment.default)(max).add(diff, 'ms').toISOString(),
147
+ keepPopoverOpen: true
133
148
  });
134
- _defineProperty(_this, "stepBackward", function () {
135
- var _this$getBounds2 = _this.getBounds(),
136
- min = _this$getBounds2.min,
137
- max = _this$getBounds2.max;
138
- var diff = max.diff(min);
139
- _this.props.applyTime({
140
- start: (0, _moment.default)(min).subtract(diff, 'ms').toISOString(),
141
- end: (0, _moment.default)(min).toISOString(),
142
- keepPopoverOpen: true
143
- });
149
+ };
150
+ var stepBackward = function stepBackward() {
151
+ var _getBounds2 = getBounds(),
152
+ min = _getBounds2.min,
153
+ max = _getBounds2.max;
154
+ var diff = max.diff(min);
155
+ applyTime({
156
+ start: (0, _moment.default)(min).subtract(diff, 'ms').toISOString(),
157
+ end: (0, _moment.default)(min).toISOString(),
158
+ keepPopoverOpen: true
144
159
  });
145
- var _parseTimeParts = (0, _quick_select_utils.parseTimeParts)(props.start, props.end),
146
- timeTenseDefault = _parseTimeParts.timeTense,
147
- timeUnitsDefault = _parseTimeParts.timeUnits,
148
- timeValueDefault = _parseTimeParts.timeValue;
149
- _this.state = {
150
- timeTense: props.prevQuickSelect && props.prevQuickSelect.timeTense ? props.prevQuickSelect.timeTense : timeTenseDefault,
151
- timeValue: props.prevQuickSelect && props.prevQuickSelect.timeValue ? props.prevQuickSelect.timeValue : timeValueDefault,
152
- timeUnits: props.prevQuickSelect && props.prevQuickSelect.timeUnits ? props.prevQuickSelect.timeUnits : timeUnitsDefault
153
- };
154
- return _this;
155
- }
156
- _inherits(EuiQuickSelect, _Component);
157
- return _createClass(EuiQuickSelect, [{
158
- key: "render",
159
- value: function render() {
160
- var _this2 = this;
161
- var _this$state2 = this.state,
162
- timeTense = _this$state2.timeTense,
163
- timeValue = _this$state2.timeValue,
164
- timeUnits = _this$state2.timeUnits;
165
- var _this$props$timeOptio = this.props.timeOptions,
166
- timeTenseOptions = _this$props$timeOptio.timeTenseOptions,
167
- timeUnitsOptions = _this$props$timeOptio.timeUnitsOptions;
168
- var matchedTimeUnit = timeUnitsOptions.find(function (_ref2) {
169
- var value = _ref2.value;
170
- return value === timeUnits;
171
- });
172
- var timeUnit = matchedTimeUnit ? matchedTimeUnit.text : '';
173
- return (0, _react2.jsx)(_quick_select_panel.EuiQuickSelectPanel, {
174
- component: "fieldset",
175
- title: (0, _react2.jsx)(_i18n.EuiI18n, {
176
- token: "euiQuickSelect.quickSelectTitle",
177
- default: "Quick select"
178
- }),
179
- titleId: this.legendId,
180
- "aria-describedby": this.timeSelectionId,
181
- css: _ref3
182
- }, (0, _react2.jsx)(_flex.EuiFlexGroup, {
183
- css: _ref4,
184
- alignItems: "center",
185
- gutterSize: "s",
186
- responsive: false
187
- }, (0, _react2.jsx)(_flex.EuiFlexItem, {
188
- grow: false
189
- }, (0, _react2.jsx)(_i18n.EuiI18n, {
190
- token: "euiQuickSelect.previousLabel",
191
- default: "Previous time window"
192
- }, function (previousLabel) {
193
- return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
194
- content: previousLabel,
195
- disableScreenReaderOutput: true
196
- }, (0, _react2.jsx)(_button.EuiButtonIcon, {
197
- "aria-label": previousLabel,
198
- iconType: "chevronSingleLeft",
199
- onClick: _this2.stepBackward
200
- }));
201
- })), (0, _react2.jsx)(_flex.EuiFlexItem, {
202
- grow: false
203
- }, (0, _react2.jsx)(_i18n.EuiI18n, {
204
- token: "euiQuickSelect.nextLabel",
205
- default: "Next time window"
206
- }, function (nextLabel) {
207
- return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
208
- content: nextLabel,
209
- disableScreenReaderOutput: true
210
- }, (0, _react2.jsx)(_button.EuiButtonIcon, {
211
- "aria-label": nextLabel,
212
- iconType: "chevronSingleRight",
213
- onClick: _this2.stepForward
214
- }));
215
- }))), (0, _react2.jsx)(_flex.EuiFlexGroup, {
216
- gutterSize: "s",
217
- responsive: false
218
- }, (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
219
- token: "euiQuickSelect.tenseLabel",
220
- default: "Time tense"
221
- }, function (tenseLabel) {
222
- return (0, _react2.jsx)(_form.EuiSelect, {
223
- compressed: true,
224
- onKeyDown: _this2.handleKeyDown,
225
- "aria-label": tenseLabel,
226
- "aria-describedby": "".concat(_this2.timeSelectionId, " ").concat(_this2.legendId),
227
- value: timeTense,
228
- options: timeTenseOptions,
229
- onChange: _this2.onTimeTenseChange
230
- });
231
- })), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
232
- token: "euiQuickSelect.valueLabel",
233
- default: "Time value"
234
- }, function (valueLabel) {
235
- return (0, _react2.jsx)(_form.EuiFieldNumber, {
236
- compressed: true,
237
- onKeyDown: _this2.handleKeyDown,
238
- "aria-describedby": "".concat(_this2.timeSelectionId, " ").concat(_this2.legendId),
239
- "aria-label": valueLabel,
240
- value: timeValue,
241
- onChange: _this2.onTimeValueChange
242
- });
243
- })), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
244
- token: "euiQuickSelect.unitLabel",
245
- default: "Time unit"
246
- }, function (unitLabel) {
247
- return (0, _react2.jsx)(_form.EuiSelect, {
248
- compressed: true,
249
- onKeyDown: _this2.handleKeyDown,
250
- "aria-label": unitLabel,
251
- "aria-describedby": "".concat(_this2.timeSelectionId, " ").concat(_this2.legendId),
252
- value: timeUnits,
253
- options: timeUnitsOptions,
254
- onChange: _this2.onTimeUnitsChange
255
- });
256
- })), (0, _react2.jsx)(_flex.EuiFlexItem, {
257
- grow: false
258
- }, (0, _react2.jsx)(_button.EuiButton, {
259
- "aria-describedby": "".concat(this.timeSelectionId, " ").concat(this.legendId),
260
- "data-test-subj": "superDatePickerQuickSelectApplyButton",
261
- minWidth: 0 // Allow the button to shrink
262
- ,
263
- size: "s",
264
- onClick: this.applyQuickSelect,
265
- disabled: timeValue <= 0
266
- }, (0, _react2.jsx)(_i18n.EuiI18n, {
267
- token: "euiQuickSelect.applyButton",
268
- default: "Apply"
269
- })))), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", {
270
- id: this.timeSelectionId
271
- }, (0, _react2.jsx)(_i18n.EuiI18n, {
272
- token: "euiQuickSelect.fullDescription",
273
- default: "Currently set to {timeTense} {timeValue} {timeUnit}.",
274
- values: {
275
- timeTense: timeTense,
276
- timeValue: timeValue,
277
- timeUnit: timeUnit
278
- }
279
- }))));
160
+ };
161
+ var timeTense = state.timeTense,
162
+ timeValue = state.timeValue,
163
+ timeUnits = state.timeUnits;
164
+ var timeTenseOptions = timeOptions.timeTenseOptions,
165
+ timeUnitsOptions = timeOptions.timeUnitsOptions;
166
+ var matchedTimeUnit = timeUnitsOptions.find(function (_ref3) {
167
+ var value = _ref3.value;
168
+ return value === timeUnits;
169
+ });
170
+ var timeUnit = matchedTimeUnit ? matchedTimeUnit.text : '';
171
+ return (0, _react2.jsx)(_quick_select_panel.EuiQuickSelectPanel, {
172
+ component: "fieldset",
173
+ title: (0, _react2.jsx)(_i18n.EuiI18n, {
174
+ token: "euiQuickSelect.quickSelectTitle",
175
+ default: "Quick select"
176
+ }),
177
+ titleId: legendId,
178
+ "aria-describedby": timeSelectionId,
179
+ css: _ref4
180
+ }, (0, _react2.jsx)(_flex.EuiFlexGroup, {
181
+ css: _ref5,
182
+ alignItems: "center",
183
+ gutterSize: "s",
184
+ responsive: false
185
+ }, (0, _react2.jsx)(_flex.EuiFlexItem, {
186
+ grow: false
187
+ }, (0, _react2.jsx)(_i18n.EuiI18n, {
188
+ token: "euiQuickSelect.previousLabel",
189
+ default: "Previous time window"
190
+ }, function (previousLabel) {
191
+ return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
192
+ content: previousLabel,
193
+ disableScreenReaderOutput: true
194
+ }, (0, _react2.jsx)(_button.EuiButtonIcon, {
195
+ "aria-label": previousLabel,
196
+ iconType: "chevronSingleLeft",
197
+ onClick: stepBackward
198
+ }));
199
+ })), (0, _react2.jsx)(_flex.EuiFlexItem, {
200
+ grow: false
201
+ }, (0, _react2.jsx)(_i18n.EuiI18n, {
202
+ token: "euiQuickSelect.nextLabel",
203
+ default: "Next time window"
204
+ }, function (nextLabel) {
205
+ return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
206
+ content: nextLabel,
207
+ disableScreenReaderOutput: true
208
+ }, (0, _react2.jsx)(_button.EuiButtonIcon, {
209
+ "aria-label": nextLabel,
210
+ iconType: "chevronSingleRight",
211
+ onClick: stepForward
212
+ }));
213
+ }))), (0, _react2.jsx)(_flex.EuiFlexGroup, {
214
+ gutterSize: "s",
215
+ responsive: false
216
+ }, (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
217
+ token: "euiQuickSelect.tenseLabel",
218
+ default: "Time tense"
219
+ }, function (tenseLabel) {
220
+ return (0, _react2.jsx)(_form.EuiSelect, {
221
+ compressed: true,
222
+ onKeyDown: handleKeyDown,
223
+ "aria-label": tenseLabel,
224
+ "aria-describedby": "".concat(timeSelectionId, " ").concat(legendId),
225
+ value: timeTense,
226
+ options: timeTenseOptions,
227
+ onChange: onTimeTenseChange
228
+ });
229
+ })), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
230
+ token: "euiQuickSelect.valueLabel",
231
+ default: "Time value"
232
+ }, function (valueLabel) {
233
+ return (0, _react2.jsx)(_form.EuiFieldNumber, {
234
+ compressed: true,
235
+ onKeyDown: handleKeyDown,
236
+ "aria-describedby": "".concat(timeSelectionId, " ").concat(legendId),
237
+ "aria-label": valueLabel,
238
+ value: timeValue,
239
+ onChange: onTimeValueChange
240
+ });
241
+ })), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_i18n.EuiI18n, {
242
+ token: "euiQuickSelect.unitLabel",
243
+ default: "Time unit"
244
+ }, function (unitLabel) {
245
+ return (0, _react2.jsx)(_form.EuiSelect, {
246
+ compressed: true,
247
+ onKeyDown: handleKeyDown,
248
+ "aria-label": unitLabel,
249
+ "aria-describedby": "".concat(timeSelectionId, " ").concat(legendId),
250
+ value: timeUnits,
251
+ options: timeUnitsOptions,
252
+ onChange: onTimeUnitsChange
253
+ });
254
+ })), (0, _react2.jsx)(_flex.EuiFlexItem, {
255
+ grow: false
256
+ }, (0, _react2.jsx)(_button.EuiButton, {
257
+ "aria-describedby": "".concat(timeSelectionId, " ").concat(legendId),
258
+ "data-test-subj": "superDatePickerQuickSelectApplyButton",
259
+ minWidth: 0 // Allow the button to shrink
260
+ ,
261
+ size: "s",
262
+ onClick: applyQuickSelect,
263
+ disabled: timeValue <= 0
264
+ }, (0, _react2.jsx)(_i18n.EuiI18n, {
265
+ token: "euiQuickSelect.applyButton",
266
+ default: "Apply"
267
+ })))), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", {
268
+ id: timeSelectionId
269
+ }, (0, _react2.jsx)(_i18n.EuiI18n, {
270
+ token: "euiQuickSelect.fullDescription",
271
+ default: "Currently set to {timeTense} {timeValue} {timeUnit}.",
272
+ values: {
273
+ timeTense: timeTense,
274
+ timeValue: timeValue,
275
+ timeUnit: timeUnit
280
276
  }
281
- }]);
282
- }(_react.Component);
283
- EuiQuickSelect.propTypes = {
284
- applyTime: _propTypes.default.func.isRequired,
285
- start: _propTypes.default.string.isRequired,
286
- end: _propTypes.default.string.isRequired,
287
- prevQuickSelect: _propTypes.default.shape({
288
- timeTense: _propTypes.default.string.isRequired,
289
- timeValue: _propTypes.default.number.isRequired,
290
- timeUnits: _propTypes.default.oneOf(["s", "m", "h", "d", "w", "M", "y"]).isRequired
291
- }),
292
- timeOptions: _propTypes.default.shape({
293
- timeTenseOptions: _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired,
294
- timeUnitsOptions: _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired,
295
- relativeOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
296
- text: _propTypes.default.string.isRequired,
297
- value: _propTypes.default.oneOfType([_propTypes.default.oneOf(["s", "m", "h", "d", "w", "M", "y"]).isRequired, _propTypes.default.oneOf(["s+", "m+", "h+", "d+", "w+", "M+", "y+"]).isRequired]).isRequired
298
- }).isRequired).isRequired,
299
- relativeRoundingLabels: _propTypes.default.any.isRequired,
300
- refreshUnitsOptions: _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired,
301
- commonDurationRanges: _propTypes.default.arrayOf(_propTypes.default.shape({
302
- end: _propTypes.default.oneOfType([_propTypes.default.oneOf(["now"]), _propTypes.default.string.isRequired]).isRequired,
303
- label: _propTypes.default.string,
304
- start: _propTypes.default.oneOfType([_propTypes.default.oneOf(["now"]), _propTypes.default.string.isRequired]).isRequired
305
- }).isRequired).isRequired
306
- }).isRequired
277
+ }))));
307
278
  };
@@ -113,7 +113,7 @@ var EuiSuperUpdateButton = exports.EuiSuperUpdateButton = /*#__PURE__*/function
113
113
  var classes = (0, _classnames.default)('euiSuperUpdateButton', className);
114
114
  var sharedButtonProps = {
115
115
  color: needsUpdate || isLoading ? 'success' : 'primary',
116
- iconType: needsUpdate || isLoading ? 'kqlFunction' : 'refresh',
116
+ iconType: needsUpdate || isLoading ? 'push' : 'refresh',
117
117
  isDisabled: isDisabled,
118
118
  onClick: onClick,
119
119
  isLoading: isLoading
@@ -151,7 +151,7 @@ EuiEmptyPrompt.propTypes = {
151
151
  /*
152
152
  * Accepts any [EuiIcon.type](#/display/icons)
153
153
  */
154
- iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
154
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudBolt", "cloudDrizzle", "cloudRain", "cloudStormy", "cloudSun", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "cursorDefault", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logIn", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNamespace", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "productTimelion", "productTSVB", "push", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "routeSplit", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionRightIn", "transitionRightOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
155
155
  /**
156
156
  * Color for `iconType` when passed as an `IconType`
157
157
  */