UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

72 lines (71 loc) 2.82 kB
export declare const SET_ACTIVE_CONSOLIDATION = "SET_ACTIVE_CONSOLIDATION"; export declare const UNSET_ACTIVE_CONSOLIDATION = "UNSET_ACTIVE_CONSOLIDATION"; export declare const SET_CONSOLIDATION_EXPANDED = "SET_CONSOLIDATION_EXPANDED"; export declare const SET_CONSOLIDATION_COLLAPSED = "SET_CONSOLIDATION_COLLAPSED"; export declare const SET_ALL_CONSOLIDATIONS_EXPANDED = "SET_ALL_CONSOLIDATIONS_EXPANDED"; export declare const SET_ALL_CONSOLIDATIONS_COLLAPSED = "SET_ALL_CONSOLIDATIONS_COLLAPSED"; export declare const SET_JUMP_TO_CONSOLIDATION = "SET_JUMP_TO_CONSOLIDATION"; export declare const SET_VISIBLE_CONSOLIDATIONS = "SET_VISIBLE_CONSOLIDATIONS"; export declare const SHOW_CONSOLIDATION_DIRECTIONS = "SHOW_CONSOLIDATION_DIRECTIONS"; export declare const HIDE_CONSOLIDATION_DIRECTIONS = "HIDE_CONSOLIDATION_DIRECTIONS"; export interface SetActiveConsolidationAction { type: 'SET_ACTIVE_CONSOLIDATION'; refId: string; } export interface UnsetActiveConsolidationAction { type: 'UNSET_ACTIVE_CONSOLIDATION'; refId: string; } export interface SetConsolidationExpandedAction { type: 'SET_CONSOLIDATION_EXPANDED'; refId: string; } export interface SetConsolidationCollapsedAction { type: 'SET_CONSOLIDATION_COLLAPSED'; refId: string; } export interface SetAllConsolidationsExpandedAction { type: 'SET_ALL_CONSOLIDATIONS_EXPANDED'; refId: string; } export interface SetAllConsolidationsCollapsedAction { type: 'SET_ALL_CONSOLIDATIONS_COLLAPSED'; refId: string; } export declare type ConsolidationFlagAction = SetActiveConsolidationAction | UnsetActiveConsolidationAction | SetConsolidationExpandedAction | SetConsolidationCollapsedAction | SetAllConsolidationsExpandedAction | SetAllConsolidationsCollapsedAction; /** * Set the active consolidation to a given id or to null * * @param refId */ export declare const setActiveConsolidation: (refId: string) => SetActiveConsolidationAction; /** * If the provided consolidation refId is currently active then set it to null */ export declare const unsetActiveConsolidation: (refId?: string) => UnsetActiveConsolidationAction; /** * Add a consolidation's refId to the array of expanded consolidations * * @param refId * @param expanded */ export declare const setConsolidationExpanded: (refId: string) => SetConsolidationExpandedAction; /** * Remove a consolidation's refId from the array of expanded consolidations * * @param refId * @param expanded */ export declare const setConsolidationCollapsed: (refId: string) => SetConsolidationCollapsedAction; /** * Mark all consolidations as expanded */ export declare const setAllConsolidationsExpanded: () => { type: string; }; /** * Mark all consolidations as expanded */ export declare const setAllConsolidationsCollapsed: () => { type: string; };