@@ -26,6 +26,11 @@ import {
2626 createApplyTimeRangeSelectionAction ,
2727} from './apply_time_range_action' ;
2828import { EditSwimlanePanelContext , SwimLaneDrilldownContext } from '../embeddables' ;
29+ import {
30+ CLEAR_SELECTION_ACTION ,
31+ ClearSelectionContext ,
32+ createClearSelectionAction ,
33+ } from './clear_selection_action' ;
2934
3035export { APPLY_TIME_RANGE_SELECTION_ACTION } from './apply_time_range_action' ;
3136export { EDIT_SWIMLANE_PANEL_ACTION } from './edit_swimlane_panel_action' ;
@@ -46,12 +51,14 @@ export function registerMlUiActions(
4651 const openInExplorerAction = createOpenInExplorerAction ( core . getStartServices ) ;
4752 const applyInfluencerFiltersAction = createApplyInfluencerFiltersAction ( core . getStartServices ) ;
4853 const applyTimeRangeSelectionAction = createApplyTimeRangeSelectionAction ( core . getStartServices ) ;
54+ const clearSelectionAction = createClearSelectionAction ( core . getStartServices ) ;
4955
5056 // Register actions
5157 uiActions . registerAction ( editSwimlanePanelAction ) ;
5258 uiActions . registerAction ( openInExplorerAction ) ;
5359 uiActions . registerAction ( applyInfluencerFiltersAction ) ;
5460 uiActions . registerAction ( applyTimeRangeSelectionAction ) ;
61+ uiActions . registerAction ( clearSelectionAction ) ;
5562
5663 // Assign triggers
5764 uiActions . attachAction ( CONTEXT_MENU_TRIGGER , editSwimlanePanelAction . id ) ;
@@ -62,6 +69,7 @@ export function registerMlUiActions(
6269 uiActions . addTriggerAction ( SWIM_LANE_SELECTION_TRIGGER , applyInfluencerFiltersAction ) ;
6370 uiActions . addTriggerAction ( SWIM_LANE_SELECTION_TRIGGER , applyTimeRangeSelectionAction ) ;
6471 uiActions . addTriggerAction ( SWIM_LANE_SELECTION_TRIGGER , openInExplorerAction ) ;
72+ uiActions . addTriggerAction ( SWIM_LANE_SELECTION_TRIGGER , clearSelectionAction ) ;
6573}
6674
6775declare module '../../../../../src/plugins/ui_actions/public' {
@@ -70,9 +78,10 @@ declare module '../../../../../src/plugins/ui_actions/public' {
7078 [ OPEN_IN_ANOMALY_EXPLORER_ACTION ] : SwimLaneDrilldownContext ;
7179 [ APPLY_INFLUENCER_FILTERS_ACTION ] : SwimLaneDrilldownContext ;
7280 [ APPLY_TIME_RANGE_SELECTION_ACTION ] : SwimLaneDrilldownContext ;
81+ [ CLEAR_SELECTION_ACTION ] : ClearSelectionContext ;
7382 }
7483
7584 export interface TriggerContextMapping {
76- [ SWIM_LANE_SELECTION_TRIGGER ] : SwimLaneDrilldownContext ;
85+ [ SWIM_LANE_SELECTION_TRIGGER ] : SwimLaneDrilldownContext | ClearSelectionContext ;
7786 }
7887}
0 commit comments